/* ═══════════════════════════════════════════════════════════════
   Reprise Smartphone — Frontend CSS v1.3
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:       #f5f7fb;
  --card:     #ffffff;
  --text:     #122A4D;
  --muted:    #475569;
  --line:     #dde6f4;
  --primary:  #122A4D;
  --primary2: #1b3768;
  --accent:   #2563eb;
  --success:  #15803d;
  --danger:   #c62828;
  --warn:     #e65100;
  --radius:   18px;
  --shadow:   0 10px 30px rgba(13,31,60,.08);
}

/* ─── Wrapper ─────────────────────────────────────────────────── */
.rpr-wrap {
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 20px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
}
.rpr-multistep {
  background: linear-gradient(180deg,#f8fbff 0%,#f4f7fb 100%);
  border: 1px solid #e7edf5;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

/* ─── Barre de progression ────────────────────────────────────── */
.rpr-progress-bar {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin-bottom: 26px;
}
.rpr-step-dot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 10px;
  border-radius: 14px;
  background: #eef3fb;
  color: #6b7280;
  border: 1px solid #dde6f1;
  transition: .25s;
  cursor: default;
}
.rpr-step-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13,31,60,.18);
}
.rpr-step-icon { font-size: 16px; }
.rpr-step-label { font-size: 12px; font-weight: 700; }

/* ─── Layout deux colonnes ────────────────────────────────────── */
.rpr-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 24px;
  align-items: start;
}

/* ─── Cartes génériques ───────────────────────────────────────── */
.rpr-form-main,
.rpr-recap-sidebar,
.rpr-card-client,
.rpr-login-required,
.rpr-empty,
.rpr-dossier-card {
  background: var(--card);
  border: 1px solid #e8edf4;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.rpr-form-main { padding: 32px; }
.rpr-step h2 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 6px;
  font-weight: 900;
  color: var(--primary);
}
.rpr-step-intro { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.rpr-step-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 13px;
  font-weight: 700;
  vertical-align: middle;
}
.rpr-step-badge-purple { background: #ede9fe; color: #6d28d9; }

/* ─── Champs et formulaires ───────────────────────────────────── */
.rpr-field-group { margin-bottom: 18px; }
.rpr-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rpr-field-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #334155;
}
.rpr-input,
.rpr-select,
select,
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=number],
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  transition: .2s;
  outline: none;
  box-sizing: border-box;
}
.rpr-input:focus,
.rpr-select:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* ─── Boutons ─────────────────────────────────────────────────── */
.rpr-btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .22s;
  white-space: nowrap;
}
.rpr-btn:hover { transform: translateY(-1px); }
.rpr-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(13,31,60,.18);
}
.rpr-btn-primary:disabled,
.rpr-btn-primary[disabled] {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.rpr-btn-ghost {
  background: #eef3fb;
  color: var(--primary);
  border: 1px solid #dde6f1;
}
.rpr-btn-green { background: #15803d; color: #fff; }
.rpr-btn-red   { background: #c62828; color: #fff; }
.rpr-full      { width: 100%; }

/* ─── Navigation bas d'étape ──────────────────────────────────── */
.rpr-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #dbe3ee;
}

/* ═══════════════════════════════════════════════════════════════
   GRILLE DE MARQUES (Étape 1)
   ═══════════════════════════════════════════════════════════════ */
.rpr-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 12px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.rpr-brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px 22px;
  border: 2px solid #e8edf6;
  border-radius: 24px;
  background: #fff;
  cursor: pointer;
  transition: all .25s cubic-bezier(.25,.46,.45,.94);
  text-align: center;
  appearance: none;
  box-shadow: 0 2px 12px rgba(13,31,60,.05);
  overflow: hidden;
}
/* Fond coloré subtil en pseudo-élément */
.rpr-brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-color, #0d1f3c);
  opacity: 0;
  transition: opacity .25s;
  border-radius: inherit;
  pointer-events: none;
}
.rpr-brand-card:hover:not([disabled])::before { opacity: .05; }
.rpr-brand-card.active::before               { opacity: .08; }

.rpr-brand-card:hover:not([disabled]) {
  border-color: var(--brand-color, var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(13,31,60,.13);
}
.rpr-brand-card.active {
  border-color: var(--brand-color, var(--primary));
  border-width: 2.5px;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(13,31,60,.14);
}
/* Coche de sélection */
.rpr-brand-card.active::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 13px;
  font-weight: 900;
  color: var(--brand-color, var(--primary));
  background: color-mix(in srgb, var(--brand-color, #0d1f3c) 12%, white);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  pointer-events: none;
}
.rpr-brand-card[disabled] {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Logo SVG — grande zone, colorisé */
.rpr-brand-logo {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand-color, #0d1f3c) 8%, white);
  border-radius: 18px;
  padding: 12px;
  transition: background .25s, transform .25s;
  pointer-events: none;
}
.rpr-brand-card:hover:not([disabled]) .rpr-brand-logo,
.rpr-brand-card.active .rpr-brand-logo {
  background: color-mix(in srgb, var(--brand-color, #0d1f3c) 14%, white);
  transform: scale(1.06);
}
.rpr-brand-logo svg {
  width: 100%;
  height: 100%;
  fill: var(--brand-color, var(--primary));
  display: block;
  transition: transform .25s;
}
/* Le logo "Autre" est en stroke donc on ne force pas fill */
.rpr-brand-card[data-brand-key="autre"] .rpr-brand-logo svg {
  fill: none;
  stroke: var(--brand-color, #475569);
}

/* Nom de la marque */
.rpr-brand-name {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: .01em;
  transition: color .2s;
  pointer-events: none;
}
.rpr-brand-card:hover:not([disabled]) .rpr-brand-name,
.rpr-brand-card.active .rpr-brand-name {
  color: var(--brand-color, var(--primary));
}
.rpr-brand-unavail {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: 999px;
}
.rpr-brand-autre { border-style: dashed; }

/* Mini header marque sélectionnée (étape 2) */
.rpr-step-brand-header { margin-bottom: 20px; }
.rpr-brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--brand-color, #0d1f3c) 6%, white);
  border: 1.5px solid color-mix(in srgb, var(--brand-color, #0d1f3c) 18%, white);
  border-radius: 14px;
  padding: 10px 18px;
}
.rpr-brand-mini-logo {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
}
.rpr-brand-mini-logo svg {
  width: 100%;
  height: 100%;
  fill: var(--brand-color, var(--primary));
}
.rpr-brand-mini span {
  font-weight: 800;
  font-size: 16px;
  color: var(--brand-color, var(--primary));
}

/* ─── Boutons capacité pills ──────────────────────────────────── */
.rpr-capacite-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.rpr-cap-btn {
  padding: 10px 18px;
  border: 2px solid #dde6f1;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s;
  color: var(--primary);
  appearance: none;
}
.rpr-cap-btn:hover { border-color: var(--accent); background: #f0f5ff; }
.rpr-cap-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(13,31,60,.18);
}

/* ═══════════════════════════════════════════════════════════════
   CARTES ÉTAT AVEC PHOTOS (Étapes 3 & 4)
   ═══════════════════════════════════════════════════════════════ */
.rpr-etat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.rpr-etat-grid-photos {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rpr-etat-card {
  border: 2px solid #dde6f1;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: .2s;
  text-align: left;
}
.rpr-etat-card:hover {
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13,31,60,.07);
}
.rpr-etat-card.active {
  border-color: var(--primary);
  background: linear-gradient(180deg,#f7faff,#eef5ff);
  box-shadow: 0 10px 25px rgba(37,99,235,.10);
}
.rpr-etat-card strong { font-size: 15px; color: var(--primary); }
.rpr-etat-card span   { font-size: 13px; color: var(--muted); line-height: 1.45; }
/* Carte d'un état dégradé : accent ambré discret, sans dramatiser */
.rpr-etat-card-warn { border-color: #f6c77e; background: #fffdf8; }
.rpr-etat-card-warn:hover { border-color: #ea9e3a; }
.rpr-etat-card-warn.active {
  border-color: #ea9e3a;
  background: linear-gradient(180deg,#fffaf1,#fff4e2);
  box-shadow: 0 10px 25px rgba(234,158,58,.14);
}
.rpr-etat-card-warn strong { color: #b45309; }

/* Photo wrapper */
.rpr-etat-photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  aspect-ratio: 4/3;
  background: #f1f5f9;
}
.rpr-etat-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.rpr-etat-card:hover .rpr-etat-photo,
.rpr-etat-card.active .rpr-etat-photo { transform: scale(1.04); }
.rpr-etat-card.active .rpr-etat-photo-wrap {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}
.rpr-etat-photo-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(13,31,60,.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}
.rpr-etat-photo-badge.rpr-badge-warn   { background: rgba(234,88,12,.85); }
.rpr-etat-photo-badge.rpr-badge-danger { background: rgba(220,38,38,.85); }

/* ═══════════════════════════════════════════════════════════════
   VÉRIFICATIONS (Étape 5)
   ═══════════════════════════════════════════════════════════════ */
.rpr-check-list { display: grid; gap: 12px; }
.rpr-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid #dde6f1;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}
.rpr-check-item input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.rpr-check-required { border-color: #f6c893; background: #fffaf4; }
.rpr-required-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: #fff1db;
  color: #9a4d00;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.rpr-alert {
  margin-top: 12px;
  background: #fff4eb;
  border: 1px solid #ffd3b0;
  color: #8a3d00;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   OFFRE (Étape 6)
   ═══════════════════════════════════════════════════════════════ */
.rpr-offre-box {
  background: linear-gradient(145deg, var(--primary), var(--primary2));
  color: #fff;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 18px 40px rgba(13,31,60,.20);
}
.rpr-offre-label    { font-size: 14px; opacity: .8; }
.rpr-offre-appareil { font-size: 20px; font-weight: 800; margin: 8px 0 6px; }
.rpr-offre-prix     { font-size: 58px; font-weight: 900; line-height: 1; margin: 10px 0; }
.rpr-offre-note     { font-size: 13px; opacity: .8; }
.rpr-detail-decotes { display: grid; gap: 10px; margin-bottom: 18px; }
.rpr-detail-decotes .line {
  display: flex;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e7edf5;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPTE (Étape 7)
   ═══════════════════════════════════════════════════════════════ */
.rpr-account-tabs,
.rpr-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rpr-tab {
  border: none;
  background: #eef3fb;
  color: var(--primary);
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  transition: .18s;
}
.rpr-tab.active    { background: var(--primary); color: #fff; }
.rpr-tab-content   { display: none; }
.rpr-tab-content.active { display: block; }
.rpr-logged-in {
  background: #eefaf0;
  border: 1px solid #cde8d2;
  color: #166534;
  padding: 16px;
  border-radius: 16px;
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════
   IBAN (Étape 8)
   ═══════════════════════════════════════════════════════════════ */
.rpr-cgv { font-size: 14px; color: #334155; margin-top: 12px; display: flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════════════
   SUCCÈS (Étape 9)
   ═══════════════════════════════════════════════════════════════ */
.rpr-success { text-align: center; padding: 36px 10px; }
.rpr-success-icon { font-size: 64px; margin-bottom: 10px; }
.rpr-success h2  { font-size: 40px; margin: 0 0 10px; color: var(--primary); }
.rpr-success p   { color: var(--muted); font-size: 16px; }
.rpr-success-ref {
  display: inline-block;
  margin: 18px auto;
  padding: 14px 20px;
  border-radius: 14px;
  background: #eef3fb;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: .04em;
  font-family: ui-monospace, monospace;
}
.rpr-etiquette-box {
  margin: 18px auto 14px;
  max-width: 520px;
  background: #f6faf6;
  border: 1px solid #d8ebd8;
  border-radius: 18px;
  padding: 22px;
}
.rpr-tracking-num { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════
   RÉCAPITULATIF LATÉRAL
   ═══════════════════════════════════════════════════════════════ */
.rpr-recap-sidebar {
  position: sticky;
  top: 20px;
  padding: 22px;
}
.rpr-recap-sidebar h4 { font-size: 18px; margin: 0 0 16px; color: #122A4D; font-weight: 900; }
.rpr-recap-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid #dde6f4;
}
.rpr-recap-label {
  font-size: 10px;
  color: #122A4D;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  opacity: .55;
}
.rpr-recap-val  { font-size: 15px; font-weight: 800; color: #122A4D; }
.rpr-prix-val   { font-size: 28px; font-weight: 900; color: #122A4D; }

/* ─── Garanties (icônes SVG du récapitulatif) ─────────────────── */
.rpr-recap-trust {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dde6f4;
  display: grid;
  gap: 11px;
}
.rpr-trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #122A4D;
}
.rpr-trust-ico {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf1fb;
  color: var(--primary);
}
.rpr-trust-ico svg { width: 19px; height: 19px; }

/* ═══════════════════════════════════════════════════════════════
   ESPACE CLIENT
   ═══════════════════════════════════════════════════════════════ */
.rpr-espace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rpr-espace-header h1 { font-size: 32px; margin: 0; color: var(--primary); }
.rpr-empty,
.rpr-login-required { text-align: center; padding: 46px 30px; }
.rpr-empty h3         { font-size: 26px; margin: 0 0 10px; }
.rpr-empty p,
.rpr-login-required p { color: var(--muted); font-size: 16px; margin: 0 0 16px; }
.rpr-dossiers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.rpr-dossier-card {
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: .2s;
  display: block;
}
.rpr-dossier-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(13,31,60,.10); }
.rpr-dossier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rpr-dossier-num    { font-weight: 900; color: var(--primary); font-family: monospace; }
.rpr-dossier-device { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.rpr-dossier-prix   { color: #334155; margin-bottom: 6px; }
.rpr-dossier-date   { font-size: 13px; color: #94a3b8; }
.rpr-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.rpr-card-client { padding: 24px; }
.rpr-prix-hero {
  text-align: center;
  font-size: 54px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin: 18px 0;
}
.rpr-etiquette-ready,
.rpr-paiement-ok {
  background: #f8fafc;
  border: 1px solid #e7edf5;
  border-radius: 18px;
  padding: 20px;
}
.rpr-etapes { margin-top: 18px; }
.rpr-steps-list { padding-left: 18px; color: #334155; display: grid; gap: 8px; }
.rpr-tracking-events { display: grid; gap: 10px; margin-top: 16px; }
.rpr-track-item {
  background: #f8fafc;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  padding: 12px 14px;
}
.rpr-track-item strong { display: block; color: var(--primary); }
.rpr-track-item span   { font-size: 13px; color: var(--muted); }
.rpr-chat-box {
  max-height: 380px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 4px 0;
}
.rpr-msg {
  max-width: 78%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e6edf5;
}
.rpr-msg p      { margin: 6px 0 4px; line-height: 1.55; }
.rpr-msg-time   { font-size: 11px; color: #94a3b8; }
.rpr-msg-admin  { background: #f7fbff; border-color: #d9e9ff; }
.rpr-msg-client { background: #f0fff4; border-color: #d4efda; margin-left: auto; }
.rpr-chat-input {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  margin-top: 16px;
  align-items: end;
}
.rpr-chat-input textarea { min-height: 68px; }
.rpr-unread-badge {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-left: 6px;
}
.rpr-detail-table { width: 100%; border-collapse: collapse; }
.rpr-detail-table th,
.rpr-detail-table td {
  padding: 11px 0;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
}
.rpr-detail-table th { width: 220px; color: var(--muted); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .rpr-layout { grid-template-columns: 1fr; }
  .rpr-recap-sidebar { position: static; }
  .rpr-progress-bar  { grid-template-columns: repeat(5, 1fr); }
  .rpr-brand-grid    { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
}

/* ─── Tablette / petit écran : on récupère de la largeur utile ─── */
@media (max-width: 768px) {
  .rpr-wrap        { padding: 0 10px; }
  .rpr-multistep   { padding: 16px; border-radius: 22px; }
  .rpr-form-main,
  .rpr-card-client,
  .rpr-recap-sidebar { padding: 18px; }
  .rpr-step h2,
  .rpr-espace-header h1 { font-size: 26px; }
  .rpr-field-row,
  .rpr-dossiers-grid { grid-template-columns: 1fr; }
  /* Les cartes d'état restent en 2 colonnes pour ne pas étirer les visuels */
  .rpr-etat-grid        { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rpr-etat-grid-photos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rpr-etat-card        { padding: 12px; }
  .rpr-progress-bar  { grid-template-columns: repeat(3, 1fr); }
  .rpr-brand-grid    { grid-template-columns: repeat(2, 1fr); max-width: 100%; gap: 14px; }
  .rpr-brand-logo    { width: 52px; height: 52px; padding: 10px; }
  .rpr-step-label    { display: block; font-size:10px; line-height:1.15; text-align:center; overflow-wrap:anywhere; }
  .rpr-offre-prix,
  .rpr-prix-hero     { font-size: 42px; }
  .rpr-success h2    { font-size: 32px; }
  .rpr-chat-input    { grid-template-columns: 1fr; }
  .rpr-espace-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Mobile : paddings minimaux, contenu pleine largeur ──────── */
@media (max-width: 480px) {
  .rpr-wrap        { padding: 0 6px; margin: 18px auto; }
  .rpr-multistep   { padding: 10px; border-radius: 18px; }
  .rpr-form-main,
  .rpr-card-client,
  .rpr-recap-sidebar { padding: 14px; border-radius: 18px; }
  .rpr-progress-bar     { grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 18px; }
  .rpr-step h2          { font-size: 23px; }
  .rpr-step-intro       { font-size: 14px; }
  /* En 2 colonnes les cartes d'état gardent une largeur confortable */
  .rpr-etat-grid,
  .rpr-etat-grid-photos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rpr-etat-card        { padding: 10px; border-radius: 14px; gap: 4px; }
  .rpr-etat-card strong { font-size: 14px; }
  .rpr-etat-card span   { font-size: 12px; }
  .rpr-etat-photo-wrap  { margin-bottom: 6px; }
  .rpr-brand-logo       { width: 46px; height: 46px; }
}

/* ─── Très petits écrans : une seule colonne d'état ───────────── */
@media (max-width: 360px) {
  .rpr-etat-grid,
  .rpr-etat-grid-photos { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   AJOUTS v1.5 — Nouvelles étapes CDC FenixPhone
   ═══════════════════════════════════════════════════════════════ */

/* ─── Barre de progression 12 étapes ─────────────────────────── */
.rpr-progress-bar { grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media(max-width:900px)  { .rpr-progress-bar { grid-template-columns: repeat(4,1fr); } }
@media(max-width:540px)  { .rpr-progress-bar { grid-template-columns: repeat(3,1fr); } }

/* ─── Grille catégories (étape 0) ─────────────────────────────── */
.rpr-categorie-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 8px 0 4px;
}
.rpr-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  cursor: pointer;
  padding: 0 0 18px;
  overflow: hidden;
  transition: all .22s;
  appearance: none;
  box-shadow: 0 2px 10px rgba(13,31,60,.05);
}
.rpr-cat-card:hover {
  border-color: #0d1f3c;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(13,31,60,.12);
}
.rpr-cat-card.active {
  border-color: #0d1f3c;
  border-width: 2.5px;
  box-shadow: 0 14px 32px rgba(13,31,60,.14);
}
.rpr-cat-photo {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.rpr-cat-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.rpr-cat-card:hover .rpr-cat-photo img { transform: scale(1.06); }
.rpr-cat-icon { font-size: 28px; margin-top: 4px; pointer-events: none; }
.rpr-cat-card strong { font-size: 16px; font-weight: 800; color: #0d1f3c; pointer-events: none; }

/* ─── Allumage (étape 3) ───────────────────────────────────────── */
.rpr-allumage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 12px 0;
}
.rpr-allumage-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  border: 2.5px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  cursor: pointer;
  appearance: none;
  transition: all .22s;
  box-shadow: 0 2px 10px rgba(13,31,60,.04);
}
.rpr-allumage-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,31,60,.10); }
.rpr-allumage-card.active {
  border-color: #0d1f3c;
  background: linear-gradient(160deg,#f7faff,#eef5ff);
  box-shadow: 0 12px 28px rgba(37,99,235,.13);
}
.rpr-allumage-icon { font-size: 40px; pointer-events: none; }
.rpr-allumage-card strong { font-size: 20px; font-weight: 900; color: #0d1f3c; pointer-events: none; }
.rpr-allumage-card span  { font-size: 13px; color: #475569; pointer-events: none; }

/* ─── Fonctionnalités checklist (étape 6) ────────────────────── */
.rpr-fonc-list { display: grid; gap: 10px; margin-bottom: 16px; }
.rpr-fonc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.rpr-fonc-item:has(input:checked) {
  border-color: #15803d;
  background: #f0fdf4;
}
.rpr-fonc-item input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: #15803d; }
.rpr-fonc-check {
  display: none;
  color: #15803d;
  font-weight: 900;
  flex-shrink: 0;
}
.rpr-fonc-item span { font-size: 14px; line-height: 1.5; color: #334155; }
.rpr-fonc-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff8f1;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #7c2d12;
}
.rpr-fonc-alert span { font-size: 20px; flex-shrink: 0; }
.rpr-fonc-verdict { margin: 20px 0 0; }
.rpr-verdict-btn {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all .22s;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.rpr-verdict-btn:hover { border-color: #0d1f3c; transform: translateY(-1px); }
.rpr-verdict-btn.active { background: #0d1f3c; color: #fff; border-color: #0d1f3c; }
.rpr-verdict-non.active { background: #dc2626; border-color: #dc2626; }

/* ─── Formulaire coordonnées (étape 8) ──────────────────────── */
.rpr-coord-form { display: grid; gap: 4px; }
.rpr-req { color: #dc2626; }

/* ─── IBAN "plus tard" (étape 9) ────────────────────────────── */
.rpr-iban-later-wrap {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.rpr-iban-later-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
}
.rpr-iban-later-label input { flex-shrink: 0; margin-top: 3px; }

/* ─── Page envoi (étape 10) ──────────────────────────────────── */
.rpr-envoi-box {
  background: linear-gradient(145deg,#f7faff,#eef5ff);
  border: 1.5px solid #dde6f1;
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}
.rpr-envoi-icon { font-size: 56px; margin-bottom: 12px; }
.rpr-envoi-box h3 { font-size: 22px; margin: 0 0 10px; color: #0d1f3c; }
.rpr-envoi-box p  { color: #475569; }
.rpr-envoi-steps  { text-align: left; margin-top: 24px; background: #fff; border-radius: 16px; padding: 18px 20px; }
.rpr-envoi-steps h4 { margin: 0 0 12px; color: #0d1f3c; }
.rpr-envoi-steps ol { padding-left: 18px; color: #334155; display: grid; gap: 8px; }

/* ─── Confirmation récapitulatif (étape 11) ──────────────────── */
.rpr-confirm-header { text-align: center; padding: 28px 0 20px; }
.rpr-confirm-check {
  width: 72px; height: 72px;
  background: linear-gradient(135deg,#0d1f3c,#1b3768);
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 10px 30px rgba(13,31,60,.20);
}
.rpr-confirm-header h2 { font-size: 30px; margin: 0 0 8px; color: #0d1f3c; }
.rpr-confirm-header p  { color: #475569; }
.rpr-recap-complet { display: grid; gap: 16px; }
.rpr-recap-section {
  background: #fff;
  border: 1.5px solid #dde6f4;
  border-radius: 18px;
  padding: 18px 20px;
}
.rpr-recap-section h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 800;
  color: #122A4D;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #dde6f4;
}
.rpr-recap-rows { display: grid; gap: 10px; }
.rpr-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}
/* Labels (gauche) — visibles mais moins proéminents */
.rpr-recap-row span:first-child {
  color: #475569;
  flex-shrink: 0;
  font-weight: 600;
}
/* Valeurs (droite) — bien visibles en #122A4D */
.rpr-recap-row span:last-child,
.rpr-recap-row strong {
  text-align: right;
  font-weight: 700;
  color: #122A4D;
}
.rpr-recap-prix strong { font-size: 24px; font-weight: 900; color: #15803d; }
.rpr-mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 13px;
  letter-spacing: .04em;
  color: #122A4D;
}

/* ─── Responsive catégories ──────────────────────────────────── */
@media(max-width:600px) {
  .rpr-categorie-grid { grid-template-columns: 1fr; }
  .rpr-allumage-grid  { grid-template-columns: 1fr; }
  .rpr-recap-complet  { gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   ESPACE CLIENT v1.6 — 4 onglets style FenixPhone
   ═══════════════════════════════════════════════════════════════ */

/* Navigation onglets */
.rpr-nav-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e2e8f0;
  margin: 20px 0 0;
  overflow-x: auto;
}
.rpr-nav-tab {
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 20px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .18s, border-color .18s;
}
.rpr-nav-tab:hover { color: #0d1f3c; }
.rpr-nav-tab-active { color: #0d1f3c; border-bottom-color: #0d1f3c; font-weight: 800; }

.rpr-tab-body { padding: 24px 0; }

/* Deux colonnes espace client */
.rpr-two-col-ec {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
  gap: 20px;
  align-items: start;
}

/* Carte espace client */
.rpr-ec-card {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(13,31,60,.05);
}

/* Boîte récap offre */
.rpr-offre-recap-box {
  border: 1px solid #e8edf4;
  border-radius: 14px;
  padding: 16px;
}
.rpr-offre-details { padding: 12px 0; }
.rpr-detail-ligne {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #f8fafc;
}
.rpr-detail-ligne span { color: #475569; }

/* Bouton document */
.rpr-btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #0d1f3c;
  appearance: none;
  transition: .18s;
  text-decoration: none;
}
.rpr-btn-doc:hover { border-color: #0d1f3c; background: #f7faff; }
.rpr-doc-link { color: #2563eb; font-size: 13px; font-weight: 700; text-decoration: underline; margin-left: 10px; }

/* Prochaines étapes */
.rpr-next-steps { display: grid; gap: 10px; }
.rpr-next-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #334155;
}
.rpr-step-check {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.rpr-next-step.done .rpr-step-check { background: #15803d; color: #fff; }
.rpr-next-step.active .rpr-step-check { background: #0d1f3c; color: #fff; }

/* Service list */
.rpr-service-list { display: grid; gap: 10px; }
.rpr-service-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #334155; }
.rpr-service-icon { font-size: 18px; }

/* IBAN display */
.rpr-iban-display {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
}

/* Upload doc */
.rpr-doc-upload-item { padding: 12px; background: #f8fafc; border-radius: 12px; border: 1px solid #e2e8f0; }

/* Adresse box */
.rpr-adresse-box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px; font-size: 15px; line-height: 1.7; color: #334155;
}

/* Radio items */
.rpr-radio-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; font-size: 14px; cursor: pointer;
  border-bottom: 1px solid #f0f4f9;
}

/* Timeline */
.rpr-timeline { display: grid; gap: 12px; }
.rpr-timeline-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px; color: #94a3b8;
}
.rpr-timeline-item.done { color: #334155; }
.rpr-tl-dot {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.rpr-timeline-item.done .rpr-tl-dot { background: #15803d; color: #fff; }
.rpr-timeline-item strong { display: block; }
.rpr-timeline-item small { color: #94a3b8; }

/* Tests fonctionnalités */
.rpr-test-icons { display: flex; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.rpr-test-icon { font-size: 24px; }

/* Diagnostic items */
.rpr-diag-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f0f4f9; font-size: 14px;
}
.rpr-badge-ok { color: #15803d; font-weight: 700; }
.rpr-badge-warn-text { color: #ea580c; font-weight: 700; }

/* Spinner */
.rpr-spinner {
  width: 48px; height: 48px; border: 4px solid #e2e8f0;
  border-top-color: #0d1f3c; border-radius: 50%;
  animation: rpr-spin 1s linear infinite; margin: 0 auto;
}
@keyframes rpr-spin { to { transform: rotate(360deg); } }

/* Discussion panel (slide-over) */
.rpr-discussion-overlay {
  position: fixed; inset: 0; background: rgba(13,31,60,.45);
  z-index: 9999; display: flex; align-items: stretch; justify-content: flex-end;
}
.rpr-discussion-panel {
  width: 380px; max-width: 100vw; background: #fff;
  box-shadow: -8px 0 40px rgba(13,31,60,.18);
  display: flex; flex-direction: column;
  animation: rpr-slide-in .25s ease;
}
@keyframes rpr-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.rpr-discussion-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid #e2e8f0;
  font-size: 16px;
}
.rpr-close-discussion {
  background: none; border: none; font-size: 18px; cursor: pointer; color: #475569;
}
.rpr-chat-box { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rpr-chat-input { padding: 14px 16px; border-top: 1px solid #e2e8f0; display: grid; gap: 10px; }
.rpr-chat-input textarea { resize: none; min-height: 72px; }

/* Typo globale renforcée */
.rpr-form-main h2, .rpr-espace-header h1,
.rpr-ec-card h2, .rpr-ec-card h3, .rpr-ec-card h4 {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Responsive */
@media (max-width: 900px) {
  .rpr-two-col-ec { grid-template-columns: 1fr; }
  .rpr-nav-tab { padding: 12px 14px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════
   IMEI — champ + aide + grille opérateurs
   ═══════════════════════════════════════════════════════════════ */

/* Bouton toggle aide */
.rpr-imei-help-toggle {
  appearance: none;
  border: 1.5px solid #dde6f1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.rpr-imei-help-toggle:hover { border-color: #0d1f3c; background: #eef3fb; color: #0d1f3c; }

/* Panneau aide */
.rpr-imei-help {
  background: #f7fbff;
  border: 1.5px solid #dde6f1;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.rpr-imei-help-intro {
  font-size: 14px;
  color: #475569;
  margin: 0 0 16px;
  line-height: 1.6;
}

/* Méthode code universel */
.rpr-imei-methods { display: grid; gap: 14px; }
.rpr-imei-method {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}
.rpr-imei-method-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rpr-imei-method-icon { font-size: 20px; }
.rpr-imei-code {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.rpr-imei-ussd {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 22px;
  font-weight: 900;
  color: #0d1f3c;
  background: #eef3fb;
  padding: 8px 16px;
  border-radius: 10px;
  letter-spacing: .1em;
}
.rpr-copy-btn {
  appearance: none;
  border: 1.5px solid #0d1f3c;
  border-radius: 8px;
  background: #0d1f3c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  cursor: pointer;
  transition: .18s;
}
.rpr-copy-btn:hover { background: #1b3768; }
.rpr-imei-desc { font-size: 13px; color: #64748b; margin: 0; }

/* Grille opérateurs */
.rpr-imei-ops-title { font-size: 13px; color: #475569; font-weight: 700; margin: 4px 0 8px; }
.rpr-imei-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.rpr-imei-op {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.rpr-imei-op-logo {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}
.rpr-imei-op-logo svg { width: 100%; height: 100%; }
.rpr-imei-op strong { font-size: 13px; color: #0d1f3c; }
.rpr-imei-op span   { font-size: 11px; color: #64748b; line-height: 1.4; }

/* Astuce */
.rpr-imei-tip {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #78350f;
}

/* Compteur IMEI */
.rpr-imei-counter {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #94a3b8;
  font-family: ui-monospace, monospace;
  pointer-events: none;
}

/* Champ IMEI avec espace pour le compteur */
#rpr-imei { padding-right: 70px; font-family: ui-monospace, monospace; letter-spacing: .05em; }

@media (max-width: 600px) {
  .rpr-imei-ops-grid { grid-template-columns: 1fr; }
  .rpr-imei-ussd { font-size: 18px; }
}

/* ─── Upload documents — états visuels ──────────────────────── */
.rpr-doc-upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.rpr-doc-upload-item.rpr-doc-done {
  background: #f0fdf4;
  border-color: #86efac;
}
.rpr-doc-upload-item.rpr-doc-required {
  background: #fff5f5;
  border-color: #fca5a5;
}
.rpr-doc-upload-item.rpr-doc-pending {
  background: #fffbeb;
  border-color: #fde68a;
}
.rpr-doc-upload-label {
  transition: opacity .2s, background .18s;
}
.rpr-doc-upload-label:hover {
  background: #eef3fb !important;
  border-color: #0d1f3c !important;
}
.rpr-doc-upload-required {
  border-color: #dc2626 !important;
  color: #dc2626 !important;
}
.rpr-doc-upload-required:hover {
  background: #fff5f5 !important;
}

/* ═══════════════════════════════════════════════════════════════
   AMÉLIORATIONS v1.7.2
   ═══════════════════════════════════════════════════════════════ */

/* Couleur texte principale FenixPhone */
:root { --fenix: #122A4D; }
.rpr-wrap h1, .rpr-wrap h2, .rpr-wrap h3, .rpr-wrap h4,
.rpr-ec-card h3, .rpr-ec-card h4,
.rpr-espace-header h1 { color: var(--fenix); }

/* ─── Documents requis ─────────────────────────────────────────── */
.rpr-docs-card {
  border-left: 4px solid #122A4D !important;
}

/* ─── Rapport complet ──────────────────────────────────────────── */
.rpr-rapport-content {}
.rpr-rapport-inner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 14px;
}
.rpr-rapport-section strong {
  display: block;
  font-size: 13px;
  color: var(--fenix);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}
.rpr-rapport-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rpr-rapport-table td {
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
}
.rpr-rapport-table td:first-child { color: #475569; width: 55%; }
.rpr-rapport-table td:last-child   { font-weight: 700; color: var(--fenix); }

/* ─── Card support ─────────────────────────────────────────────── */
.rpr-support-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #f0f4fa, #e8edf6);
  border: 1.5px solid #c8d5e8;
  border-radius: 16px;
  padding: 18px 20px;
}
.rpr-support-icon { font-size: 28px; flex-shrink: 0; }
.rpr-support-card .rpr-btn-primary {
  background: var(--fenix);
  font-size: 13px;
  padding: 10px 16px;
}
.rpr-support-card .rpr-btn-primary:hover { background: #1b3768; }

/* Bouton inline discussion */
.rpr-btn-inline-discuss {
  background: none;
  border: none;
  color: var(--fenix);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
}
.rpr-btn-inline-discuss:hover { color: #1b3768; }
.rpr-btn-text { background: none; border: none; cursor: pointer; }

/* ─── Discussion panel amélioré ─────────────────────────────────── */
.rpr-discussion-header {
  background: linear-gradient(135deg, var(--fenix), #1b3768);
  color: #fff;
  padding: 18px 20px;
  border-bottom: none;
}
.rpr-discussion-header strong { color: #fff; font-size: 16px; }
.rpr-close-discussion {
  color: rgba(255,255,255,.7);
  font-size: 20px;
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .18s;
}
.rpr-close-discussion:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ─── Tableau admin — couleur texte ──────────────────────────────── */

/* ─── iCloud info (non-bloquant) ────────────────────────────── */
.rpr-icloud-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 16px;
}
.rpr-icloud-info-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.rpr-icloud-info strong { font-size: 14px; color: #1e40af; display: block; margin-bottom: 2px; }

/* ─── Onglet Documents — sécurité ────────────────────────────── */
.rpr-security-list { display: grid; gap: 12px; margin-top: 4px; }
.rpr-security-item { display: flex; align-items: flex-start; gap: 10px; }
.rpr-security-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.rpr-security-item strong { font-size: 13px; color: #122A4D; display: block; margin-bottom: 2px; }
.rpr-security-item span   { font-size: 12px; color: #64748b; line-height: 1.4; }

/* ─── Lien prévisualisation document ─────────────────────────── */
.rpr-doc-preview-link {
  display: inline-block;
  font-size: 12px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  margin-bottom: 8px;
}

/* ─── Carte Samsung groupée ──────────────────────────────────── */
.rpr-brand-group-hint {
  font-size: 11px;
  color: var(--brand-color, #1428a0);
  opacity: .7;
  font-weight: 700;
  letter-spacing: .04em;
  pointer-events: none;
}

/* ─── IMEI requis — compteur rouge si incomplet ─────────────── */
#rpr-imei:invalid,
#rpr-imei.rpr-imei-error { border-color: #fca5a5 !important; }

/* ─── Upload recto/verso inline (onglet offre) ───────────────── */
.rpr-doc-upload-inline {
  padding: 12px 14px;
}
.rpr-doc-upload-inline .rpr-btn-doc,
.rpr-doc-upload-inline .rpr-doc-upload-label {
  font-size: 13px;
  padding: 9px 14px;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE CONNEXION [rpr_connexion]
   ═══════════════════════════════════════════════════════════════ */
.rpr-connexion-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 70vh;
  padding: 40px 16px;
}
.rpr-connexion-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(18,42,77,.10);
}
.rpr-connexion-header {
  text-align: center;
  margin-bottom: 24px;
}
.rpr-connexion-logo { font-size: 40px; margin-bottom: 10px; }
.rpr-connexion-header h1 { font-size: 22px; font-weight: 900; color: #122A4D; margin: 0 0 4px; }
.rpr-connexion-header p  { font-size: 13px; color: #475569; margin: 0; }

/* Onglets login/register */
.rpr-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 20px;
}
.rpr-auth-tab {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: .18s;
}
.rpr-auth-tab.active { background: #fff; color: #122A4D; box-shadow: 0 1px 4px rgba(18,42,77,.10); }

/* Alertes */
.rpr-auth-alert { padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 16px; }
.rpr-auth-error { background: #fff5f5; border: 1px solid #fca5a5; color: #7f1d1d; }
.rpr-auth-success { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }

.rpr-auth-form { display: grid; gap: 14px; }

/* Champ mot de passe avec toggle */
.rpr-password-wrap { position: relative; display: flex; }
.rpr-password-wrap .rpr-input { flex: 1; padding-right: 44px; }
.rpr-toggle-pwd {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 40px; background: none; border: none;
  cursor: pointer; font-size: 16px; color: #475569;
  display: flex; align-items: center; justify-content: center;
}

/* Indicateur force mdp */
.rpr-pwd-strength { font-size: 12px; font-weight: 700; margin-top: 4px; height: 16px; }

/* Case à cocher */
.rpr-check-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; cursor: pointer; }

/* ─── Onglets auth dans le formulaire (étape 8) ─────────────── */
.rpr-auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 4px;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 16px;
}
.rpr-auth-mode-tab {
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 9px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: .18s;
  text-align: center;
}
.rpr-auth-mode-tab.active {
  background: #fff;
  color: #122A4D;
  box-shadow: 0 1px 4px rgba(18,42,77,.10);
}
.rpr-auth-mode-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.rpr-quick-login-form { display: grid; gap: 12px; }
.rpr-create-account-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #1e40af;
  margin-bottom: 12px;
}
.rpr-auth-ok {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 10px 14px;
  color: #15803d;
  font-weight: 700;
  font-size: 13px;
}
.rpr-logged-in-banner {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: #15803d;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   CHAT WIDGET FLOTTANT
   ═══════════════════════════════════════════════════════════════ */
.rpr-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: Inter, system-ui, sans-serif;
}

/* Bouton FAB */
.rpr-chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #122A4D, #1b3768);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(18,42,77,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.rpr-chat-fab:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(18,42,77,.45); }
.rpr-chat-fab-icon  { font-size: 26px; }
.rpr-chat-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Fenêtre chat */
.rpr-chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(18,42,77,.20);
  overflow: hidden;
  animation: rpr-chat-in .22s cubic-bezier(.25,.46,.45,.94);
}
@keyframes rpr-chat-in {
  from { opacity:0; transform: translateY(12px) scale(.97); }
  to   { opacity:1; transform: none; }
}

/* Header */
.rpr-chat-window-header {
  background: linear-gradient(135deg, #122A4D, #1b3768);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rpr-chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rpr-chat-online { font-size: 11px; color: #86efac; margin-top: 1px; }

/* Messages */
.rpr-chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.rpr-chat-welcome {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
}
.rpr-chat-welcome p { margin: 0 0 4px; }
.rpr-chat-welcome p:last-child { margin: 0; }
.rpr-chat-empty { color: #94a3b8; text-align: center; font-size: 13px; padding: 20px 0; margin: 0; }

/* Bulles */
.rpr-chat-bubble {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}
.rpr-chat-bubble-client { align-self: flex-end; align-items: flex-end; }
.rpr-chat-bubble-admin  { align-self: flex-start; align-items: flex-start; }
.rpr-chat-bubble-sender { font-size: 11px; font-weight: 700; color: #64748b; margin-bottom: 3px; }
.rpr-chat-bubble-text {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.rpr-chat-bubble-client .rpr-chat-bubble-text {
  background: #122A4D;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.rpr-chat-bubble-admin .rpr-chat-bubble-text {
  background: #fff;
  color: #122A4D;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}
.rpr-chat-bubble-time { font-size: 10px; color: #94a3b8; margin-top: 3px; }

/* Zone saisie */
.rpr-chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.rpr-chat-textarea {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  resize: none;
  outline: none;
  font-family: inherit;
  color: #122A4D;
  min-height: 38px;
  max-height: 90px;
}
.rpr-chat-textarea:focus { border-color: #122A4D; }
.rpr-chat-send {
  width: 38px; height: 38px; flex-shrink: 0;
  background: #122A4D;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.rpr-chat-send:hover { background: #1b3768; }

@media (max-width: 480px) {
  .rpr-chat-widget { bottom: 16px; right: 16px; }
  .rpr-chat-window { width: calc(100vw - 32px); }
}


/* Correctifs v1.8.5 — lisibilité et typo */
.rpr-wrap,
.rpr-wrap p,
.rpr-wrap li,
.rpr-wrap td,
.rpr-wrap input,
.rpr-wrap select,
.rpr-wrap textarea,
.rpr-wrap button {
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.rpr-step-intro,
.rpr-wrap small,
.rpr-muted,
.rpr-docs-card p,
.rpr-create-account-note p {
  color: #334155 !important;
}
.rpr-input,
.rpr-select,
.rpr-wrap input[type="text"],
.rpr-wrap input[type="email"],
.rpr-wrap input[type="tel"],
.rpr-wrap input[type="password"],
.rpr-wrap textarea {
  color: #0f172a !important;
  background-color: #ffffff;
}
.rpr-input::placeholder,
.rpr-wrap textarea::placeholder {
  color: #64748b;
}
.rpr-auth-mode-tabs {
  background: #eef2f7;
  border: 1px solid #dbe4f0;
}
.rpr-auth-mode-tab {
  color: #1e293b;
}
.rpr-auth-mode-tab.active {
  color: #ffffff;
}
.rpr-cat-card {
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* v1.8.6 - Lisibilité renforcée documents espace client */
.rpr-wrap{color:#0f172a;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.rpr-wrap p,.rpr-wrap span,.rpr-wrap li{color:#1f2937}
.rpr-doc-preview-link,.rpr-doc-link{color:#0d1f3c!important;font-weight:800!important}
.rpr-doc-upload-item{color:#0f172a}
.rpr-doc-upload-item h4,.rpr-ec-card h3,.rpr-ec-card h4{color:#0b1220!important}

/* Correctifs v1.8.7 — lisibilité boutons, dashboard client, chat et relais */
.rpr-wrap,
.rpr-wrap p,
.rpr-wrap span,
.rpr-wrap li,
.rpr-wrap label,
.rpr-wrap input,
.rpr-wrap textarea,
.rpr-wrap select { color:#0f172a; }
.rpr-btn,
.rpr-btn-primary,
button.rpr-btn-primary,
a.rpr-btn-primary,
.rpr-chat-send,
.rpr-confirmer-expedition,
.rpr-chrono-relay-form .rpr-btn-primary { color:#ffffff!important; }
.rpr-btn-primary *,
.rpr-chat-send * { color:#ffffff!important; }
.rpr-btn-ghost,
a.rpr-btn-ghost,
button.rpr-btn-ghost,
.rpr-btn-doc,
.rpr-doc-upload-label,
.rpr-doc-preview-link,
.rpr-doc-link { color:#0b1220!important; }
.rpr-btn-text,
.rpr-btn-inline-discuss { color:#122A4D!important; }
.rpr-connected-summary{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;background:#f0fdf4;border:1px solid #86efac;border-radius:16px;padding:14px 16px;margin:0 0 16px;color:#0f172a}
.rpr-auth-ok{background:#f0fdf4;border:1px solid #86efac;color:#166534;border-radius:12px;padding:12px 14px;font-weight:800}
.rpr-chrono-relay-card iframe{box-shadow:inset 0 0 0 1px #e2e8f0}
.rpr-chat-widget{z-index:99999!important}
.rpr-chat-window{z-index:100000!important}
.rpr-chat-bubble-text{color:#0f172a!important}
.rpr-chat-bubble-client .rpr-chat-bubble-text{color:#ffffff!important}
.rpr-chat-textarea{color:#0f172a!important;background:#fff!important}

/* Correctifs v1.8.8 — boutons, chat, recherche relais */
.rpr-btn,
.rpr-btn:visited,
.rpr-btn:hover,
.rpr-btn:focus { text-decoration:none!important; }
.rpr-btn-primary,
.rpr-btn-green,
.rpr-btn-red,
.rpr-chat-send,
.rpr-chat-fab { color:#ffffff!important; }
.rpr-btn-ghost,
.rpr-btn-doc,
.rpr-doc-upload-label,
.rpr-doc-preview-link,
.rpr-doc-link,
.rpr-btn-text,
.rpr-btn-inline-discuss { color:#0b1220!important; }
.rpr-btn-ghost:hover,
.rpr-btn-doc:hover { color:#0b1220!important; }
.rpr-chrono-relay-results{background:#fff;border:1px solid #dbe6f3;border-radius:14px;padding:14px;min-height:54px}
.rpr-relay-loading,.rpr-relay-error{margin:0;font-size:13px;color:#334155}.rpr-relay-error{color:#b91c1c}.rpr-relay-fallback strong{display:block;color:#122A4D;margin-bottom:6px}.rpr-relay-fallback p{margin:0 0 12px;color:#475569;font-size:13px;line-height:1.5}.rpr-relay-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.rpr-relay-list{display:grid;gap:10px}.rpr-relay-item{border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;padding:12px}.rpr-relay-item strong{display:block;color:#0f172a;font-size:14px}.rpr-relay-item span{display:block;color:#334155;font-size:13px;margin-top:3px}.rpr-relay-item em{display:inline-block;margin-top:6px;font-style:normal;color:#122A4D;font-weight:800;font-size:12px}.rpr-relay-item small{display:block;margin-top:6px;color:#64748b;white-space:pre-line}
.rpr-chat-widget{position:fixed!important;right:22px!important;bottom:22px!important;z-index:999999!important}.rpr-chat-window{position:absolute!important;right:0!important;bottom:76px!important;width:min(380px,calc(100vw - 32px))!important;max-height:min(620px,calc(100vh - 120px))!important;z-index:1000000!important}.rpr-chat-send{background:#122A4D!important;border:0!important}.rpr-chat-send:disabled{opacity:.65!important;cursor:not-allowed!important}

/* Correctifs v1.8.9 — UX compte et lisibilité boutons */
.rpr-auth-mode-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 6px !important;
}
.rpr-auth-mode-tab {
  color: #122A4D !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}
.rpr-auth-mode-tab:hover {
  background: #ffffff !important;
  color: #0d1f3c !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 20px rgba(18,42,77,.10) !important;
  transform: translateY(-1px);
}
.rpr-auth-mode-tab.active,
.rpr-auth-mode-tab.active:hover {
  background: linear-gradient(135deg, #122A4D, #1b3768) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 10px 24px rgba(18,42,77,.18) !important;
}
.rpr-register-password-block {
  margin-top: 16px !important;
  margin-bottom: 4px !important;
}
.rpr-auth-warning {
  background:#fff7ed !important;
  border-color:#fdba74 !important;
  color:#92400e !important;
  margin: 0 0 14px !important;
}
.rpr-btn-primary,
.rpr-btn-primary:hover,
.rpr-btn-primary:focus,
.rpr-btn-green,
.rpr-btn-green:hover,
.rpr-btn-red,
.rpr-btn-red:hover,
.rpr-chat-send,
.rpr-chat-fab,
.rpr-confirmer-expedition {
  color:#ffffff !important;
}
.rpr-btn-primary *,
.rpr-btn-green *,
.rpr-btn-red *,
.rpr-chat-send *,
.rpr-chat-fab * {
  color:#ffffff !important;
}
.rpr-btn-ghost,
.rpr-btn-ghost:hover,
.rpr-btn-ghost:focus,
.rpr-btn-doc,
.rpr-btn-doc:hover,
.rpr-doc-link,
.rpr-doc-preview-link {
  color:#0b1220 !important;
}


/* Correctifs v1.9.0 — restauration choix compte et email éditable */
#step-8 .rpr-auth-mode-tab{min-height:46px!important;color:#122A4D!important}
#step-8 .rpr-auth-mode-tab:hover{color:#0d1f3c!important;background:#fff!important}
#step-8 .rpr-auth-mode-tab.active,#step-8 .rpr-auth-mode-tab.active:hover{color:#fff!important;background:linear-gradient(135deg,#122A4D,#1b3768)!important}
#step-8 .rpr-field-help{display:block;margin-top:6px;font-size:12px;line-height:1.35;color:#475569!important}
#step-8 input#c-email{pointer-events:auto!important;opacity:1!important;background:#fff!important;color:#0f172a!important}
#step-8 .rpr-coord-form[style*="display:none"] input#c-email{pointer-events:auto!important}

/* Correctifs v1.9.1 — switch compte/création et mot de passe étape coordonnées */
#step-8 .rpr-auth-mode-tabs{
  display:grid;
  visibility:visible;
  opacity:1;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
#step-8 .rpr-auth-mode-tab{
  min-height:46px;
  color:#122A4D!important;
  cursor:pointer!important;
  pointer-events:auto!important;
}
#step-8 .rpr-auth-mode-tab:hover{
  color:#0d1f3c!important;
  background:#fff!important;
  border-color:#cbd5e1!important;
}
#step-8 .rpr-auth-mode-tab.active,
#step-8 .rpr-auth-mode-tab.active:hover{
  color:#fff!important;
  background:linear-gradient(135deg,#122A4D,#1b3768)!important;
}
#step-8 .rpr-coord-form{
  grid-template-columns:1fr;
}
#step-8 #auth-register{
  grid-column:1 / -1;
  margin-top:18px!important;
  margin-bottom:0!important;
  display:block;
}
#step-8 #auth-login{
  margin-bottom:16px;
}
#step-8 input#c-email,
#step-8 input#reg-password-inline,
#step-8 input#ql-email,
#step-8 input#ql-password{
  pointer-events:auto!important;
  opacity:1!important;
  background:#fff!important;
  color:#0f172a!important;
}
#step-8 .rpr-field-help{
  display:block;
  margin-top:6px;
  font-size:12px;
  line-height:1.35;
  color:#475569!important;
}

/* ═══════════════════════════════════════════════════════════════
   Connexion client FenixPhone — v1.9.2
   ═══════════════════════════════════════════════════════════════ */
.rpr-fenix-login {
  min-height: 82vh;
  padding: 42px 18px;
  background:
    radial-gradient(circle at 16% 18%, rgba(36,71,184,.18), transparent 28%),
    radial-gradient(circle at 84% 12%, rgba(183,4,95,.14), transparent 26%),
    linear-gradient(135deg, #f7f9ff 0%, #eef3ff 48%, #ffffff 100%);
}
.rpr-login-hero {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .82fr);
  gap: 28px;
  align-items: stretch;
}
.rpr-login-visual {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 38px;
  min-height: 560px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(36,71,184,.92)),
    linear-gradient(45deg, #111827, #2447b8);
  box-shadow: 0 26px 70px rgba(15,23,42,.22);
}
.rpr-login-visual::before,
.rpr-login-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .72;
}
.rpr-login-visual::before {
  width: 280px;
  height: 280px;
  right: -70px;
  top: -70px;
  background: rgba(183,4,95,.44);
}
.rpr-login-visual::after {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -130px;
  background: rgba(255,255,255,.12);
}
.rpr-login-logo-panel {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 24px;
  padding: 16px 20px;
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}
.rpr-login-logo-img {
  display: block;
  max-width: 230px;
  max-height: 82px;
  object-fit: contain;
}
.rpr-login-copy {
  position: relative;
  z-index: 1;
  margin-top: 78px;
  max-width: 560px;
}
.rpr-login-eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.13);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rpr-login-copy h1 {
  margin: 18px 0 14px;
  color: #ffffff;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 950;
}
.rpr-login-copy p {
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.75;
  max-width: 520px;
}
.rpr-login-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.rpr-login-benefits span {
  color: #ffffff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 800;
}
.rpr-fenix-login .rpr-connexion-card {
  max-width: none;
  border-radius: 32px;
  padding: 32px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 24px 64px rgba(15,23,42,.14);
  backdrop-filter: blur(14px);
}
.rpr-connexion-logo-img {
  display: block;
  max-width: 170px;
  max-height: 58px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.rpr-fenix-login .rpr-connexion-header p {
  color: #334155;
  font-weight: 800;
  font-size: 14px;
}
.rpr-fenix-login .rpr-auth-tabs {
  grid-template-columns: 1fr 1fr;
  background: #edf2ff;
  padding: 5px;
  border-radius: 18px;
  gap: 5px;
}
.rpr-fenix-login .rpr-auth-tab {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  border-radius: 14px;
  padding: 11px 10px;
  font-size: 13px;
  line-height: 1.2;
}
.rpr-fenix-login .rpr-auth-tab:hover {
  color: #111827;
  background: rgba(255,255,255,.72);
  text-decoration: none;
}
.rpr-fenix-login .rpr-auth-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2447b8, #1d3a96);
  box-shadow: 0 12px 24px rgba(36,71,184,.24);
}
.rpr-fenix-login .rpr-field-group label,
.rpr-fenix-login .rpr-label-between span {
  color: #111827;
  font-weight: 850;
}
.rpr-label-between {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.rpr-label-between a,
.rpr-auth-bottom a,
.rpr-auth-terms a {
  color: #2447b8;
  font-weight: 900;
  text-decoration: none;
}
.rpr-label-between a:hover,
.rpr-auth-bottom a:hover,
.rpr-auth-terms a:hover {
  color: #B7045F;
  text-decoration: underline;
}
.rpr-fenix-login .rpr-input {
  border-radius: 16px;
  border-color: #cbd5e1;
  color: #0f172a;
  background: #ffffff;
}
.rpr-fenix-login .rpr-input:focus {
  border-color: #2447b8;
  box-shadow: 0 0 0 4px rgba(36,71,184,.12);
}
.rpr-login-password-zone {
  margin-top: 4px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
}
.rpr-fenix-login .rpr-btn-primary,
.rpr-fenix-login .rpr-btn-primary:visited {
  background: linear-gradient(135deg, #2447b8, #1d3a96) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px;
  min-height: 50px;
  box-shadow: 0 14px 30px rgba(36,71,184,.22);
}
.rpr-fenix-login .rpr-btn-primary:hover,
.rpr-fenix-login .rpr-btn-primary:focus {
  background: linear-gradient(135deg, #B7045F, #8f034a) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.rpr-fenix-login .rpr-toggle-pwd {
  color: #111827;
}
.rpr-auth-bottom,
.rpr-auth-terms,
.rpr-auth-intro {
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  margin: 8px 0 0;
}
.rpr-auth-terms { text-align: left; }
.rpr-fenix-login .rpr-check-label { color: #334155; }
@media (max-width: 940px) {
  .rpr-login-hero { grid-template-columns: 1fr; }
  .rpr-login-visual { min-height: auto; padding: 30px; }
  .rpr-login-copy { margin-top: 44px; }
}
@media (max-width: 620px) {
  .rpr-fenix-login { padding: 24px 12px; }
  .rpr-login-visual { border-radius: 24px; padding: 24px; }
  .rpr-fenix-login .rpr-connexion-card { border-radius: 24px; padding: 24px 18px; }
  .rpr-fenix-login .rpr-auth-tabs { grid-template-columns: 1fr; }
  .rpr-login-logo-img { max-width: 190px; }
}

/* v1.9.3 — correctifs UX, chat et responsive */
.rpr-btn,
.rpr-btn-primary,
.rpr-btn-green,
.rpr-btn-red,
.rpr-chat-send,
.rpr-categorie-grid button,
.rpr-brand-card,
.rpr-account-toggle button,
.rpr-account-tab,
.rpr-doc-upload-label {
  color: inherit;
}
.rpr-btn-primary,
.rpr-btn-green,
.rpr-btn-red,
.rpr-chat-send {
  color:#fff !important;
}
.rpr-btn-primary:hover,
.rpr-btn-green:hover,
.rpr-btn-red:hover,
.rpr-chat-send:hover {
  color:#fff !important;
}
.rpr-btn-ghost,
.rpr-btn-doc,
.rpr-doc-upload-label,
.rpr-account-tab:not(.active) {
  color:#122A4D !important;
}
.rpr-chat-widget{position:fixed;right:22px;bottom:22px;z-index:2147483000;pointer-events:none}
.rpr-chat-fab{pointer-events:auto;z-index:2147483001}
.rpr-chat-window{pointer-events:auto;position:fixed;right:22px;bottom:88px;z-index:2147483002;max-height:72vh;flex-direction:column}
.rpr-chat-window.is-open{display:flex!important}
.rpr-chat-messages{overflow-y:auto;max-height:calc(72vh - 140px)}
.rpr-photo-reminder{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:12px 14px;font-weight:800;font-size:14px;margin-bottom:12px;line-height:1.45}
.rpr-steps-list li{line-height:1.55}
.rpr-nav-tabs .rpr-nav-tab{color:#122A4D!important}
.rpr-nav-tabs .rpr-nav-tab-active{color:#fff!important;background:#122A4D;border-radius:10px 10px 0 0;border-bottom-color:#122A4D!important}
@media (max-width: 820px){
  .rpr-wrap{padding-left:12px!important;padding-right:12px!important}
  .rpr-two-col-ec,.rpr-two-col,.rpr-layout,.rpr-dossiers-grid{grid-template-columns:1fr!important;display:grid!important}
  .rpr-espace-header{gap:12px;align-items:flex-start!important;flex-direction:column!important}
  .rpr-nav-tabs{overflow-x:auto;display:flex;gap:8px;padding-bottom:6px}
  .rpr-nav-tab{white-space:nowrap;min-width:max-content}
  .rpr-chat-widget{right:14px;bottom:14px}
  .rpr-chat-window{right:10px;left:10px;bottom:78px;width:auto!important;max-width:none!important;max-height:76vh}
  .rpr-chat-messages{max-height:calc(76vh - 150px)}
  .rpr-chrono-relay-form{display:grid!important;grid-template-columns:1fr!important}
  .rpr-chrono-relay-form .rpr-btn{width:100%;justify-content:center}
}

/* v1.9.5 — recherche relais Chronopost native */
.rpr-relay-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.rpr-relay-item-head code{font-size:11px;background:#eaf0f8;color:#122A4D;border-radius:999px;padding:4px 8px;font-weight:800}
.rpr-relay-map{display:inline-flex;margin-top:8px;font-size:12px;font-weight:800;color:#122A4D!important;text-decoration:none!important}
.rpr-relay-map:hover{text-decoration:underline!important}

/* v1.9.6 — sélection état automatique et liste fonctionnalités sans cases */
.rpr-auto-next-hidden { display:none !important; }
.rpr-fonc-item.rpr-fonc-info {
  cursor: default;
  background: linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  border: 1.5px solid #dbe7f5;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}
.rpr-fonc-item.rpr-fonc-info .rpr-fonc-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  margin-top: 1px;
}
.rpr-fonc-item.rpr-fonc-info span:last-child {
  color: #122A4D;
  font-weight: 650;
}

/* ═══════════════════════════════════════════════════════════════════════════
   v1.10.0 — Audit CSS espace client + nouveaux composants
   ═══════════════════════════════════════════════════════════════════════════ */

/* Icônes SVG de la barre de progression (remplacent les emojis) */
.rpr-step-icon { display: inline-flex; align-items: center; justify-content: center; }
.rpr-step-icon svg { width: 20px; height: 20px; display: block; stroke: currentColor; }

/* Précision écran fissuré (étape 4) */
.rpr-ecran-precision { margin-top: 4px; }
.rpr-precision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 10px;
}
.rpr-precision-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  cursor: pointer;
}
.rpr-precision-pic { font-size: 22px; line-height: 1; }
.rpr-precision-card strong { font-size: 15px; color: #0d1f3c; }
.rpr-precision-card span { font-size: 13px; color: #64748b; line-height: 1.4; }
@media (max-width: 540px) {
  .rpr-precision-grid { grid-template-columns: 1fr; }
}

/* Message client situé hors UE */
.rpr-pays-hors-ue {
  margin-top: 10px;
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 0 12px 12px 0;
  color: #991b1b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* Progression du prix (timeline) — styles de repli, le rendu inline reste prioritaire */
.rpr-price-progression { margin-bottom: 18px; }

/* Audit espace client : la grille à deux colonnes ne doit jamais déborder */
.rpr-two-col-ec > * { min-width: 0; }
.rpr-ec-card { overflow-wrap: anywhere; }

/* Audit : l'onglet actif reste lisible au survol (pas de texte blanc sur fond clair) */
.rpr-nav-tabs .rpr-nav-tab-active:hover { color: #fff !important; }

/* ═══════════════════════════════════════════════════════════════
   v1.10.12 — Élargissement mobile du formulaire d'estimation
   Sur petits écrans, le panneau extérieur (.rpr-multistep) n'ajoute
   plus ni cadre ni marge : les cartes intérieures occupent toute la
   largeur disponible. Cela supprime l'effet « carte dans une carte »
   qui rendait la section beaucoup trop étroite. Bloc placé en fin de
   feuille pour primer sur les règles !important précédentes.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
  .rpr-wrap { padding-left: 8px !important; padding-right: 8px !important; }
  .rpr-multistep {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .rpr-layout { gap: 16px; }
  .rpr-form-main,
  .rpr-recap-sidebar,
  .rpr-card-client {
    padding: 18px !important;
    border-radius: 16px !important;
  }
}
@media (max-width: 480px) {
  .rpr-wrap { padding-left: 6px !important; padding-right: 6px !important; }
  .rpr-multistep { padding: 0 !important; }
  .rpr-form-main,
  .rpr-recap-sidebar,
  .rpr-card-client {
    padding: 14px !important;
    border-radius: 14px !important;
  }
}

/* Correctifs v1.10.15 — pré-lancement tablettes/MacBook + visuel smartphone */
.rpr-cat-card-coming::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,0) 38%,rgba(248,250,252,.96) 100%);
  pointer-events:none;
}
.rpr-cat-card-coming .rpr-cat-icon,
.rpr-cat-card-coming strong,
.rpr-cat-card-coming .rpr-cat-soon{position:relative;z-index:2}
.rpr-cat-soon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-size:12px;
  font-style:normal;
  font-weight:800;
  line-height:1;
}
.rpr-launch-box{
  position:relative;
  margin:22px 0 4px;
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(18,42,77,.14);
  background:
    radial-gradient(circle at top right, rgba(18,42,77,.12), transparent 34%),
    linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 18px 45px rgba(15,23,42,.10);
}
.rpr-launch-close{
  position:absolute;
  top:12px;
  right:14px;
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:#e2e8f0;
  color:#0f172a;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.rpr-launch-close:hover{background:#cbd5e1}
.rpr-launch-kicker{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  background:#122A4D;
  color:#fff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.rpr-launch-box h3{margin:12px 42px 8px 0;font-size:22px;color:#0f172a;line-height:1.18}
.rpr-launch-box p{margin:0 0 14px;color:#475569;line-height:1.55}
.rpr-launch-form label{display:block;margin:0 0 8px;font-weight:800;color:#0f172a;font-size:14px}
.rpr-launch-row{display:flex;gap:10px;align-items:center}
.rpr-launch-row .rpr-input{flex:1;min-width:0}
.rpr-launch-note{font-size:12px!important;color:#64748b!important;margin-top:8px!important}
.rpr-launch-feedback{min-height:22px;margin-top:10px;font-weight:800;font-size:14px}
.rpr-launch-feedback.success{color:#047857}
.rpr-launch-feedback.error{color:#b91c1c}
@media(max-width:720px){
  .rpr-launch-row{flex-direction:column;align-items:stretch}
  .rpr-launch-row .rpr-btn{width:100%;justify-content:center}
}


/* Correctifs v1.10.16 — lisibilité bouton newsletter de lancement */
.rpr-launch-row .rpr-btn-primary,
.rpr-launch-row button.rpr-btn-primary,
.rpr-launch-row .rpr-btn-primary:hover,
.rpr-launch-row .rpr-btn-primary:focus{
  background:linear-gradient(135deg,#122A4D,#1b3768) !important;
  color:#ffffff !important;
  text-shadow:none !important;
  opacity:1 !important;
}
.rpr-launch-row .rpr-btn-primary *,
.rpr-launch-row button.rpr-btn-primary *{
  color:#ffffff !important;
}
.rpr-launch-row .rpr-btn-primary:disabled{
  color:#ffffff !important;
  opacity:.62 !important;
}

/* ═══════════════════════════════════════════════════════════════
   v1.10.20 — Bandeau de prix de reprise en direct
   Affiche le prix de reprise maximal dès le choix du modèle/capacité,
   puis le montant ajusté à mesure que l'état est renseigné.
   ═══════════════════════════════════════════════════════════════ */
.rpr-live-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin: 20px 0 4px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef7f0, #e3f1e6);
  border: 1px solid #cfe8d6;
}
.rpr-live-price-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #15803d;
}
.rpr-live-price-val {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  color: #166534;
}
.rpr-live-price-hint {
  font-size: 12px;
  color: #64748b;
  max-width: 420px;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .rpr-live-price-val { font-size: 28px; }
}


/* ═══════════════════════════════════════════════════════════════
   Responsive global v1.10.28 — tunnel, espace client, documents, chat
   ═══════════════════════════════════════════════════════════════ */
.rpr-wrap, .rpr-wrap * { min-width: 0; }
.rpr-wrap img, .rpr-wrap svg, .rpr-wrap video, .rpr-wrap canvas { max-width: 100%; height: auto; }
.rpr-docs-after-acceptance { border: 1px solid #dbeafe; background: linear-gradient(180deg,#eff6ff,#fff); }
.rpr-docs-locked { display:flex; align-items:flex-start; gap:18px; padding:24px; border:1px solid #dbeafe; background:linear-gradient(135deg,#eff6ff,#fff); }
.rpr-docs-locked h3 { margin:0 0 8px; color:#122a4d; }
.rpr-docs-locked p { margin:4px 0; color:#475569; }
.rpr-docs-locked-icon { width:48px; height:48px; flex:0 0 48px; display:grid; place-items:center; border-radius:14px; background:#dbeafe; font-size:22px; }
.rpr-docs-required-banner { display:flex; flex-direction:column; gap:3px; margin-bottom:16px; padding:15px 18px; border-radius:14px; background:#ecfdf5; border:1px solid #a7f3d0; color:#166534; }
.rpr-docs-required-banner span { font-size:13px; color:#3f6212; }
.rpr-chat-textarea { resize:none; min-height:44px; max-height:120px; }

@media (max-width: 1024px) {
  .rpr-wrap { width:100% !important; max-width:100% !important; padding-inline:16px !important; }
  .rpr-espace-header { align-items:flex-start !important; gap:16px !important; }
  .rpr-espace-header > div:last-child { flex-wrap:wrap !important; justify-content:flex-start !important; }
  .rpr-two-col-ec, .rpr-grid-2, .rpr-form-grid, .rpr-confirm-grid { grid-template-columns:minmax(0,1fr) !important; }
  .rpr-nav-tabs { overflow-x:auto !important; overscroll-behavior-inline:contain; scrollbar-width:thin; padding-bottom:5px; }
  .rpr-nav-tab { flex:0 0 auto !important; white-space:nowrap !important; }
  .rpr-card, .rpr-ec-card, .rpr-tab-body { max-width:100% !important; }
}

@media (max-width: 760px) {
  .rpr-wrap { padding-inline:10px !important; }
  .rpr-espace-header { display:flex !important; flex-direction:column !important; padding:14px !important; }
  .rpr-espace-header h1 { font-size:clamp(20px,6vw,27px) !important; overflow-wrap:anywhere; }
  .rpr-espace-header > div:last-child { display:grid !important; grid-template-columns:1fr 1fr; width:100%; gap:8px !important; }
  .rpr-espace-header .rpr-open-discussion { grid-column:1 / -1; }
  .rpr-espace-header .rpr-btn { width:100% !important; justify-content:center !important; min-height:44px; padding:9px 10px !important; font-size:12px !important; }
  .rpr-nav-tabs { margin-inline:-10px !important; padding-inline:10px !important; border-radius:0 !important; }
  .rpr-nav-tab { min-height:44px; display:inline-flex !important; align-items:center; padding:8px 12px !important; font-size:12px !important; }
  .rpr-ec-card, .rpr-card-client, .rpr-card { padding:15px !important; border-radius:15px !important; }
  .rpr-tab-body { padding:0 !important; }
  .rpr-offre-recap-box, .rpr-doc-upload-item { padding:12px !important; }
  .rpr-detail-ligne, .rpr-doc-upload-header { gap:10px; align-items:flex-start !important; }
  .rpr-detail-ligne strong { text-align:right; overflow-wrap:anywhere; }
  .rpr-btn, .rpr-btn-doc, .rpr-doc-upload-label { width:100% !important; max-width:100%; white-space:normal !important; text-align:center; justify-content:center !important; line-height:1.3; }
  .rpr-chat-widget { right:10px !important; bottom:10px !important; left:auto !important; }
  .rpr-chat-window { position:fixed !important; inset:10px !important; width:auto !important; max-width:none !important; height:auto !important; max-height:none !important; border-radius:18px !important; z-index:999999 !important; }
  .rpr-chat-messages { min-height:0 !important; flex:1 1 auto !important; }
  .rpr-chat-input-area { padding:10px !important; gap:8px !important; }
  .rpr-chat-send { flex:0 0 46px !important; width:46px !important; height:46px !important; }
  .rpr-chat-fab { width:56px !important; height:56px !important; }
  .rpr-docs-locked { flex-direction:column; padding:18px; }
  .rpr-table-wrap, .rpr-table-responsive { overflow-x:auto !important; -webkit-overflow-scrolling:touch; }
  .rpr-table-wrap table, .rpr-table-responsive table { min-width:680px; }
  input, select, textarea { max-width:100%; font-size:16px !important; }
}

@media (max-width: 430px) {
  .rpr-espace-header > div:last-child { grid-template-columns:1fr; }
  .rpr-espace-header .rpr-open-discussion { grid-column:auto; }
  .rpr-next-step { align-items:flex-start !important; }
  .rpr-chat-window { inset:0 !important; border-radius:0 !important; }
}


/* Correctifs responsive v1.10.30 */
@media (max-width: 768px) {
  .rpr-progress-bar {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:100% !important;
    margin-inline:auto !important;
    justify-content:center !important;
    align-items:stretch !important;
    gap:8px !important;
  }
  .rpr-step-dot {
    width:100% !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:5px !important;
    text-align:center !important;
    padding:7px 3px !important;
  }
  .rpr-step-icon { margin-inline:auto !important; }
  .rpr-step-label { display:block !important; width:100%; color:#475569; font-size:10px !important; line-height:1.15; }
  .rpr-step-dot.active .rpr-step-label { color:#122A4D; font-weight:800; }
}
@media (max-width: 430px) {
  .rpr-progress-bar { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:5px !important; }
  .rpr-step-label { font-size:9px !important; }
}
.rpr-doc-upload-label { display:flex !important; visibility:visible !important; opacity:1 !important; min-height:44px; align-items:center; justify-content:center; }
.rpr-chat-window.is-open { display:flex !important; visibility:visible !important; opacity:1 !important; pointer-events:auto !important; }

/* Correctif v1.10.34 — le widget de chat pouvait rester invisible ou inerte
   derrière d'autres éléments du thème (en-tête sticky, bannière cookies...).
   D'anciens correctifs (v1.8.8/v1.8.9) fixaient encore le z-index à 99999/100000
   en !important, ce qui neutralisait silencieusement les tentatives plus
   récentes de le faire passer au-dessus de tout (2147483000+, sans !important,
   donc perdantes face aux anciennes règles). Cette règle, placée en dernier et
   en !important sur les mêmes sélecteurs, est prioritaire sur l'ensemble des
   règles précédentes du fichier et garantit que le bouton et la fenêtre de
   discussion restent toujours cliquables et visibles au-dessus du reste de la page. */
.rpr-chat-widget {
  position: fixed !important;
  right: 22px !important;
  bottom: 22px !important;
  z-index: 2147483000 !important;
  pointer-events: none !important;
}
.rpr-chat-fab {
  pointer-events: auto !important;
  z-index: 2147483001 !important;
}
.rpr-chat-window {
  pointer-events: auto !important;
  position: fixed !important;
  right: 22px !important;
  bottom: 88px !important;
  z-index: 2147483002 !important;
  display: none;
}
.rpr-chat-window.is-open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
@media (max-width: 820px) {
  .rpr-chat-widget { right: 14px !important; bottom: 14px !important; }
  .rpr-chat-window { right: 10px !important; left: 10px !important; bottom: 78px !important; width: auto !important; max-width: none !important; }
}
@media (max-width: 430px) {
  .rpr-chat-window.is-open { inset: 0 !important; right: auto !important; bottom: auto !important; border-radius: 0 !important; width: auto !important; height: auto !important; }
}

/* v1.10.35 — upload client robuste avec formulaire HTML de secours */
.rpr-doc-upload-form{display:grid;gap:8px;margin-top:8px}
.rpr-doc-upload-form .rpr-doc-file-input{display:block!important;width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font-size:13px;box-sizing:border-box}
.rpr-doc-upload-form .rpr-doc-upload-label{display:block;width:100%;border:0;cursor:pointer;text-align:center;margin:0;box-sizing:border-box}
.rpr-upload-flash{padding:13px 15px;margin:0 0 16px;border-radius:12px;font-size:14px;font-weight:700}
.rpr-upload-flash.is-success{background:#dcfce7;color:#166534;border:1px solid #86efac}
.rpr-upload-flash.is-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5}


/* v1.10.36 — responsive iPhone et interactions client */
@media (max-width: 480px){
  .rpr-wrap{width:100%!important;max-width:100%!important;padding:10px!important;overflow-x:hidden}
  .rpr-espace-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  .rpr-espace-header>div:last-child{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  .rpr-espace-header .rpr-btn{width:100%!important;justify-content:center!important;white-space:normal!important}
  .rpr-nav-tabs{display:flex!important;overflow-x:auto!important;scroll-snap-type:x proximity;padding-bottom:6px!important}
  .rpr-nav-tab{min-width:165px!important;scroll-snap-align:start!important;text-align:center!important}
  .rpr-two-col-ec,.rpr-two-col{display:block!important}
  .rpr-ec-card,.rpr-doc-upload-item{width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .rpr-doc-upload-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}
  .rpr-doc-file-input,.rpr-doc-upload-label,.rpr-btn-doc{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .rpr-chat-window{position:fixed!important;inset:8px!important;width:auto!important;height:auto!important;max-height:none!important;border-radius:16px!important}
  .rpr-chat-messages{max-height:none!important;flex:1!important}
}

/* v1.10.37 — fonctions critiques accessibles sans JavaScript */
.rpr-chat-window:target{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
.rpr-native-chat-form{display:grid!important;grid-template-columns:minmax(0,1fr) 42px 46px!important;gap:8px!important;align-items:end!important;padding:12px!important;background:#fff!important;border-top:1px solid #e2e8f0!important}
.rpr-native-chat-form .rpr-chat-textarea{grid-column:1/2!important;min-width:0!important}
.rpr-chat-attach{width:42px!important;height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#f8fafc!important;cursor:pointer!important;font-size:20px!important;pointer-events:auto!important}
.rpr-chat-attach input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important}
.rpr-native-chat-send{width:46px!important;height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;pointer-events:auto!important}
.rpr-chat-flash{padding:8px 12px;font-size:12px;font-weight:800;border-bottom:1px solid #e2e8f0}.rpr-chat-flash.is-success{background:#f0fdf4;color:#166534}.rpr-chat-flash.is-error{background:#fef2f2;color:#991b1b}
.rpr-chat-bubble-text a{color:inherit!important;text-decoration:underline!important;font-weight:800!important;word-break:break-all!important}
.rpr-doc-upload-form{display:grid!important;gap:10px!important;margin-top:12px!important}
.rpr-doc-upload-form .rpr-native-document-input{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;width:100%!important;height:auto!important;padding:12px!important;border:2px dashed #94a3b8!important;border-radius:12px!important;background:#fff!important;color:#0f172a!important;pointer-events:auto!important}
.rpr-doc-upload-form .rpr-doc-upload-label{display:flex!important;visibility:visible!important;opacity:1!important;min-height:46px!important;align-items:center!important;justify-content:center!important;background:#122A4D!important;color:#fff!important;border:0!important;border-radius:10px!important;cursor:pointer!important;pointer-events:auto!important;font-weight:900!important}
.rpr-open-discussion,.rpr-close-discussion,.rpr-chat-fab{pointer-events:auto!important;cursor:pointer!important}
@media(max-width:600px){.rpr-native-chat-form{grid-template-columns:minmax(0,1fr) 42px 46px!important;padding:10px!important}.rpr-chat-window:target{position:fixed!important;inset:0!important;width:auto!important;height:auto!important;max-height:none!important;border-radius:0!important}}
.rpr-chat-fab,.rpr-close-discussion{text-decoration:none!important}.rpr-close-discussion{display:flex!important;align-items:center!important;justify-content:center!important}

/* v1.10.40 — contrôles natifs documents et support, indépendants du thème */
.rpr-native-upload-controls{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-top:12px!important;width:100%!important;position:relative!important;z-index:5!important}
.rpr-native-file-field{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;width:100%!important;max-width:100%!important;height:auto!important;padding:10px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;color:#0f172a!important;box-sizing:border-box!important}
.rpr-native-file-button,.rpr-native-submit-button{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;position:relative!important;z-index:6!important;width:100%!important;min-height:48px!important;align-items:center!important;justify-content:center!important;padding:12px 16px!important;border-radius:10px!important;box-sizing:border-box!important;font-weight:800!important;text-align:center!important;cursor:pointer!important}
.rpr-native-file-button{background:#eef4fb!important;color:#122a4d!important;border:2px solid #122a4d!important}
.rpr-native-submit-button{background:#122a4d!important;color:#fff!important;border:0!important}
.rpr-native-file-name{display:block!important;color:#475569!important;font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
.rpr-native-support-form{display:grid!important;visibility:visible!important;opacity:1!important;gap:12px!important;position:relative!important;z-index:5!important;width:100%!important}
.rpr-native-support-textarea,.rpr-native-support-file{display:block!important;visibility:visible!important;opacity:1!important;position:static!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;background:#fff!important;color:#0f172a!important;border:1px solid #cbd5e1!important;border-radius:12px!important;padding:14px!important}
.rpr-native-support-file{border:2px dashed #94a3b8!important}
.rpr-native-support-label{display:block!important;font-weight:800!important;color:#122a4d!important}
.rpr-native-support-label span{font-weight:400!important;color:#64748b!important}
.rpr-native-support-submit{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;position:relative!important;z-index:6!important;width:100%!important;min-height:50px!important;align-items:center!important;justify-content:center!important;padding:13px 18px!important;background:#122a4d!important;color:#fff!important;border:0!important;border-radius:10px!important;font-weight:900!important;cursor:pointer!important}
@media(max-width:600px){.rpr-native-file-button,.rpr-native-submit-button,.rpr-native-support-submit{font-size:15px!important;min-height:52px!important}.rpr-native-support-form{gap:10px!important}}


/* v1.10.42 — parcours mobile simplifié, une décision claire par écran */
@media (max-width: 600px) {
  .rpr-form-wrap, .rpr-form-main { padding-inline: 10px !important; }
  .rpr-step { padding: 18px 14px !important; border-radius: 18px !important; }
  .rpr-step h2 { font-size: 22px !important; line-height: 1.2 !important; margin-bottom: 8px !important; }
  .rpr-step-intro { font-size: 14px !important; line-height: 1.45 !important; margin-bottom: 16px !important; }
  .rpr-progress-bar { display:flex !important; overflow-x:auto !important; flex-wrap:nowrap !important; justify-content:flex-start !important; gap:7px !important; padding:4px 2px 10px !important; scroll-snap-type:x proximity; }
  .rpr-step-dot { flex:0 0 76px !important; min-width:76px !important; scroll-snap-align:start; padding:7px 4px !important; }
  .rpr-step-label { font-size:10px !important; line-height:1.15 !important; }
  .rpr-etat-grid, .rpr-etat-grid-photos { display:flex !important; overflow-x:auto !important; scroll-snap-type:x mandatory; gap:12px !important; padding:2px 2px 12px !important; }
  .rpr-etat-card { flex:0 0 calc(100% - 24px) !important; min-width:calc(100% - 24px) !important; scroll-snap-align:center; padding:14px !important; }
  .rpr-etat-photo-wrap { min-height:170px !important; max-height:220px !important; }
  .rpr-etat-card strong { font-size:18px !important; }
  .rpr-etat-card > span { font-size:14px !important; line-height:1.45 !important; }
  .rpr-fonc-list { gap:8px !important; }
  .rpr-fonc-item { padding:11px 12px !important; font-size:13px !important; line-height:1.4 !important; }
  .rpr-fonc-alert, .rpr-icloud-info { padding:12px !important; font-size:13px !important; }
  .rpr-fonc-verdict > div { display:grid !important; grid-template-columns:1fr !important; gap:10px !important; }
  .rpr-verdict-btn { width:100% !important; min-height:52px !important; }
  .rpr-nav { position:sticky !important; bottom:0 !important; z-index:30 !important; background:rgba(255,255,255,.96) !important; backdrop-filter:blur(8px); padding:10px 0 4px !important; margin-top:18px !important; gap:8px !important; }
  .rpr-nav .rpr-btn { min-height:48px !important; flex:1 1 auto !important; }

  /* Espace client : onglets et cartes lisibles sur iPhone */
  .rpr-tabs { display:flex !important; overflow-x:auto !important; flex-wrap:nowrap !important; gap:8px !important; padding-bottom:8px !important; -webkit-overflow-scrolling:touch; }
  .rpr-tab { flex:0 0 auto !important; white-space:nowrap !important; min-height:44px !important; padding:10px 14px !important; }
  .rpr-tab-content.active { width:100% !important; }
  .rpr-tab-body, .rpr-card, .rpr-ec-card { padding:14px !important; border-radius:16px !important; }
  .rpr-offer-layout, .rpr-expedition-grid, .rpr-payment-grid, .rpr-documents-grid, .rpr-suivi-grid { display:grid !important; grid-template-columns:1fr !important; gap:12px !important; }
  .rpr-detail-table, .rpr-detail-table tbody, .rpr-detail-table tr, .rpr-detail-table th, .rpr-detail-table td { display:block !important; width:100% !important; }
  .rpr-detail-table tr { padding:10px 0 !important; border-bottom:1px solid #e5e7eb !important; }
  .rpr-detail-table th { padding:0 0 4px !important; border:0 !important; }
  .rpr-detail-table td { padding:0 !important; border:0 !important; overflow-wrap:anywhere; }
}


/* v1.10.43 — cartes d'état façon parcours mobile et bloc IBAN unifié */
.rpr-iban-card{display:grid;grid-template-columns:52px 1fr;gap:14px;padding:18px;border:1px solid #d9dee7;border-radius:16px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.rpr-iban-card-icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#f2f4f8;color:#122a4d;font-size:25px;font-weight:900}
.rpr-iban-card-content{display:flex;flex-direction:column;gap:4px;padding-top:2px}.rpr-iban-card-content strong{font-size:16px;color:#111827}.rpr-iban-card-content span{font-size:13px;line-height:1.5;color:#5b6472}
.rpr-iban-card .rpr-field-group,.rpr-iban-card .rpr-iban-later-wrap{grid-column:1/-1}.rpr-iban-card .rpr-input{min-height:54px;font-size:16px;letter-spacing:.035em;border-radius:12px}
@media (max-width:600px){
#step-4 .rpr-etat-grid,#step-4 .rpr-etat-grid-photos,#step-5 .rpr-etat-grid,#step-5 .rpr-etat-grid-photos{display:grid!important;grid-template-columns:1fr!important;overflow:visible!important;scroll-snap-type:none!important;gap:10px!important;padding:0!important}
#step-4 .rpr-etat-card,#step-5 .rpr-etat-card{width:100%!important;min-width:0!important;flex:none!important;padding:8px!important;gap:0!important;border:1px solid #d7dce4!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important;transform:none!important}
#step-4 .rpr-etat-card.active,#step-5 .rpr-etat-card.active{border:2px solid #122a4d!important;padding:7px!important;background:#fff!important;box-shadow:0 0 0 3px rgba(18,42,77,.08)!important}
#step-4 .rpr-etat-photo-wrap,#step-5 .rpr-etat-photo-wrap{width:100%!important;min-height:0!important;max-height:none!important;aspect-ratio:16/8.8!important;margin:0 0 10px!important;border-radius:8px!important;background:#f5f5f8!important}
#step-4 .rpr-etat-photo,#step-5 .rpr-etat-photo{object-fit:cover!important;transform:none!important}
#step-4 .rpr-etat-card strong,#step-5 .rpr-etat-card strong{display:block!important;font-size:15px!important;line-height:1.25!important;color:#111827!important;margin:0 2px 5px!important}
#step-4 .rpr-etat-card>span,#step-5 .rpr-etat-card>span{display:block!important;font-size:12px!important;line-height:1.45!important;color:#303642!important;margin:0 2px 3px!important}
.rpr-iban-card{grid-template-columns:44px 1fr;gap:11px;padding:14px;border-radius:13px}.rpr-iban-card-icon{width:44px;height:44px;border-radius:11px;font-size:21px}.rpr-iban-card-content strong{font-size:15px}.rpr-iban-card-content span{font-size:12px}.rpr-iban-card .rpr-input{min-height:52px;font-size:16px}.rpr-iban-later-label{padding:12px!important;border:1px solid #d9dee7!important;border-radius:11px!important;background:#f7f8fa!important}
}
