/* ===================================================
   FOOD'INDE – Calculateur de devis
   Couleurs : jaune #f9cc10 · rouge #fc3535 · noir #000
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Jaldi:wght@400;700&display=swap');

.fi-wrapper {
  font-family: 'Jaldi', sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
  color: #111;
  -webkit-font-smoothing: antialiased;
}

/* ── EN-TÊTE ── */
.fi-header {
  background: #000;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.fi-logo {
  font-family: 'Jaldi', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #f9cc10;
  letter-spacing: 2px;
  flex-shrink: 0;
}
.fi-subtitle {
  color: #fff;
  margin: 0;
  font-size: 14px;
  opacity: .85;
}

/* ── CARTE ── */
.fi-card {
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
@media (max-width:520px) {
  .fi-card { padding: 20px 16px; }
}

/* ── TITRE DE SECTION ── */
.fi-card-title {
  font-family: 'Jaldi', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
}
.fi-step-num {
  width: 28px; height: 28px;
  background: #f9cc10;
  color: #000;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── LIGNES / LABELS ── */
.fi-row { margin-bottom: 20px; }
.fi-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}
.fi-req { color: #fc3535; }
.fi-hint {
  font-size: 12px;
  color: #888;
  margin: 6px 0 0;
}

/* ── RADIO CARDS ── */
.fi-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fi-radio-col {
  flex-direction: column;
}
.fi-radio-card {
  flex: 1;
  min-width: 130px;
  border: 2px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
}
.fi-radio-card:hover {
  border-color: #f9cc10;
  background: #fffcee;
}
.fi-radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.fi-radio-card.is-selected {
  border-color: #f9cc10;
  background: #fffcee;
  box-shadow: 0 0 0 1px #f9cc10;
}
.fi-radio-inner {
  display: block;
  padding: 12px 14px;
}
.fi-radio-inner strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.fi-radio-inner small {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}
.fi-radio-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.fi-lieu-price {
  font-weight: 700;
  font-size: 13px;
  color: #fc3535;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── CHAMP NUMÉRIQUE ── */
.fi-number-wrap {
  display: inline-flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.fi-num-btn {
  width: 38px; height: 38px;
  background: #f5f5f5;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  transition: background .15s;
  line-height: 1;
}
.fi-num-btn:hover { background: #f9cc10; }
#fi-participants {
  width: 56px;
  border: none;
  text-align: center;
  font-size: 17px;
  font-family: 'Jaldi', sans-serif;
  font-weight: 700;
  padding: 0;
  -moz-appearance: textfield;
  outline: none;
}
#fi-participants::-webkit-outer-spin-button,
#fi-participants::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── ESTIMATEUR LIVE ── */
.fi-estimate {
  margin-top: 20px;
  border-radius: 10px;
  background: #000;
  overflow: hidden;
}
.fi-estimate-inner {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fi-estimate-label {
  color: #aaa;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 4px;
}
.fi-estimate-amount {
  color: #f9cc10;
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}
.fi-estimate-note {
  color: #666;
  font-size: 11px;
  margin: 4px 0 0;
}
.fi-estimate-badge {
  font-size: 28px;
  opacity: .6;
}

/* ── MENTION ── */
.fi-mention {
  font-size: 11px;
  color: #999;
  font-style: italic;
  margin-top: 10px;
}

/* ── BOUTONS ── */
.fi-actions { margin-top: 24px; }
.fi-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.fi-btn {
  font-family: 'Jaldi', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  letter-spacing: .3px;
}
.fi-btn:active { transform: scale(.97); }
.fi-btn-next, .fi-btn-submit {
  background: #f9cc10;
  color: #000;
}
.fi-btn-next:hover, .fi-btn-submit:hover {
  box-shadow: 0 4px 14px rgba(249,204,16,.45);
}
.fi-btn-next:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.fi-btn-back {
  background: #f5f5f5;
  color: #555;
  font-weight: 400;
  font-size: 14px;
  padding: 10px 18px;
}
.fi-btn-back:hover { background: #eee; }

/* ── CHAMPS FORMULAIRE ── */
.fi-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  .fi-grid-2 { grid-template-columns: 1fr; }
}
.fi-field {
  margin-bottom: 14px;
}
.fi-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}
.fi-field input,
.fi-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-family: 'Jaldi', sans-serif;
  font-size: 14px;
  color: #111;
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
}
.fi-field input:focus,
.fi-field textarea:focus {
  outline: none;
  border-color: #f9cc10;
  box-shadow: 0 0 0 3px rgba(249,204,16,.2);
}
.fi-field input.fi-invalid,
.fi-field textarea.fi-invalid {
  border-color: #fc3535;
}
.fi-field textarea { resize: vertical; }

/* ── RÉCAP ── */
.fi-recap {
  background: #fafafa;
  border: 1.5px solid #eee;
  border-radius: 8px;
  padding: 16px 18px;
  margin: 20px 0;
}
.fi-recap-title {
  font-weight: 700;
  font-size: 13px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 0 0 10px;
}
.fi-recap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fi-recap-table td {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}
.fi-recap-table td:first-child { color: #777; }
.fi-recap-table td:last-child  { font-weight: 700; text-align: right; }
.fi-recap-total td { color: #000 !important; font-size: 16px; }
.fi-recap-total td:last-child { color: #fc3535 !important; font-size: 18px; }
.fi-recap-mention {
  font-size: 11px;
  color: #aaa;
  font-style: italic;
  margin: 10px 0 0;
}

/* ── ERREURS ── */
.fi-error {
  color: #fc3535;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 700;
}
.fi-form-error {
  background: #fff5f5;
  border: 1px solid #fc3535;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

/* ── CONFIRMATION ── */
.fi-confirm {
  text-align: center;
  padding: 12px 0;
}
.fi-confirm-icon {
  width: 56px; height: 56px;
  background: #f9cc10;
  color: #000;
  font-size: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.fi-confirm h2 {
  font-family: 'Jaldi', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.fi-confirm p { color: #555; font-size: 15px; }
.fi-confirm-ref {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 14px;
}
.fi-confirm-amount {
  display: inline-block;
  background: #000;
  color: #f9cc10;
  font-size: 26px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 24px;
  margin: 16px 0 12px;
}
