
:root{
  --ghvr-green:#3f6b52;
  --ghvr-green-dark:#2f5943;
  --ghvr-orange:#e67e22;
  --ghvr-card:#ffffff;
  --ghvr-text:#1d1f22;
  --ghvr-muted:#6b7280;
  --ghvr-border:#e6e7ea;
}
.ghvr-hero{
  min-height: 90vh;
  padding: 48px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)),
    var(--ghvr-bg);
  background-size: cover;
  background-position: center;
}
.ghvr-card{
  width: min(980px, 100%);
  background: var(--ghvr-card);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 22px 22px 18px;
}
.ghvr-title{
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: -22px -22px 18px;
  padding: 18px 22px;
  border-radius: 16px 16px 0 0;
  background: rgba(0,0,0,.55);
}
.ghvr-alert{
  padding: 10px 12px;
  border-radius: 10px;
  margin: 10px 0 14px;
  font-weight: 600;
}
.ghvr-alert--success{ background:#e9f7ee; color:#1b5e3b; border:1px solid #c8efd7;}
.ghvr-alert--error{ background:#ffecec; color:#8a1f1f; border:1px solid #f5c2c2;}

.ghvr-form label{
  display:block;
  font-size:12px;
  font-weight:700;
  color: var(--ghvr-muted);
  margin-bottom:6px;
}
.ghvr-field input,
.ghvr-field textarea,
.ghvr-select{
  width:100%;
  border:1px solid var(--ghvr-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline:none;
}
.ghvr-field textarea{ resize: vertical; }

.ghvr-top{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items:end;
  margin-bottom: 18px;
}
.ghvr-badge{
  display:flex;
  align-items:center;
  gap:10px;
  background: #eef3ef;
  border:1px solid #dbe6dd;
  border-radius: 10px;
  padding: 10px 12px;
  color:#234;
  white-space:nowrap;
}
.ghvr-pill{
  display:flex;
  align-items:center;
  border:1px solid var(--ghvr-border);
  border-radius: 10px;
  overflow:hidden;
  height: 42px;
}
.ghvr-select{
  border:none;
  border-right:1px solid var(--ghvr-border);
  border-radius:0;
  height:42px;
  background:#fff;
}
.ghvr-pill-price{
  background: #fff7ee;
  padding: 0 12px;
  display:flex;
  align-items:center;
  height:42px;
}
.ghvr-price{
  color: var(--ghvr-orange);
  font-weight: 800;
}

.ghvr-body{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.ghvr-left{
  border:1px solid var(--ghvr-border);
  border-radius: 14px;
  padding: 14px;
  background:#fff;
}
.ghvr-right{
  border:1px solid var(--ghvr-border);
  border-radius: 14px;
  padding: 14px;
  background:#fff;
}
.ghvr-section-title{
  font-weight: 800;
  color: var(--ghvr-text);
  margin-bottom: 10px;
}
.ghvr-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.ghvr-row--radio{
  display:flex;
  gap: 18px;
  margin-bottom: 12px;
}
.ghvr-radio{
  display:flex;
  align-items:center;
  gap: 6px;
  font-weight: 700;
  color: var(--ghvr-text);
}
.ghvr-counter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 12px;
}
.ghvr-counter-label{
  font-weight: 800;
  color: var(--ghvr-text);
}
.ghvr-stepper{
  display:flex;
  align-items:center;
  gap: 6px;
}
.ghvr-step{
  width:34px;
  height:34px;
  border-radius: 10px;
  border:1px solid var(--ghvr-border);
  background:#fff;
  font-size: 18px;
  cursor:pointer;
}
.ghvr-step:hover{ background:#f6f7f8; }
.ghvr-stepper input{
  width:44px;
  text-align:center;
  border:1px solid var(--ghvr-border);
  border-radius: 10px;
  padding: 8px 0;
  font-weight: 800;
  background:#fff;
}

.ghvr-summary{
  margin-top: 12px;
  padding-top: 12px;
  border-top:1px solid var(--ghvr-border);
}
.ghvr-summary-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
}
.ghvr-summary-title{ font-weight: 800; }
.ghvr-summary-price{ font-weight: 900; color: var(--ghvr-orange); }
.ghvr-summary-sub{ color: var(--ghvr-muted); font-size: 12px; margin-top: 6px; }

.ghvr-total{
  margin-top: 14px;
  padding-top: 12px;
  border-top:1px solid var(--ghvr-border);
}
.ghvr-total-line{
  display:flex;
  justify-content:space-between;
  font-weight: 900;
  font-size: 16px;
}
.ghvr-total-line--small{
  font-size: 13px;
  color: var(--ghvr-muted);
  font-weight: 700;
  margin-top: 8px;
}
.ghvr-total-value{ color: var(--ghvr-orange); }

.ghvr-footer{
  display:flex;
  justify-content:center;
  margin-top: 16px;
}
.ghvr-submit{
  width: min(520px, 100%);
  background: var(--ghvr-green-dark);
  color:#fff;
  border:none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 900;
  cursor:pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
.ghvr-submit:hover{ background: var(--ghvr-green); }

@media (max-width: 900px){
  .ghvr-top{ grid-template-columns: 1fr 1fr 1fr; }
  .ghvr-badge, .ghvr-pill{ grid-column: 1 / -1; }
  .ghvr-body{ grid-template-columns: 1fr; }
}


/* ===== Responsive PRO (mobile-first) ===== */
@media (max-width: 1024px){
  .ghvr-card{ padding: 18px 18px 16px; }
}

@media (max-width: 900px){
  .ghvr-hero{
    padding: 26px 12px;
    min-height: auto;
  }

  .ghvr-top{
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .ghvr-badge,
  .ghvr-pill{
    width: 100%;
  }

  .ghvr-pill{ height: auto; }
  .ghvr-select{ height: 44px; }
  .ghvr-pill-price{
    height: 44px;
    justify-content: flex-end;
  }

  .ghvr-body{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ghvr-left,
  .ghvr-right{
    padding: 12px;
  }

  .ghvr-field input,
  .ghvr-field textarea,
  .ghvr-select{
    font-size: 16px; /* iOS zoom prevention */
    padding: 12px 12px;
  }

  .ghvr-grid2{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ghvr-step{
    width: 42px;
    height: 42px;
    font-size: 20px;
    border-radius: 12px;
  }

  .ghvr-stepper input{
    width: 56px;
    padding: 10px 0;
    font-size: 16px;
  }

  .ghvr-footer{ margin-top: 14px; }

  .ghvr-submit{
    width: 100%;
    padding: 16px 16px;
    border-radius: 14px;
    font-size: 16px;
  }
}

@media (max-width: 420px){
  .ghvr-card{ border-radius: 14px; }
  .ghvr-title{ font-size: 18px; }
  .ghvr-summary-title{ font-size: 14px; }
  .ghvr-total-line{ font-size: 15px; }
}

.ghvr-note{margin:10px 0 14px;color:#4b5563;font-size:13px;}


/* ===== Fix visibilité des boutons +/- ===== */
.ghvr-stepper{ gap: 10px; }
.ghvr-step{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  line-height: 1;
  font-size: 22px;
  color: #1f2937;           /* texte foncé */
  background: #ffffff;      /* fond blanc */
  border: 2px solid #d1d5db;/* bordure visible */
}
.ghvr-step:hover{
  border-color:#3f6b52;
}
.ghvr-step:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(63,107,82,.25);
}
.ghvr-step:active{
  transform: translateY(1px);
}



/* ===== Fix mobile datepicker overflow ===== */
@media (max-width: 600px){
  .ghvr-top{
    grid-template-columns: 1fr !important;
  }

  .ghvr-field{
    width: 100%;
    overflow: visible;
  }

  .ghvr-field input[type="date"]{
    width: 100%;
    box-sizing: border-box;
  }
}


/* ===== v2.0 additions (hébergement / options) ===== */
.ghvr-sep{
  height: 1px;
  background: var(--ghvr-border);
  margin: 14px 0;
}

.ghvr-help{
  color: var(--ghvr-muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
}

.ghvr-check{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 8px 0;
  font-weight: 700;
  color: var(--ghvr-text);
}
.ghvr-check input{
  width: 18px;
  height: 18px;
}

.ghvr-pill--locked{
  padding: 0 12px;
  justify-content:flex-start;
  background: #f6f7f8;
  border-style: dashed;
  height: auto;
  min-height: 42px;
}

.ghvr-summary-total{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ghvr-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight: 900;
  font-size: 16px;
}


/* --- v2.0.1: sub-prices under options --- */
.ghvr-radio-title { display:block; font-weight:600; }
.ghvr-radio-sub { display:block; font-size:12px; opacity:.78; margin-left:0; margin-top:2px; }
.ghvr-check-sub { display:block; font-size:12px; opacity:.78; margin-top:2px; }
.ghvr-inline { margin-left:26px; margin-top:8px; }


/* ============================================================
   Flatpickr integration (minimal)
   ============================================================ */
.ghvr-calendar{border-radius:14px;border:1px solid rgba(0,0,0,0.08);background:#fff;padding:10px;overflow:hidden;}
.ghvr-wrap .flatpickr-calendar.inline{width:100%;background:transparent;box-shadow:none;border:none;}
.ghvr-wrap .flatpickr-months,.ghvr-wrap .flatpickr-weekdays,.ghvr-wrap .flatpickr-days{background:transparent;}
.ghvr-wrap .flatpickr-day{border-radius:10px;}


/* Dates & personnes — champ pleine largeur */
.ghvr-field--full{ margin-bottom: 10px; }
.ghvr-field--full input{ width:100%; }


/* Dates & personnes — info logistique (non tarifée) */
.ghvr-info-box{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  padding: 14px 14px;
  border: 1px dashed var(--ghvr-border);
  background: #f3f4f6;
  border-radius: 12px;
  margin-top: 10px;
  margin-bottom: 14px;
}
.ghvr-info-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
  background: rgba(63,107,82,.18);
  color: var(--ghvr-green-dark);
  flex: 0 0 28px;
}
.ghvr-info-text{
  font-size: 13px;
  line-height: 1.35;
  color: var(--ghvr-text);
}
.ghvr-info-text--muted{
  margin-top: 6px;
  color: var(--ghvr-muted);
}
@media (max-width: 720px){
  .ghvr-grid2{ grid-template-columns: 1fr; }
}


/* Info inline (same style as other informational lines) */
.ghvr-help--info{
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--ghvr-text);
  margin-top: 6px;
}
.ghvr-help-icon{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(63,107,82,.18);
  color: var(--ghvr-green-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

/* ==========================================================
   Flatpickr (Repas du midi) — French + style aligned to UI
   Scoped to avoid impacting any other flatpickr on the site.
   ========================================================== */
#ghvr_repas_midi_calendar{
  border: 1px solid var(--ghvr-border);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

#ghvr_repas_midi_calendar .flatpickr-calendar{
  box-shadow: none;
  border: none;
  width: 100%;
}

#ghvr_repas_midi_calendar .flatpickr-months{
  padding: 8px 6px 10px;
}

#ghvr_repas_midi_calendar .flatpickr-month{
  height: auto;
}

#ghvr_repas_midi_calendar .flatpickr-current-month{
  font-weight: 900;
  color: var(--ghvr-text);
}

#ghvr_repas_midi_calendar .flatpickr-weekdays{
  margin-top: 6px;
  border-top: 1px solid rgba(230,231,234,.8);
  padding-top: 8px;
}

#ghvr_repas_midi_calendar span.flatpickr-weekday{
  color: var(--ghvr-muted);
  font-weight: 800;
  font-size: 12px;
}

#ghvr_repas_midi_calendar .flatpickr-day{
  border-radius: 10px;
  font-weight: 700;
}

#ghvr_repas_midi_calendar .flatpickr-day:hover{
  background: rgba(63,107,82,.12);
  border-color: rgba(63,107,82,.12);
}

#ghvr_repas_midi_calendar .flatpickr-day.selected,
#ghvr_repas_midi_calendar .flatpickr-day.startRange,
#ghvr_repas_midi_calendar .flatpickr-day.endRange,
#ghvr_repas_midi_calendar .flatpickr-day.selected:hover{
  background: var(--ghvr-green-dark);
  border-color: var(--ghvr-green-dark);
  color: #fff;
}

#ghvr_repas_midi_calendar .flatpickr-day.today{
  border-color: rgba(230,231,234,1);
}

#ghvr_repas_midi_calendar .flatpickr-day.today:not(.selected){
  box-shadow: inset 0 0 0 2px rgba(63,107,82,.25);
}

#ghvr_repas_midi_calendar .flatpickr-day.disabled,
#ghvr_repas_midi_calendar .flatpickr-day.disabled:hover{
  color: rgba(107,114,128,.35);
  background: transparent;
  border-color: transparent;
  cursor: not-allowed;
}

#ghvr_repas_midi_calendar .flatpickr-prev-month,
#ghvr_repas_midi_calendar .flatpickr-next-month{
  border-radius: 10px;
}

#ghvr_repas_midi_calendar .flatpickr-prev-month:hover,
#ghvr_repas_midi_calendar .flatpickr-next-month:hover{
  background: rgba(63,107,82,.10);
}


/* ----------------------------------------------------------
   Desktop UX: panneau repas à droite (évite un formulaire trop long)
   - Mobile/Tablette: aucun changement
---------------------------------------------------------- */
@media (min-width: 1024px){
  .ghvr-meal-panel{
    margin-top: 14px;
    border: 1px solid var(--ghvr-border);
    border-radius: 16px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    position: sticky;
    top: 14px;
    /* premium + compact */
    transition: width .18s ease, padding .18s ease, transform .18s ease;
    will-change: width, padding;
  }
  .ghvr-meal-panel-title{
    font-weight: 800;
    color: var(--ghvr-text);
    margin-bottom: 8px;
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
  }
  .ghvr-meal-panel-tabs{
    display:flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-bottom: 8px;
  }
  .ghvr-meal-tab{
    border: 1px solid var(--ghvr-border);
    background: #f7f8fa;
    color: var(--ghvr-text);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ghvr-meal-tab.is-active{
    background: #e9f5e7;
    border-color: #b7dfb0;
  }
  .ghvr-meal-panel-body{
    max-height: calc(100vh - 210px);
    overflow: auto;
    padding-right: 4px;
  }
  /* Quand un bloc repas est rendu dans le panneau, on enlève sa marge top inline */
  .ghvr-meal-panel-body .ghvr-field{ margin-bottom: 10px; }
  .ghvr-meal-panel-toggle{
    border: none;
    background: #3f6b52;
    color: #fff;
    border-radius: 10px;
    width: 34px;
    height: 34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    user-select:none;
    flex: 0 0 auto;
    transition: transform .15s ease, filter .15s ease;
  }
  .ghvr-meal-panel-toggle svg{ width: 18px; height: 18px; display:block; }
  .ghvr-meal-panel-toggle:hover{ filter: brightness(1.06); }
  .ghvr-meal-panel-toggle:focus{ outline: none; box-shadow: 0 0 0 3px rgba(63,107,82,.18); }
  .ghvr-meal-panel-toggle svg{ width: 18px; height: 18px; }
  .ghvr-meal-panel-toggle:focus{ outline: none; box-shadow: 0 0 0 3px rgba(63,107,82,.18); }
  .ghvr-meal-panel-toggle svg{ width: 16px; height: 16px; }

  /* Collapsed: keep a slim rail with a chevron */
  .ghvr-meal-panel.is-collapsed{
    padding: 8px 6px;
    width: 46px;
  }
  .ghvr-meal-panel.is-collapsed .ghvr-meal-panel-tabs,
  .ghvr-meal-panel.is-collapsed .ghvr-meal-panel-body{
    display:none !important;
  }
  .ghvr-meal-panel.is-collapsed .ghvr-meal-panel-title{
    margin-bottom: 0;
    justify-content:center;
  }
  .ghvr-meal-panel.is-collapsed .ghvr-meal-panel-title .ghvr-meal-panel-title-text{
    display:none;
  }


  /* Compact calendar + fields inside the panel (desktop only) */
  .ghvr-meal-panel-body .ghvr-field{ margin-bottom: 8px; }
  .ghvr-meal-panel-body .ghvr-field label{ font-size: 12px; }
  .ghvr-meal-panel-body input[type="number"],
  .ghvr-meal-panel-body input[type="text"]{ padding: 10px 12px; }

  .ghvr-meal-panel-body .flatpickr-calendar{
    font-size: 12px;
    box-shadow: none;
  }
  .ghvr-meal-panel-body .flatpickr-months .flatpickr-month{
    height: 40px;
  }
  .ghvr-meal-panel-body .flatpickr-current-month{
    font-size: 14px;
  }
  .ghvr-meal-panel-body .flatpickr-weekdays{
    height: 28px;
  }
  .ghvr-meal-panel-body .flatpickr-weekday{
    font-size: 11px;
  }
  .ghvr-meal-panel-body .flatpickr-day{
    height: 30px;
    line-height: 30px;
    max-width: 30px;
    margin: 1px;
  }

  /* Tabs more compact */
  .ghvr-meal-panel-tabs{ gap: 6px; margin-bottom: 10px; }
  .ghvr-meal-tab{ padding: 8px 12px; font-size: 12px; }

}
}
