/* ===== COMPONENTS — Boutons, Cards, Badges, Formulaire, Lightbox ===== */

/* ——— Boutons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 14px 28px;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

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

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

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

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

/* ——— Cards ——— */

/* card = plain (LAY-2) */
.c-plain {
  background: color-mix(in srgb, var(--text) 4%, var(--bg));
  border-radius: var(--r-lg);
  padding: 24px;
}

/* card = line */
.c-line {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  background: transparent;
}

/* card = row */
.c-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
}
.c-row__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  flex-shrink: 0;
}
.c-row__icon svg { width: 22px; height: 22px; }

/* ——— Badges / Pills ——— */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-ui);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mute);
  padding: 3px 9px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.badge-google svg { width: 13px; height: 13px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  border-radius: 50px;
  padding: 5px 14px;
}

/* ——— Stars (étoiles) ——— */
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars svg { width: 16px; height: 16px; fill: var(--accent-2); }

/* ——— Hero Rating Badge ——— */
.hero-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 6px 14px 6px 8px;
  text-decoration: none;
  color: #fff;
  transition: background .2s;
  margin-bottom: 18px;
  width: fit-content;
}
.hero-rating-badge:hover { background: rgba(255,255,255,0.22); color: #fff; }
.hero-rating-badge .stars svg { fill: #F9D156; width: 14px; height: 14px; }
.hero-rating-badge strong { font-size: 0.9rem; font-weight: 700; color: #fff; }
.hero-rating-badge span  { font-size: 0.8rem; color: rgba(255,255,255,0.85); }

/* ——— Formulaire ——— */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: var(--ff-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  min-width: 0; /* PIÈGE PROD #10 select */
  font-family: var(--ff-body);
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
  outline: none;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* PIÈGE PROD #10 : min-width:0 sur tout .field/.form-group */
.form-group { min-width: 0; }

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: calc(var(--z-modal) + 50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lb-close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }

/* ——— Modal mentions légales ——— */
.ml-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.ml-box {
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.ml-box h2 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.ml-box h3 {
  font-family: var(--ff-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 16px 0 4px;
}
.ml-box p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}
.ml-close {
  position: absolute;
  top: 16px; right: 16px;
  background: color-mix(in srgb, var(--text) 8%, var(--bg));
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
}

/* ——— FAQ Accordion ——— */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color .2s;
}
.faq-trigger:hover { color: var(--accent); }
.faq-trigger[aria-expanded="true"] { color: var(--accent); }
.faq-chevron {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .3s;
}
.faq-chevron::after {
  content: '';
  border-style: solid;
  border-width: 0 1.5px 1.5px 0;
  border-color: currentColor;
  width: 6px; height: 6px;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .3s;
}
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 0 20px;
  overflow: hidden;
}
.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}
