/* order.css — Flux de commande 3 étapes (order → form → declaration → confirm) */
/* Tokens --ih-* et composants de base fournis par site.css                     */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ====================================================================
   PAGE LAYOUT
   ==================================================================== */
.oh-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  min-height: 100vh;
}

.oh-page-narrow {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  min-height: 100vh;
}

/* ====================================================================
   STEPPER — composant partagé
   ==================================================================== */
.ih-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 0 2rem;
  gap: 0;
}

.ih-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-width: 80px;
}

.ih-stepper__circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ih-sans);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--ih-border);
  color: var(--ih-ink-soft);
  border: 2px solid var(--ih-border);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.ih-stepper__step--done .ih-stepper__circle {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}

.ih-stepper__step--active .ih-stepper__circle {
  background: var(--ih-rose-vif);
  border-color: var(--ih-rose-vif);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(244, 12, 123, 0.14);
}

.ih-stepper__icon {
  width: 14px;
  height: 14px;
}

.ih-stepper__label {
  font-family: var(--ih-sans);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ih-ink-soft);
  opacity: 0.55;
  text-align: center;
}

.ih-stepper__step--done .ih-stepper__label,
.ih-stepper__step--active .ih-stepper__label {
  opacity: 1;
  color: var(--ih-ink);
}

.ih-stepper__connector {
  flex: 1;
  max-width: 70px;
  height: 2px;
  background: var(--ih-border);
  margin-top: 1.1rem; /* aligne avec le centre du cercle (2.25rem / 2) */
  border-radius: 1px;
  transition: background 0.2s;
}

.ih-stepper__connector--done {
  background: #15803d;
}

/* ====================================================================
   PAGE HEADER — titre + sous-titre
   ==================================================================== */
.oh-header {
  text-align: center;
  padding: 0.5rem 0 2rem;
}

.oh-header__logo {
  height: 4.5rem;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}

.oh-header__title {
  font-family: var(--ih-serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  color: var(--ih-ink);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.oh-header__sub {
  font-size: 0.9rem;
  color: var(--ih-ink-soft);
  opacity: 0.75;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ====================================================================
   INFO CARD — alerte informations importantes
   ==================================================================== */
.oh-info-card {
  background: #fff;
  border: 1px solid var(--ih-border);
  border-left: 4px solid var(--ih-rose-vif);
  border-radius: var(--ih-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.oh-info-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ih-ink);
  margin-bottom: 0.75rem;
}

.oh-info-card__icon {
  width: 16px;
  height: 16px;
  color: var(--ih-rose-vif);
  flex-shrink: 0;
}

.oh-info-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.oh-info-card__list li {
  font-size: 0.82rem;
  color: var(--ih-ink-soft);
  line-height: 1.55;
  padding-left: 0.75rem;
  position: relative;
}

.oh-info-card__list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--ih-rose-vif);
  font-weight: 700;
}

/* ====================================================================
   LABEL TYPE CARDS — sélection Standard / Excellence
   ==================================================================== */
.oh-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

/* La classe .order-label-card est utilisée par order.js */
.order-label-card {
  display: block;
  position: relative;
  background: #fff;
  border: 2px solid var(--ih-border);
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
  overflow: hidden;
  user-select: none;
}

.order-label-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ih-border);
  transition: background 0.18s;
}

.order-label-card:hover {
  border-color: var(--ih-rose-pastel);
  transform: translateY(-2px);
  box-shadow: var(--ih-shadow);
}

.order-label-card.selected {
  border-color: var(--ih-rose-vif);
  box-shadow: 0 0 0 3px rgba(244, 12, 123, 0.12), var(--ih-shadow);
}

.order-label-card.selected::before {
  background: var(--ih-rose-vif);
}

/* Excellence card — variante premium */
.order-label-card--excellence::before {
  background: var(--ih-gradient-primary);
}

.order-label-card--excellence {
  background: linear-gradient(145deg, #fff 0%, #fdf5fb 100%);
}

/* Checkmark — géré par order.js via .hidden */
.order-card-check {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  color: var(--ih-rose-vif);
  width: 20px;
  height: 20px;
}

/* Prix */
.order-price {
  font-family: var(--ih-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ih-ink);
  line-height: 1;
}

/* Badge "Recommandé" */
.oh-badge-recommande {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ih-gradient-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-left: auto;
}

/* En-tête de card */
.oh-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

/* Features list */
.oh-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.oh-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--ih-ink-soft);
}

.oh-feature-icon {
  width: 13px;
  height: 13px;
  color: var(--ih-rose-vif);
  flex-shrink: 0;
}

/* ====================================================================
   ERREUR — #form-error et #form-error-msg
   ==================================================================== */
.oh-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: #fff1f6;
  border: 1px solid rgba(244, 12, 123, 0.20);
  border-left: 4px solid var(--ih-rose-vif);
  border-radius: var(--ih-radius);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #6b1a43;
  animation: fade-up 0.25s ease-out;
}

/* Compat avec l'existant */
.ih-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: #fff1f6;
  border: 1px solid rgba(244, 12, 123, 0.20);
  border-left: 4px solid var(--ih-rose-vif);
  border-radius: var(--ih-radius);
  font-size: 0.85rem;
  color: #6b1a43;
}

.oh-error-icon {
  width: 16px;
  height: 16px;
  color: var(--ih-rose-vif);
  flex-shrink: 0;
}

/* ====================================================================
   BOUTON PRINCIPAL — payer / soumettre
   ==================================================================== */
.oh-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--ih-rose-vif);
  color: #fff;
  border: none;
  border-radius: var(--ih-radius);
  font-family: var(--ih-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s, opacity 0.18s;
  letter-spacing: 0.01em;
}

.oh-btn-primary:hover:not(:disabled) {
  background: #d10a68;
  box-shadow: var(--ih-shadow-glow);
}

.oh-btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.oh-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.oh-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ====================================================================
   PAIEMENT REÇU BANNER — order-form.html
   ==================================================================== */
.oh-payment-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 4px solid #16a34a;
  border-radius: var(--ih-radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.75rem;
}

.oh-payment-banner__icon {
  width: 22px;
  height: 22px;
  color: #16a34a;
  flex-shrink: 0;
}

.oh-payment-banner__title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #14532d;
}

.oh-payment-banner__ref {
  font-size: 0.78rem;
  color: #166534;
}

/* ====================================================================
   FORM CARD
   ==================================================================== */
.oh-form-card {
  background: #fff;
  border: 1px solid var(--ih-border);
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: var(--ih-shadow-soft);
}

/* Fieldset */
.oh-fieldset {
  border: none;
  margin: 0 0 2rem;
  padding: 0;
}

.oh-legend {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ih-ink-soft);
  opacity: 0.65;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ih-border);
  width: 100%;
}

/* Grid 2 colonnes */
.oh-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Groupe champ */
.oh-field {
  margin-bottom: 1rem;
}

/* Label standard */
.order-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ih-ink-soft);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

/* ── Floating label ────────────────────────────────── */
.oh-float {
  position: relative;
}

.oh-float-input {
  width: 100%;
  padding: 1.35rem 0.9rem 0.45rem;
  border: 1.5px solid var(--ih-border);
  border-radius: var(--ih-radius);
  font-family: var(--ih-sans);
  font-size: 0.9rem;
  color: var(--ih-ink);
  background: var(--ih-paper);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

.oh-float-input::placeholder {
  color: transparent;
}

.oh-float-input:focus {
  border-color: var(--ih-rose-vif);
  box-shadow: 0 0 0 3px rgba(244, 12, 123, 0.10);
}

.oh-float-input.invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.15);
}

.oh-float-label {
  position: absolute;
  left: 0.9rem;
  top: 0.88rem;
  font-size: 0.88rem;
  color: var(--ih-ink-soft);
  opacity: 0.6;
  pointer-events: none;
  transition: top 0.16s, font-size 0.16s, color 0.16s, opacity 0.16s;
  white-space: nowrap;
  overflow: hidden;
  max-width: calc(100% - 1.8rem);
  text-overflow: ellipsis;
}

.oh-float-input:focus + .oh-float-label,
.oh-float-input:not(:placeholder-shown) + .oh-float-label {
  top: 0.3rem;
  font-size: 0.65rem;
  color: var(--ih-rose-vif);
  opacity: 1;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Inputs standards (selects, date) — pas de floating label */
.order-input {
  display: block;
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--ih-border);
  border-radius: var(--ih-radius);
  font-family: var(--ih-sans);
  font-size: 0.9rem;
  color: var(--ih-ink);
  background: var(--ih-paper);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

.order-input:focus {
  border-color: var(--ih-rose-vif);
  box-shadow: 0 0 0 3px rgba(244, 12, 123, 0.10);
}

.order-input.invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.15);
}

.order-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2383608c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ====================================================================
   UPLOAD ZONE — #upload-zone (manipulé par order-form.js)
   ==================================================================== */
#upload-zone {
  display: block;
  border: 2px dashed var(--ih-border);
  border-radius: var(--ih-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--ih-paper);
  transition: border-color 0.18s, background 0.18s;
}

#upload-zone:hover {
  border-color: var(--ih-rose-pastel);
  background: #fdf1f8;
}

/* order-form.js manipule uploadZone.style.borderColor directement */

.oh-upload-icon {
  width: 36px;
  height: 36px;
  color: var(--ih-rose-vif);
  margin: 0 auto 0.6rem;
  display: block;
}

.oh-upload-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ih-ink);
  margin-bottom: 0.25rem;
}

.oh-upload-hint {
  font-size: 0.78rem;
  color: var(--ih-ink-soft);
  opacity: 0.65;
}

#file-name-display {
  font-size: 0.78rem;
  color: var(--ih-rose-vif);
  font-weight: 600;
  margin-top: 0.4rem;
  display: block;
}

#file-error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-top: 0.4rem;
}

.oh-ms-note {
  background: #fff8fd;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  padding: 0.8rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--ih-ink-soft);
  line-height: 1.55;
}

/* ====================================================================
   CGV CHECKBOX
   ==================================================================== */
.oh-cgv {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--ih-paper);
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.oh-cgv input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--ih-rose-vif);
  cursor: pointer;
}

.oh-cgv__text {
  font-size: 0.8rem;
  color: var(--ih-ink-soft);
  line-height: 1.6;
}

.oh-divider {
  border: none;
  border-top: 1px solid var(--ih-border);
  margin: 1.75rem 0;
}

/* ====================================================================
   DÉCLARATION — page order-declaration.html
   ==================================================================== */
.oh-doc-card {
  background: #fff;
  border: 1px solid var(--ih-border);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: var(--ih-shadow-soft);
  margin-bottom: 1.5rem;
}

.oh-doc-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ih-border);
  margin-bottom: 1.75rem;
}

.oh-doc-logo {
  height: 2.75rem;
  width: auto;
  margin: 0 auto 0.75rem;
  display: block;
}

.oh-doc-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ih-ink-soft);
  opacity: 0.55;
}

.oh-doc-title {
  font-family: var(--ih-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ih-ink);
  margin-top: 0.5rem;
}

.oh-doc-body {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ih-ink);
}

.oh-doc-body p { margin-bottom: 0.75rem; }

.oh-doc-id-block {
  background: var(--ih-paper);
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
}

.oh-doc-id-row {
  display: flex;
  gap: 1rem;
  padding: 0.25rem 0;
}

.oh-doc-id-label {
  min-width: 9rem;
  font-size: 0.82rem;
  color: var(--ih-ink-soft);
  opacity: 0.7;
  flex-shrink: 0;
}

.oh-doc-id-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ih-ink);
}

.oh-doc-book-block {
  background: var(--ih-paper);
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  padding: 1rem 1.25rem;
  text-align: center;
  margin: 0.75rem 0;
}

.oh-doc-book-title {
  font-family: var(--ih-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ih-ink);
}

.oh-doc-book-genre {
  font-size: 0.78rem;
  color: var(--ih-ink-soft);
  margin-top: 0.25rem;
}

.oh-doc-clauses {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.oh-doc-clause {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ih-ink-soft);
  line-height: 1.6;
}

.oh-doc-clause-icon {
  width: 14px;
  height: 14px;
  color: var(--ih-rose-vif);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.oh-doc-meta {
  font-size: 0.78rem;
  color: var(--ih-ink-soft);
  opacity: 0.6;
  margin-top: 1rem;
}

.oh-doc-warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 3px solid #f59e0b;
  border-radius: var(--ih-radius);
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
  font-size: 0.78rem;
  color: #92400e;
  line-height: 1.55;
}

/* Pledges & IA choices dans la déclaration */
.oh-doc-pledges,
.oh-doc-ia-choices {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.oh-doc-ia-section-title {
  font-size: 0.82rem;
  color: var(--ih-ink-soft);
  margin-bottom: 0.25rem;
}

.oh-doc-pledge {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--ih-ink);
  line-height: 1.6;
  cursor: pointer;
}

.oh-doc-pledge input[type="checkbox"],
.oh-doc-pledge input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--ih-rose-vif);
  cursor: pointer;
}

/* Signature */
.oh-signature-wrap {
  border-top: 2px solid var(--ih-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.oh-signature-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.oh-signature-label input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--ih-rose-vif);
  cursor: pointer;
}

.oh-signature-text {
  font-size: 0.85rem;
  color: var(--ih-ink);
  line-height: 1.65;
}

/* ====================================================================
   CONFIRM PAGE
   ==================================================================== */
.oh-confirm-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
}

.oh-badge-anim {
  display: inline-block;
  animation: oh-badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes oh-badge-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.oh-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 12, 123, 0.12), rgba(158, 88, 164, 0.08));
  border: 2px solid rgba(244, 12, 123, 0.20);
  margin-bottom: 1.5rem;
  animation: oh-badge-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.oh-confirm-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--ih-rose-vif);
}

.oh-confirm-title {
  font-family: var(--ih-serif);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 400;
  color: var(--ih-ink);
  margin-bottom: 0.75rem;
  animation: fade-up 0.5s 0.2s ease-out both;
}

.oh-confirm-sub {
  font-size: 0.95rem;
  color: var(--ih-ink-soft);
  line-height: 1.65;
  max-width: 400px;
  margin: 0 auto 2rem;
  animation: fade-up 0.5s 0.3s ease-out both;
}

/* Ref block */
#ref-block {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius);
  padding: 0.85rem 1.5rem;
  margin-bottom: 2rem;
  animation: fade-up 0.5s 0.35s ease-out both;
}

#ref-block .oh-ref-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ih-ink-soft);
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

#ref-value {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ih-rose-vif);
}

/* Timeline des étapes */
.oh-timeline {
  background: #fff;
  border: 1px solid var(--ih-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
  text-align: left;
  box-shadow: var(--ih-shadow-soft);
  animation: fade-up 0.5s 0.4s ease-out both;
}

.oh-timeline__title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ih-ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ih-border);
}

.oh-timeline__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.oh-timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.25rem;
}

.oh-timeline__item:last-child {
  padding-bottom: 0;
}

/* Ligne verticale entre les étapes */
.oh-timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.0625rem; /* center of the 2.125rem num circle */
  top: 2.125rem;
  bottom: 0;
  width: 2px;
  background: var(--ih-border);
}

.oh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--ih-rose-vif);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.oh-timeline__content { flex: 1; }

.oh-timeline__step-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ih-ink);
  margin-bottom: 0.2rem;
}

.oh-timeline__step-desc {
  font-size: 0.82rem;
  color: var(--ih-ink-soft);
  line-height: 1.6;
}

/* Actions CTA */
.oh-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  animation: fade-up 0.5s 0.5s ease-out both;
}

.oh-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid var(--ih-border);
  border-radius: var(--ih-radius);
  font-family: var(--ih-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ih-ink);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}

.oh-btn-outline:hover {
  border-color: var(--ih-rose-vif);
  color: var(--ih-rose-vif);
}

/* Pied de page confirm */
.oh-confirm-footer {
  font-size: 0.82rem;
  color: var(--ih-ink-soft);
  opacity: 0.7;
  animation: fade-up 0.5s 0.55s ease-out both;
}

/* ====================================================================
   UTILITIES
   ==================================================================== */
.oh-note {
  font-size: 0.78rem;
  color: var(--ih-ink-soft);
  text-align: center;
  margin-top: 0.6rem;
  opacity: 0.7;
}

.oh-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ih-ink);
  margin-bottom: 1rem;
}

/* Compat classes pour les boutons gérés par order*.js inline style */
#btn-pay:disabled,
#btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 580px) {
  .oh-cards-grid {
    grid-template-columns: 1fr;
  }

  .oh-form-card {
    padding: 1.5rem 1.1rem;
  }

  .oh-doc-card {
    padding: 1.5rem 1.1rem;
  }

  .oh-grid-2 {
    grid-template-columns: 1fr;
  }

  .oh-timeline {
    padding: 1.25rem 1rem;
  }

  .oh-confirm-wrap {
    padding: 2rem 1rem 4rem;
  }

  .oh-doc-id-row {
    flex-direction: column;
    gap: 0.15rem;
  }

  .oh-doc-id-label {
    min-width: unset;
    font-size: 0.72rem;
  }
}

/* ── Modal invitation auth ─────────────────────────────────── */
.order-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.order-auth-modal {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.order-auth-modal__title {
  font-family: var(--ih-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.order-auth-modal__text {
  font-size: 0.88rem;
  color: var(--ih-ink-soft);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.order-auth-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Neutralise le background webkit-autofill sur les inputs du formulaire commande */
.oh-float-input:-webkit-autofill,
.oh-float-input:-webkit-autofill:hover,
.oh-float-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--ih-paper) inset;
  -webkit-text-fill-color: var(--ih-ink);
  transition: background-color 5000s ease-in-out 0s;
}
.order-input:-webkit-autofill,
.order-input:-webkit-autofill:hover,
.order-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--ih-paper) inset;
  -webkit-text-fill-color: var(--ih-ink);
  transition: background-color 5000s ease-in-out 0s;
}

/* ── Note légale discrète sous le bouton CTA (order.html) ─────────────── */
.oh-legal-note {
  max-width: 600px;
  margin: 1.5rem auto 0;
  font-size: 0.75rem;
  color: var(--ih-gris-texte, #888);
  line-height: 1.5;
  text-align: center;
}
.oh-legal-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}
.oh-legal-note li {
  margin-bottom: 0.25rem;
}
.oh-legal-note a {
  color: inherit;
  text-decoration: underline;
}
