/* =========================================================
   HOSTYN — Choix de l'atelier + Rendez-vous mécanique
   Reprend les variables et le style du site (Inter, noir/blanc, angles droits)
   ========================================================= */

.choix [hidden], .rdv [hidden], .contact [hidden] { display: none !important; }

/* ===== Choix de l'atelier ===== */
.choix { background: var(--bg); }
.choix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
}
.choix-card {
  background: var(--bg-light);
  padding: 48px 40px;
  display: flex; flex-direction: column; gap: 24px;
  min-width: 0;
}
.choix-card + .choix-card { border-left: 1px solid var(--border); }
.choix-card.dark { background: var(--bg-dark); color: var(--bg); }
.choix-num {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}
.choix-card.dark .choix-num { color: rgba(255,255,255,0.5); }
.choix-card h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  text-transform: uppercase;
}
.choix-list { list-style: none; }
.choix-list li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  display: flex; gap: 12px;
}
.choix-list li::before { content: '+'; font-weight: 800; }
.choix-card.dark .choix-list li { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.choix-box {
  padding: 18px 20px;
  background: var(--bg);
  font-size: 0.9rem;
  line-height: 1.6;
}
.choix-card.dark .choix-box { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); }
.choix-label {
  display: block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 6px;
}
.choix-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.choix-actions .btn { justify-content: center; }

.choix-triage {
  margin-top: 40px;
  display: grid; gap: 16px;
}
.choix-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-chip {
  font-family: inherit; font-size: 0.85rem; font-weight: 500;
  padding: 11px 16px;
  background: var(--bg-light); color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.choix-chip:hover { border-color: var(--text); }
.choix-chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.choix-verdict { font-weight: 600; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.choix-verdict .btn { padding: 12px 18px; }

/* ===== Rendez-vous mécanique ===== */
.rdv { background: var(--bg-light); }
.rdv-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.rdv-progress {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-bottom: none;
}
.rdv-progress li {
  padding: 16px 18px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  border-bottom: 3px solid var(--border-soft);
  background: var(--bg);
}
.rdv-progress li:last-child { border-right: none; }
.rdv-progress li b { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: 0; color: inherit; margin-bottom: 2px; }
.rdv-progress li.cur { color: var(--text); background: var(--bg-light); border-bottom-color: var(--text); }
.rdv-progress li.done { color: var(--text); border-bottom-color: var(--text); }

form.rdv-form { background: var(--bg-light); }
.rdv-step { border: 0; min-width: 0; display: grid; gap: 22px; }
.rdv-step legend { margin-bottom: 22px; }
.rdv-step h3 { font-size: 1.4rem; text-transform: uppercase; }
.rdv .form-group { margin-bottom: 0; }
.rdv-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

/* Options (cases à cocher / boutons radio en pastilles) */
.rdv-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rdv label.rdv-opt {
  position: relative; display: inline-block; margin: 0;
  font-size: 0.88rem; letter-spacing: 0; text-transform: none; color: var(--text);
}
.rdv-opt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0; }
.rdv-opt span {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--border); background: var(--bg);
  transition: var(--transition);
}
.rdv-opt input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.rdv-opt input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

/* Plaque belge */
.rdv-plate { display: flex; height: 54px; max-width: 280px; border: 2px solid #1a1a1a; background: #fff; }
.rdv-plate .eu {
  width: 34px; background: #1d3a9b; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 5px; font-weight: 800; font-size: 0.85rem;
}
.rdv-plate .eu::before { content: ''; width: 16px; height: 16px; margin: 6px 0 auto; border-radius: 50%; border: 2px dotted #f5c400; }
.rdv .rdv-plate input {
  border: 0; background: #fff; height: 100%;
  color: #b3171d; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0 10px;
}

/* Numéro de châssis */
.rdv .rdv-vin { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.rdv-cells { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 3px; margin-top: 8px; }
.rdv-cells i { height: 5px; background: var(--border); }
.rdv-cells i.on { background: var(--text); }
.rdv-cells.ok i.on { background: #1f7a4a; }
.rdv-vinstate { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 0.82rem; }
.rdv-vinstate .cnt { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; }
.rdv-vinstate .ok { color: #1f7a4a; font-weight: 600; }
.rdv-vinstate .ko { color: #b3171d; font-weight: 600; }
.rdv-where { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }
.rdv-where summary { cursor: pointer; color: var(--text); font-weight: 600; }
.rdv-where ul { margin: 8px 0 0 18px; display: grid; gap: 4px; }

/* Jours et heures */
.rdv-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rdv-day {
  flex: none; width: 78px; padding: 12px 0;
  font-family: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; display: grid; gap: 2px; text-align: center;
  transition: var(--transition);
}
.rdv-day small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.rdv-day b { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.rdv-day[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.rdv-day[aria-pressed="true"] small { color: rgba(255,255,255,0.6); }
.rdv-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.rdv-slot {
  min-height: 46px; font-family: inherit; font-weight: 700; font-size: 0.95rem;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); cursor: pointer;
  transition: var(--transition);
}
.rdv-slot[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.rdv-slot:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* Paiement */
.rdv-amount { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; background: var(--bg-dark); color: var(--bg); }
.rdv-amount b { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.rdv-amount small { display: block; color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.rdv-pay { display: grid; gap: 8px; }
.rdv label.rdv-payopt { position: relative; display: block; margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--text); }
.rdv-payopt input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.rdv-payopt > span { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); background: var(--bg); transition: var(--transition); }
.rdv-payopt em { font-style: normal; display: grid; place-items: center; height: 34px; border: 1px solid var(--border); background: var(--bg-light); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.rdv-payopt small { display: block; color: var(--text-muted); font-size: 0.82rem; }
.rdv-payopt input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--bg-light); }
.rdv label.rdv-terms { display: flex; gap: 12px; align-items: flex-start; margin: 0; text-transform: none; letter-spacing: 0; font-size: 0.88rem; color: var(--text-soft); line-height: 1.5; }
.rdv .rdv-terms input { width: 20px; height: 20px; flex: none; margin-top: 1px; padding: 0; accent-color: #1a1a1a; }
.rdv-secure { display: flex; gap: 10px; font-size: 0.82rem; color: var(--text-muted); }
.rdv-note { padding: 18px 20px; background: var(--bg); font-size: 0.92rem; }

.rdv-err { color: #b3171d; font-size: 0.88rem; font-weight: 600; }
.rdv .invalid { border-color: #b3171d !important; }
.rdv-nav { display: flex; gap: 12px; flex-wrap: wrap; }
form .rdv-nav .btn-primary { flex: 1; width: auto; margin-top: 0; justify-content: center; }
.rdv-nav .btn-secondary { justify-content: center; }
.rdv-nav .btn:disabled { opacity: 0.6; cursor: wait; }
.rdv-hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px; opacity: 0; }

/* Récapitulatif */
.rdv-sum { position: sticky; top: 110px; background: var(--bg); border: 1px solid var(--border); padding: 32px; }
.rdv-sum h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.rdv-sum dl { display: grid; }
.rdv-sum dt { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); padding-top: 14px; border-top: 1px solid var(--border); margin-top: 14px; }
.rdv-sum dt:first-child { border-top: none; margin-top: 0; }
.rdv-sum dd { margin: 4px 0 0; font-weight: 600; font-size: 0.92rem; overflow-wrap: anywhere; }
.rdv-sum dd.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 500; }
.rdv-sum dd.empty { color: var(--text-muted); font-weight: 400; }

/* Confirmation */
.rdv-done { display: grid; gap: 16px; }
.rdv-done h3 { font-size: 1.6rem; text-transform: uppercase; }
.rdv-done .no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.06em; }
.rdv-done p { color: var(--text-muted); }

/* Formulaire de contact : photos */
.contact-photos { padding: 14px; border: 1px dashed var(--border); background: var(--bg); display: grid; gap: 10px; }
.contact-photos input { border: 0; padding: 0; background: none; }
.contact-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.contact-thumbs img { width: 56px; height: 56px; object-fit: cover; }
.contact-msg { margin-top: 14px; font-size: 0.9rem; font-weight: 600; }

@media (max-width: 960px) {
  .choix-grid { grid-template-columns: 1fr; }
  .choix-card + .choix-card { border-left: none; border-top: 1px solid var(--border); }
  .rdv-wrap { grid-template-columns: 1fr; }
  .rdv-sum { position: static; }
}
@media (max-width: 640px) {
  .choix-card { padding: 36px 24px; }
  .rdv-progress li { padding: 12px 10px; }
  .rdv-progress li span { display: none; }
  .choix-actions .btn { flex: 1; }
}

/* Menu : un lien de plus, on garde tout sur une ligne */
.nav-links a, .nav-cta { white-space: nowrap; }
@media (max-width: 1240px) { .nav-links { gap: 22px; } }
@media (max-width: 1060px) { .nav-links { gap: 14px; } .nav-links a { font-size: 0.7rem; letter-spacing: 0.08em; } .nav-cta { padding: 12px 14px; } }

/* ===== Bannière offre entretien (jusqu'au 31/12/2026) ===== */
.promo-band {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  background: var(--bg-dark);
  color: var(--bg);
  padding: 30px 40px 30px 52px;
  margin-bottom: 8px;
}
.promo-band::before { /* bande damier, côté gauche */
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  opacity: 0.9;
}
.promo-tag {
  position: absolute; top: -12px; left: 52px;
  background: var(--bg); color: var(--text);
  border: 1.5px solid var(--text);
  padding: 4px 14px;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.promo-price { font-size: clamp(3.2rem, 7vw, 4.8rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.02em; white-space: nowrap; }
.promo-price small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; margin-top: 10px; }
.promo-text h2 { font-size: clamp(1.15rem, 2.2vw, 1.6rem); font-weight: 800; text-transform: uppercase; line-height: 1.15; margin-bottom: 8px; }
.promo-text p { color: rgba(255,255,255,0.7); font-size: 0.92rem; line-height: 1.55; }
.promo-band .btn { background: var(--bg); color: var(--text); white-space: nowrap; }
.promo-band .btn:hover { background: #fff; transform: translateY(-2px); }
.rdv-promo { display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: var(--bg-dark); color: var(--bg); font-size: 0.88rem; font-weight: 600; margin-bottom: 0; }
.rdv-promo b { font-size: 1.1rem; }
@media (max-width: 960px) {
  .promo-band { grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; }
  .promo-band .btn { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 640px) {
  .promo-band { grid-template-columns: 1fr; padding: 34px 22px 26px 36px; }
  .promo-tag { left: 36px; }
}

/* Correctif mise en page étape 2 : les rangées (jours, interventions) restent dans le cadre */
.rdv-step { grid-template-columns: minmax(0, 1fr); }
.rdv-step > *, .rdv .form-group { min-width: 0; max-width: 100%; }
.rdv-days { max-width: 100%; scrollbar-width: thin; }
.rdv-slots > p { grid-column: 1 / -1; }
