/* ═══════════════════════════════════════════════════════════════════════
   TUNNEL DE RÉSERVATION — Entreposage Shawinigan
   CSS partagé pour les 5 pages : formulaire, contrat, contrat-signé,
   paiement, merci.
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette de marque (alignée avec le site marketing) */
  --primary:     #606660;
  --primary-d:   #555c56;
  --primary-dd:  #3d4440;
  --accent-l:    #737a72;
  --beige:       #c9b8a4;
  --beige-l:     #f5efe8;
  --beige-d:     #a89478;

  /* Actions */
  --success:     #16a34a;
  --success-d:   #15803d;
  --success-bg:  #dcfce7;
  --warning:     #d97706;
  --warning-bg:  #fef3c7;
  --danger:      #dc2626;
  --danger-bg:   #fee2e2;
  --info:        #0284c7;
  --info-bg:     #e0f2fe;

  /* Surfaces */
  --bg:          #f6f5f1;
  --surface:     #ffffff;
  --surface-2:   #fafaf7;
  --border:      #e6e8e3;
  --border-l:    #f0f1ec;

  /* Texte */
  --text:        #1a1f1c;
  --text-2:      #475056;
  --muted:       #6b7280;

  /* UI */
  --radius:      14px;
  --radius-lg:   18px;
  --shadow:      0 1px 3px rgba(60,66,55,.07), 0 1px 2px rgba(60,66,55,.04);
  --shadow-md:   0 6px 18px rgba(60,66,55,.09), 0 2px 6px rgba(60,66,55,.05);
  --shadow-lg:   0 16px 40px rgba(60,66,55,.14), 0 6px 12px rgba(60,66,55,.06);
  --ease:        cubic-bezier(.22,.61,.36,1);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

h1, h2, h3, h4 { font-family: 'Outfit', 'Inter', sans-serif; letter-spacing: -.02em; }

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */
header {
  background: linear-gradient(135deg, var(--primary-dd) 0%, var(--primary-d) 60%, var(--accent-l) 100%);
  color: #fff;
  text-align: center;
  padding: 36px 20px 26px;
  position: relative;
  overflow: hidden;
}
header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,184,164,.15) 0%, transparent 40%),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  pointer-events: none;
}
header > * { position: relative; z-index: 1; }
header h1 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
header p {
  font-size: .9rem;
  opacity: .85;
  margin-top: 6px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   STEP TRACKER
   ═══════════════════════════════════════════════════════════════════════ */
.steps {
  display: flex;
  justify-content: center;
  background: var(--primary-d);
  padding: 0 20px 16px;
  position: relative;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  padding: 0 12px;
  transition: color .25s var(--ease);
}
.step.done   { color: rgba(255,255,255,.78); }
.step.active { color: #fff; font-weight: 700; }
.step .num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit';
  font-size: .75rem; font-weight: 700;
  transition: all .25s var(--ease);
  flex-shrink: 0;
}
.step.done .num {
  background: rgba(255,255,255,.45);
  color: var(--primary-d);
  border-color: transparent;
}
.step.active .num {
  background: var(--beige);
  color: var(--primary-dd);
  border-color: var(--beige);
  box-shadow: 0 0 0 4px rgba(201,184,164,.22);
}

/* Mobile : on cache le label texte, on garde juste les numéros */
@media (max-width: 480px) {
  .step { padding: 0 8px; gap: 4px; font-size: .72rem; }
  .step:not(.active) > :not(.num) { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════════════ */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* ═══════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  animation: cardIn .35s var(--ease) backwards;
}
.card:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3) { animation-delay: .1s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════
   UNIT SIZE SELECTOR (reserver.html)
   ═══════════════════════════════════════════════════════════════════════ */
.unit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) { .unit-grid { grid-template-columns: 1fr; gap: 10px; } }

.unit-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: all .2s var(--ease);
  position: relative;
  background: var(--surface);
}
.unit-card:hover {
  border-color: var(--accent-l);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.unit-card.selected {
  border-color: var(--primary-d);
  background: var(--beige-l);
  box-shadow: 0 0 0 3px rgba(96,102,96,.12), var(--shadow-md);
}
.unit-card input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.unit-card .size-label {
  font-family: 'Outfit';
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dd);
  letter-spacing: -.01em;
}
.unit-card .size-desc {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 4px;
}
.unit-card .size-price {
  font-family: 'Outfit';
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-d);
  margin-top: 10px;
  letter-spacing: -.02em;
}
.unit-card .size-price span {
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
}
.unit-card .check {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5d1;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s var(--ease);
}
.unit-card.selected .check {
  background: var(--primary-d);
  border-color: var(--primary-d);
  color: #fff;
  transform: scale(1.1);
}
.unit-card.selected .check::after {
  content: '✓';
  font-size: .78rem;
  font-weight: 700;
}

.unit-card.unavailable {
  opacity: .78;
  cursor: default;
  background: var(--surface-2);
  border-color: var(--border);
}
.unit-card.unavailable:hover {
  border-color: var(--border);
  background: var(--surface-2);
  transform: none;
  box-shadow: none;
}
.unit-card.unavailable input { pointer-events: none; }

.badge-complet, .badge-dispo {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 8px;
  letter-spacing: .03em;
}
.badge-complet { background: var(--danger-bg); color: #b91c1c; }
.badge-dispo   { background: var(--success-bg); color: var(--success-d); }
.badge-bientot {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
  margin-top: 8px; letter-spacing: .03em;
  background: #fef3c7; color: #92400e;
}

/* Carte "Bientôt disponible" — pleine largeur */
.unit-card-soon {
  grid-column: 1 / -1;
  cursor: default;
  border-style: dashed;
  border-color: #d6c9b5;
  background: linear-gradient(135deg, #fdfcf9 0%, #f5efe8 100%);
}
.unit-card-soon:hover {
  border-color: #c9b8a4;
  background: linear-gradient(135deg, #fdfcf9 0%, #f5efe8 100%);
  transform: none;
  box-shadow: none;
}

.btn-waitlist {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 700;
  font-family: 'Outfit';
  cursor: pointer;
  transition: all .2s var(--ease);
  text-align: center;
  letter-spacing: -.005em;
  box-shadow: 0 3px 10px rgba(234,88,12,.25);
}
.btn-waitlist:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(234,88,12,.35); }

/* ═══════════════════════════════════════════════════════════════════════
   WAITLIST SECTION
   ═══════════════════════════════════════════════════════════════════════ */
.waitlist-section {
  display: none;
  margin-top: 22px;
  background: #fff7ed;
  border: 2px solid #fed7aa;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.waitlist-section h3 {
  font-family: 'Outfit';
  font-size: 1rem;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 8px;
}
.waitlist-section p {
  font-size: .87rem;
  color: #c2410c;
  margin-bottom: 18px;
}
.btn-waitlist-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c2410c, #ea580c);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Outfit';
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(194,65,12,.3);
}
.btn-waitlist-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(194,65,12,.4); }
.btn-waitlist-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.waitlist-success {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius);
  padding: 20px 22px;
  text-align: center;
}
.waitlist-success h3 {
  font-family: 'Outfit';
  color: #166534;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.waitlist-success p { color: #15803d; font-size: .9rem; line-height: 1.6; }

.avail-loading {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 500;
}

.all-unavailable {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  margin-top: 16px;
}
.all-unavailable p { font-size: .92rem; color: #b91c1c; font-weight: 600; margin-bottom: 6px; }
.all-unavailable a { color: #b91c1c; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════════════
   FORM FIELDS
   ═══════════════════════════════════════════════════════════════════════ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: all .18s var(--ease);
  background: #fff;
  color: var(--text);
}
.field input::placeholder { color: #a8b0a6; }
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(96,102,96,.12);
}
.field input.error { border-color: var(--danger); background: #fef9f9; }
.field input.error:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.12); }

.hint { font-size: .78rem; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */
.btn-submit, .btn-confirm, .btn-signed, .btn-pay, .btn-open-contract, .btn {
  display: block;
  width: 100%;
  padding: 15px;
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: 'Outfit';
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all .2s var(--ease);
  letter-spacing: -.005em;
}
.btn-submit:active, .btn-confirm:active, .btn-signed:active,
.btn-pay:active, .btn-open-contract:active, .btn:active { transform: scale(.98); }

.btn-submit, .btn, .btn-open-contract {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  box-shadow: 0 6px 16px rgba(96,102,96,.3);
  margin-top: 6px;
}
.btn-submit:hover, .btn:hover, .btn-open-contract:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(96,102,96,.4);
}
.btn-submit:disabled, .btn-confirm:disabled, .btn-signed:disabled {
  opacity: .55; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn-confirm, .btn-signed, .btn-pay {
  background: linear-gradient(135deg, var(--success-d), var(--success));
  box-shadow: 0 6px 16px rgba(22,163,74,.3);
}
.btn-confirm:hover, .btn-signed:hover, .btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22,163,74,.4);
}
.btn-pay { font-size: 1.05rem; padding: 17px; margin-bottom: 12px; }
.btn-open-contract { padding: 18px; font-size: 1.05rem; margin: 10px 0 18px; }

.btn-show-manual {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all .18s var(--ease);
}
.btn-show-manual:hover { background: var(--surface-2); border-color: var(--accent-l); color: var(--primary-d); }

/* Error message (form-level) */
.error-msg {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 9px;
  padding: 11px 15px;
  font-size: .88rem;
  margin-bottom: 14px;
  display: none;
  font-weight: 500;
}

.privacy {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 18px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   SUMMARY GRID (reserver-contrat.html)
   ═══════════════════════════════════════════════════════════════════════ */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
@media (max-width: 480px) { .summary-grid { grid-template-columns: 1fr; } }
.summary-item {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-l);
  transition: all .18s var(--ease);
}
.summary-item:hover { background: #fff; box-shadow: var(--shadow); }
.summary-item .lbl {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.summary-item .val {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.summary-item.highlight {
  background: var(--beige-l);
  border-left: 3px solid var(--beige-d);
  border-color: rgba(168,148,120,.28);
}
.summary-item.highlight .val { color: var(--primary-dd); }

/* ═══════════════════════════════════════════════════════════════════════
   CONTRACT INSTRUCTIONS (reserver-contrat.html)
   ═══════════════════════════════════════════════════════════════════════ */
.contract-instructions {
  background: var(--info-bg);
  border: 1.5px solid #bae6fd;
  border-radius: 11px;
  padding: 16px 18px;
  font-size: .88rem;
  color: #0c4a6e;
  line-height: 1.65;
}
.contract-instructions strong { color: #075985; }
.contract-instructions ol {
  padding-left: 20px;
  margin-top: 8px;
}
.contract-instructions ol li { margin-bottom: 6px; }

.signed-section {
  margin-top: 22px;
  padding: 20px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 11px;
}
.signed-section h3 {
  font-family: 'Outfit';
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
  margin-bottom: 10px;
}
.signed-section p {
  font-size: .88rem;
  color: #166534;
  margin-bottom: 16px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════
   PAYMENT PAGE — Amount box & line items
   ═══════════════════════════════════════════════════════════════════════ */
.amount-box {
  background: linear-gradient(135deg, var(--beige-l), #ede4d6);
  border: 1.5px solid var(--beige);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.amount-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(168,148,120,.15), transparent 60%);
  pointer-events: none;
}
.amount-box > * { position: relative; z-index: 1; }
.amount-box .label {
  font-size: .82rem;
  color: var(--primary-d);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.amount-box .amount {
  font-family: 'Outfit';
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-dd);
  letter-spacing: -.03em;
  line-height: 1;
}
.amount-box .period {
  font-size: .92rem;
  color: var(--primary-d);
  margin-top: 8px;
  font-weight: 500;
}

.line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border-l);
}
.line-item:last-child {
  border-bottom: none;
  font-weight: 700;
  padding-top: 14px;
  font-size: 1rem;
  border-top: 1.5px solid var(--border);
  margin-top: 4px;
}
.line-item .item-label { color: var(--text-2); }
.line-item .item-value { color: var(--primary-dd); font-weight: 600; font-family: 'Outfit'; }
.line-item:last-child .item-value { color: var(--primary-dd); font-size: 1.1rem; }

/* QB email box */
.qb-sent-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.qb-sent-box .qb-title {
  font-family: 'Outfit';
  font-size: 1.05rem;
  font-weight: 700;
  color: #166534;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 12px;
}
.qb-sent-box p { font-size: .9rem; color: #15803d; line-height: 1.6; }
.qb-sent-box .email-highlight {
  display: inline-block;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 6px;
  padding: 3px 10px;
  font-weight: 700;
  color: #166534;
  margin: 6px 0;
  font-family: 'Outfit';
  font-size: .92rem;
}
.qb-sent-box .steps-list {
  margin-top: 14px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qb-sent-box .steps-list li {
  font-size: .86rem;
  color: #166534;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.qb-sent-box .steps-list .step-num {
  min-width: 22px; height: 22px;
  background: var(--success); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit';
  font-size: .72rem; font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Waiting indicator */
.waiting-box {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .88rem;
  color: #92400e;
  font-weight: 500;
  line-height: 1.55;
}
.waiting-box .spinner {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid #fde68a;
  border-top-color: var(--warning);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 1px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.confirm-section { display: none; margin-top: 6px; }
.confirm-section h3 {
  font-family: 'Outfit';
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-d);
  margin-bottom: 12px;
}

.contact-box {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  padding-top: 14px;
  font-weight: 500;
}
.contact-box a { color: var(--primary-d); font-weight: 700; text-decoration: none; }
.contact-box a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════════════ */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}
.loading::before {
  content: '';
  display: block;
  width: 38px; height: 38px;
  margin: 0 auto 18px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════
   MERCI PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.success-icon {
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 18px;
  animation: pop .55s var(--ease);
}
@keyframes pop {
  0%   { transform: scale(.4); opacity: 0; }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); opacity: 1; }
}

.details-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.details-card h3 {
  font-family: 'Outfit';
  font-size: .98rem;
  font-weight: 700;
  color: var(--primary-d);
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-l);
  font-size: .9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .lbl { color: var(--muted); font-weight: 500; }
.detail-row .val { font-weight: 600; color: var(--text); }

.next-steps {
  background: linear-gradient(135deg, var(--beige-l), #ede4d6);
  border: 1.5px solid var(--beige);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 18px;
}
.next-steps h3 {
  font-family: 'Outfit';
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dd);
  margin-bottom: 14px;
}
.next-steps ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.next-steps li {
  font-size: .9rem;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.next-steps li .icon { flex-shrink: 0; font-size: 1.05rem; }
.next-steps li strong { color: var(--primary-dd); }

.portal-note {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  color: #166534;
  margin-bottom: 18px;
  line-height: 1.6;
  font-weight: 500;
}

.contact {
  text-align: center;
  font-size: .87rem;
  color: var(--muted);
  padding: 16px;
  font-weight: 500;
}
.contact a { color: var(--primary-d); text-decoration: none; font-weight: 700; }
.contact a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════
   CONTRAT-SIGNE PAGE (modal-style)
   ═══════════════════════════════════════════════════════════════════════ */
body.standalone {
  display: flex;
  align-items: center;
  justify-content: center;
}
.standalone-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 42px 34px;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
  margin: 20px;
  text-align: center;
  border: 1px solid var(--border);
  animation: cardIn .45s var(--ease);
}
.standalone-card .icon {
  font-size: 3.4rem;
  margin-bottom: 18px;
  display: inline-block;
  animation: pop .55s var(--ease);
}
.standalone-card h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 12px;
}
.standalone-card p {
  font-size: .92rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 22px;
}
.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--primary-d);
  margin-top: 6px;
  font-weight: 500;
}
.spinner-wrap .spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--beige);
  border-top-color: var(--primary-d);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.standalone-card .error {
  background: var(--danger-bg);
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: .87rem;
  margin-top: 18px;
  display: none;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
