/* Components — boutons, chips, cards, forms, lightbox, modal */

/* BUTTONS */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
  min-height: 48px;
}
.btn:active{ transform: translateY(1px); }
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover{ background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-accent{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover{ background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

.btn-wa{
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}
.btn-wa:hover{ background: var(--wa-green-dark); border-color: var(--wa-green-dark); color: #fff; }

.btn-outline{
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover{ background: var(--text); color: var(--bg); border-color: var(--text); }

.btn-ghost-light{
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover{ background: rgba(255,255,255,0.18); color: #fff; }

.btn-block{ width: 100%; }

/* CHIPS */
.chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.chip-accent{
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid rgba(111, 74, 47, 0.18);
}
.chip-light{
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.chip-outline{
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}

/* EYEBROW */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-ui);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.eyebrow::before{
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}

/* CARDS (LAY-4 row card) */
.card-row{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
}
.card-row:first-child{ border-top: 1px solid var(--border); }
.card-row__num{
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  min-width: 42px;
}
.card-row__body h3{
  font-family: var(--ff-display);
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.card-row__body p{
  font-size: 0.96rem;
  color: var(--text-2);
  margin: 0;
}
.card-row__icon{
  display: none;
  width: 44px; height: 44px;
  color: var(--accent);
}
@media (min-width: 640px){
  .card-row{ grid-template-columns: auto 1fr auto auto; padding: 26px 6px; }
  .card-row__icon{ display: grid; place-items: center; }
}

/* FORM */
.form-grid{
  display: grid;
  gap: 14px;
}
.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label{
  font-family: var(--ff-ui);
  font-size: 0.86rem;
  color: var(--text-2);
  font-weight: 500;
}
.field input,
.field select,
.field textarea{
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-height: 48px;
}
.field textarea{
  min-height: 120px;
  resize: vertical;
  font-family: var(--ff-body);
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 74, 47, 0.15);
}

/* MODAL mentions legales */
.modal{
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
}
.modal[hidden]{ display: none !important; }
.modal-overlay{
  position: absolute;
  inset: 0;
  background: rgba(42, 33, 26, 0.55);
  backdrop-filter: blur(3px);
}
.modal-box{
  position: relative;
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: 85vh;
  overflow-y: auto;
  margin: 6vh auto 0;
  background: var(--bg);
  padding: 28px 26px 24px;
  border-radius: var(--r-lg);
  box-shadow: 0 28px 64px -20px rgba(42, 33, 26, 0.45);
}
.modal-close{
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1;
}
.modal-box h2{
  font-family: var(--ff-display);
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.modal-box .modal-eyebrow{
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.modal-box h3{
  font-family: var(--ff-ui);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}
.modal-box p{
  font-size: 0.94rem;
  color: var(--text-2);
  margin: 0 0 8px;
}

/* LIGHTBOX */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(20, 14, 9, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden]{ display: none !important; }
.lb-image{
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 28px 60px -8px rgba(0,0,0,0.55);
}
.lb-close, .lb-prev, .lb-next{
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--t-fast);
  font-size: 1.4rem;
  line-height: 1;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover{ background: rgba(255,255,255,0.25); }
.lb-close{ top: 18px; right: 18px; }
.lb-prev{ left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next{ right: 18px; top: 50%; transform: translateY(-50%); }
