/* components.css — boutons, cards, badges, modal, form */

/* boutons */
.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: .96rem;
  letter-spacing: .005em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: normal;
}
.btn svg{ width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary{
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{
  background: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.btn-secondary{
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-secondary:hover{
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}
.btn-wa{
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(37,211,102,.45);
}
.btn-wa:hover{
  background: var(--wa-green-d);
  transform: translateY(-2px);
}
.btn-ghost{
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-soft);
}
.btn-ghost:hover{
  background: var(--accent-soft);
}
.btn-call-mini{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
}
.btn-call-mini svg{ width: 16px; height: 16px; }

/* badges */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--ff-ui);
  font-size: .8rem;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--text-2);
}
.pill svg{ width: 14px; height: 14px; color: var(--accent); }
.pill-accent{
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

/* cards */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.card-dark{
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.card-dark h3, .card-dark h4{ color: var(--bg); }
.card-dark .card-num{ color: var(--accent-2); }

.card-num{
  font-family: var(--ff-display);
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 500;
}
.card-icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
}
.card-icon svg{ width: 26px; height: 26px; }
.card-title{
  font-family: var(--ff-display);
  font-size: 1.32rem;
  line-height: 1.18;
  color: inherit;
  margin: 0;
}
.card-text{
  font-family: var(--ff-body);
  font-size: .96rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.card-dark .card-text{ color: rgba(255,252,238,.85); }

/* modal mentions legales */
.ml-modal{
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ml-overlay{
  position: absolute; inset: 0;
  background: rgba(20,20,16,.55);
  backdrop-filter: blur(4px);
}
.ml-box{
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
}
.ml-box h2{
  font-size: 1.45rem;
  margin-bottom: 18px;
}
.ml-box h3{
  font-size: 1.05rem;
  font-family: var(--ff-ui);
  font-weight: 700;
  margin: 18px 0 6px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ml-box p{ font-size: .92rem; color: var(--text-2); margin-bottom: 8px; }
.ml-close{
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
  background: var(--surface-2);
}
.ml-close:hover{ background: var(--accent-soft); }
.ml-close svg{ width: 18px; height: 18px; }

/* formulaire */
.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: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-2);
}
.field input,
.field select,
.field textarea{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--text);
  width: 100%;
  min-width: 0;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  outline: 0;
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea{ min-height: 120px; resize: vertical; }
.form-note{
  font-size: .82rem;
  color: var(--text-mute);
}
.form-success{
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 18px 18px;
  border-radius: var(--r-md);
  margin-top: 14px;
  font-family: var(--ff-ui);
  color: var(--text);
  font-weight: 500;
}
