/* =====================================================
   COMPONENTS — boutons, cards, badges, formulaire
   ===================================================== */

/* ---- BOUTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .8rem 1.6rem;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 36%, transparent);
}

.btn-wa {
  background: var(--wa-green);
  color: #fff;
  border-color: var(--wa-green);
}
.btn-wa:hover {
  background: #1fba5a;
  border-color: #1fba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--wa-green) 36%, transparent);
}

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

.btn-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-light:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}

.btn-sm { padding: .6rem 1.1rem; font-size: .86rem; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

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

/* ---- EYEBROW / SECTION HEADER ---- */
.sec-eyebrow {
  font-family: var(--ff-ui);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.sec-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.08;
}

.sec-lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-2);
  max-width: 58ch;
  line-height: 1.65;
}

.sec-header {
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---- CHIP / TAG ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .35rem .8rem;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.chip--outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

/* ---- ÉTOILES ---- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #c9912a;
}
.stars svg { width: 16px; height: 16px; }

/* ---- BADGE GOOGLE ---- */
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--text-mute);
  font-family: var(--ff-ui);
}
.badge-google svg { width: 14px; height: 14px; }

/* ---- CONTACT CARD ---- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  text-decoration: none;
  color: #E8E0D4;
  transition: background .2s;
}
.contact-row:hover { background: rgba(255,255,255,.11); }

.contact-row__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent-soft);
}
.contact-row__icon svg { width: 20px; height: 20px; }

.contact-row__label {
  font-size: .78rem;
  color: rgba(232,224,212,.55);
  font-family: var(--ff-ui);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.contact-row__value {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ---- FORMULAIRE ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full { grid-column: 1 / -1; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0; /* PIÈGE PROD #10: évite overflow select */
}

.field label {
  font-family: var(--ff-ui);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(232,224,212,.65);
}

.field input,
.field textarea,
.field select {
  font-family: var(--ff-body);
  font-size: 1rem;
  color: #E8E0D4;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-sm);
  padding: .8rem 1rem;
  width: 100%;
  min-width: 0; /* PIÈGE PROD #10 */
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

.field select option { background: var(--surface-deep); color: #E8E0D4; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; min-height: 110px; }

/* ---- OPEN BADGE ---- */
.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-family: var(--ff-ui);
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 100px;
}

.open-badge--open {
  background: color-mix(in srgb, #22c55e 18%, var(--bg));
  color: #166534;
}
.open-badge--closed {
  background: color-mix(in srgb, #ef4444 12%, var(--bg));
  color: #991b1b;
}

.open-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.open-badge--open  .open-badge__dot { background: #22c55e; animation: pulse-green 2s infinite; }
.open-badge--closed .open-badge__dot { background: #ef4444; }

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .open-badge__dot { animation: none; }
}

/* ---- FAB MOBILE ---- */
.fab-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: calc(var(--z-header) - 10);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: .85rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 44%, transparent);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s, transform .4s, background .2s;
  pointer-events: none;
}

.fab-call.visible {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

.fab-call:hover { background: var(--accent-deep); }

.fab-call svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (min-width: 900px) { .fab-call { display: none; } }

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 10);
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s;
  z-index: 2;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 20px; right: 20px; }
.lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }

.lb-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--r-md);
  display: block;
}

/* ---- MODAL MENTIONS LÉGALES ---- */
.ml-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ml-box {
  background: var(--bg);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.ml-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  display: grid; place-items: center;
  font-size: .9rem;
  color: var(--text-2);
  cursor: pointer;
}
.ml-close:hover { background: var(--accent-soft); color: var(--accent); }

.ml-box h2 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.ml-section { margin-bottom: 16px; }
.ml-section h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 6px; font-family: var(--ff-ui); }
.ml-section p  { font-size: .88rem; color: var(--text-2); line-height: 1.6; }
