/* ============================================================
   CREER.CSS — Page de création wizard 3 étapes
   ============================================================ */

/* ── PAGE LAYOUT ── */
.creer-body { background: var(--cream); }

.creer-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.creer-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.creer-nav-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  color: var(--dark);
}

.creer-nav-logo span { color: var(--orange); }

.creer-nav-back {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.creer-nav-back:hover { color: var(--dark); }

/* ── BARRE DE PROGRESSION ── */
.wizard-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.progress-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  border: 2px solid var(--line);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.progress-step span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-light);
  text-align: center;
  transition: color 0.3s;
}

.progress-step.active .progress-dot {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 0 0 5px var(--orange-light);
}

.progress-step.active span { color: var(--orange); font-weight: 600; }

.progress-step.done .progress-dot {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.progress-step.done .progress-dot::after {
  content: '✓';
  font-family: var(--font-body);
  font-size: 1rem;
}

.progress-step.done .progress-dot { font-size: 0; }
.progress-step.done .progress-dot::after { font-size: 1rem; }

.progress-connector {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin-bottom: 28px;
  max-width: 80px;
  transition: background 0.3s ease;
}

.progress-connector.done { background: var(--dark); }

/* ── ZONE PRINCIPALE ── */
.wizard-main {
  padding: 56px 0 100px;
}

.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 300px 300px;
  gap: 32px;
  align-items: flex-start;
}

.wizard-form-area { min-width: 0; }

/* ── PANNEAU APERÇU ── */
.wizard-preview-col {
  position: sticky;
  top: 24px;
}

.preview-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.preview-panel-head {
  margin-bottom: 16px;
}

.preview-panel-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-top: 8px;
  margin-bottom: 0;
}

.preview-empty {
  text-align: center;
  padding: 12px 0;
}

.preview-empty p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
}

.preview-grid-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 64px;
  margin: 0 auto;
}

.preview-grid-demo div {
  height: 32px;
  background: var(--cream-dark);
  border-radius: 3px;
}

.preview-img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.preview-fallback {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.preview-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  text-transform: uppercase;
}

/* ── EN-TÊTE D'ÉTAPE ── */
.step-head {
  margin-bottom: 36px;
}

.step-head h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  color: var(--dark);
  margin-top: 8px;
}

.step-intro {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.65;
}

.step-sub-head {
  margin: 32px 0 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.step-sub-head h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--dark);
  margin-bottom: 4px;
}

/* ── CHAMPS ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.field-hint {
  font-size: 0.8rem;
  color: var(--muted-light);
  margin-top: -3px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-light); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-light);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B65' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}

.field textarea { resize: vertical; min-height: 130px; line-height: 1.65; }

.char-count {
  font-size: 0.75rem;
  color: var(--muted-light);
  text-align: right;
  margin-top: -16px;
  margin-bottom: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-row-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.score-vs {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--muted-light);
  text-align: center;
  padding-bottom: 13px;
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ── UPLOAD PHOTOS ── */
.upload-zone {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: all 0.2s;
  overflow: hidden;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--orange);
  background: var(--orange-light);
}

.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 24px;
  text-align: center;
  pointer-events: none;
}

.upload-icon { font-size: 2rem; }

.upload-prompt strong { font-size: 0.9375rem; color: var(--dark); }
.upload-prompt p { font-size: 0.8125rem; color: var(--muted); margin: 0; line-height: 1.5; }
.upload-prompt .upload-ai-hint { color: var(--orange); font-weight: 600; }

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}

.upload-preview-item {
  position: relative;
}

.upload-preview-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  display: block;
}

.upload-count {
  margin: 0 14px 12px;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
}

/* ── FORMAT RADIO CARDS (étape 2) ── */
.format-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.format-group-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted-light);
  margin-top: 8px;
  margin-bottom: 4px;
}

.format-radio-card {
  display: block;
  cursor: pointer;
}

.format-radio-card input[type="radio"],
.format-radio-card input[type="checkbox"] { display: none; }

.format-radio-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: all 0.2s;
  gap: 12px;
}

.format-radio-card:hover .format-radio-body {
  border-color: var(--orange);
  background: var(--orange-light);
}

.format-radio-card input:checked + .format-radio-body {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 0 0 1px var(--orange);
}

.format-radio-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.format-radio-icon { font-size: 1.375rem; }

.format-radio-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--dark);
  display: block;
}

.format-radio-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.format-radio-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.format-radio-price-note {
  font-family: var(--font-body, inherit);
  font-size: 0.6875rem;
  color: var(--muted-light);
  font-style: italic;
  font-weight: 400;
  margin-top: 2px;
}

.format-multiselect-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--cream, #F5F4EF);
  border-radius: 8px;
  text-align: center;
  font-style: italic;
}

.recap-produit-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.recap-produit-price {
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}

/* ── FORMAT EXEMPLES VISUELS ── */
.format-example {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 4px;
}

.format-example-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.format-example-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  align-self: center;
}


.fex-sub {
  font-family: var(--font-mono);
  font-size: 0.4rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  letter-spacing: 0.08em;
}

.fex-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: rgba(0,0,0,0.18);
}

.fex-pages-stack {
  position: relative;
  width: 64px;
  height: 88px;
}

.fex-page--inner {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.fex-page--1 { width: 60px; height: 84px; z-index: 3; }
.fex-page--2 { width: 56px; height: 80px; z-index: 2; right: -2px; bottom: -2px; background: #f0eee8; }
.fex-page--3 { width: 52px; height: 76px; z-index: 1; right: -4px; bottom: -4px; background: #e8e5de; }

.fex-lines {
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fex-line {
  height: 5px;
  background: var(--line);
  border-radius: 2px;
}

.fex-line--img {
  height: 28px;
  background: var(--cream-dark);
  border-radius: 3px;
}

.fex-line--short { width: 60%; }

/* ── RÉCAP SIDEBAR ── */
.recap-sidebar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 24px;
  box-shadow: var(--shadow-sm);
}

.recap-sidebar-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.recap-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 0.875rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}

.recap-line:last-of-type { border-bottom: none; }
.recap-key { color: var(--muted); }
.recap-val { font-weight: 600; color: var(--dark); text-align: right; font-size: 0.8125rem; }
.recap-val.placeholder-val { color: var(--muted-light); }

.recap-line--produits { align-items: flex-start; }
.recap-line--produits .recap-val { display: flex; flex-direction: column; gap: 4px; }

.recap-total {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recap-total-label { font-weight: 700; font-size: 0.9375rem; color: var(--dark); }
.recap-total-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--orange);
}

.recap-empty {
  color: var(--muted-light);
  font-size: 0.875rem;
  text-align: center;
  padding: 12px 0;
}

/* ── PHOTO JOUEUR (slot portrait) ── */
.child-photo-slot {
  position: relative;
  width: 150px;
  aspect-ratio: 3/4;
  border: 2px dashed var(--line);
  border-radius: var(--radius-md, 10px);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.child-photo-slot:hover { border-color: var(--orange); background: var(--orange-light); }
.child-photo-slot.filled { border-style: solid; border-color: var(--orange); }
.child-photo-slot .cps-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  pointer-events: none;
}
.child-photo-slot .cps-icon { font-size: 1.5rem; opacity: 0.5; }
.child-photo-slot .cps-label { font-size: 0.65rem; font-weight: 600; color: var(--muted-light); letter-spacing: 0.04em; text-transform: uppercase; }
.child-photo-slot .cps-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.child-photo-slot .cps-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: none;
  font-size: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.child-photo-slot .cps-remove:hover { background: #DC2626; }

/* ── LOGOS PAIR ── */
.logos-pair { display: flex; gap: 20px; flex-wrap: wrap; }
.logo-cell { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.logo-cell-label { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.logo-slot {
  position: relative;
  width: 88px; height: 88px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-md, 10px);
  background: var(--white);
  cursor: pointer; overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.logo-slot:hover { border-color: var(--orange); background: var(--orange-light); }
.logo-slot.filled { border-style: solid; border-color: var(--orange); }
.logo-slot .ls-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  pointer-events: none;
}
.logo-slot .ls-icon { font-size: 1.1rem; opacity: 0.45; }
.logo-slot .ls-label { font-size: 0.6rem; font-weight: 600; color: var(--muted-light); letter-spacing: 0.04em; text-transform: uppercase; text-align: center; padding: 0 6px; }
.logo-slot .ls-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.logo-slot .ls-remove {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: none;
  font-size: 0.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.logo-slot .ls-remove:hover { background: #DC2626; }

/* ── MODE TOGGLE A/B ── */
.mode-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}
.mode-btn {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: all 0.2s;
}
.mode-btn.active {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 0 0 1px var(--orange);
}
.mode-btn-label { font-weight: 700; font-size: 0.9375rem; color: var(--dark); display: block; margin-bottom: 4px; }
.mode-btn-desc { font-size: 0.8rem; color: var(--muted); display: block; }
.mode-btn-soon-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  border-radius: 6px;
  padding: 5px 14px;
  box-shadow: 0 2px 8px rgba(255,90,31,0.35);
}
@media (max-width: 600px) { .mode-toggle { flex-direction: column; } }

/* ── SOON BANNER / OVERLAY ── */
.soon-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 28px;
  font-weight: 700;
  font-size: 1rem;
}
.soon-banner-icon { font-size: 1.25rem; }
.soon-banner-text { flex: 1; }
.soon-banner-sub { display: block; font-size: 0.8rem; font-weight: 400; opacity: 0.85; margin-top: 2px; }
.soon-content { opacity: 0.35; pointer-events: none; user-select: none; filter: grayscale(20%); }

/* ── GRILLE 8 PHOTOS ── */
.photos-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 4px;
}
@media (max-width: 600px) { .photos-grid-8 { grid-template-columns: repeat(2, 1fr); } }

.photo-cell { display: flex; flex-direction: column; gap: 6px; }
.photo-cell-caption {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  resize: vertical;
  min-height: 52px;
}
.photo-cell-caption::placeholder { color: var(--muted-light); }
.photo-cell-caption:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }

.photo-slot {
  position: relative;
  aspect-ratio: 1;
  border: 2px dashed var(--line);
  border-radius: var(--radius-md, 10px);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.photo-slot:hover { border-color: var(--orange); background: var(--orange-light); }
.photo-slot.filled { border-style: solid; border-color: var(--orange); }
.photo-slot.dragover { border-color: var(--orange); background: var(--orange-light); }
.photo-slot.dragging { opacity: 0.35; border-style: dashed; }
.photo-slot.drop-target { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }

.photo-slot-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  pointer-events: none;
}
.photo-slot-num { position: absolute; top: 6px; left: 8px; font-family: var(--font-mono, monospace); font-size: 0.65rem; font-weight: 700; color: var(--muted-light); letter-spacing: 0.05em; }
.photo-slot-icon { font-size: 1.25rem; opacity: 0.5; }
.photo-slot-label { font-size: 0.65rem; font-weight: 600; color: var(--muted-light); letter-spacing: 0.04em; text-transform: uppercase; }
.photo-slot-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff; border: none;
  font-size: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.photo-slot-remove:hover { background: #DC2626; }
.photo-grid-count { font-size: 0.78rem; color: var(--orange); font-weight: 600; margin-top: 8px; }

/* ── UPLOAD ZONE B ── */
.upload-zone-b {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s;
}
.upload-zone-b:hover { border-color: var(--orange); background: var(--orange-light); }
.upload-prompt-b { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 24px; text-align: center; pointer-events: none; }
.upload-prompt-b strong { font-size: 0.9375rem; color: var(--dark); }

/* ── RÉSULTAT TOGGLE ── */
.result-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.result-tab {
  cursor: pointer;
}

.result-tab input[type="radio"] { display: none; }

.result-tab span {
  display: block;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--cream);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.result-tab input:checked + span {
  background: var(--dark);
  color: var(--white);
}

.field-optional {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}

/* ── ADRESSE CONDITIONNELLE ── */
.adresse-block { margin-top: 8px; }
.hidden { display: none !important; }
.adresse-block.hidden { display: none !important; }

/* ── VALIDATION ERREURS ── */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #DC2626 !important;
  background: #FFF5F5;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}
.field-error-msg {
  font-size: 0.72rem;
  color: #DC2626;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}
.required-legend {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}
.required-legend .req-star { color: #DC2626; font-weight: 700; }
.field.has-error .field-error-msg { display: block; }
.format-selector.has-error {
  outline: 2px solid #DC2626;
  border-radius: 12px;
  padding: 10px;
  background: #FFF5F5;
}
.format-selector.has-error .field-error-msg { display: block; }
.field.has-error .child-photo-slot,
.field.has-error .photos-grid-8 {
  outline: 2px solid #DC2626;
  outline-offset: 4px;
  border-radius: 12px;
}
.rgpd-block.has-error {
  outline: 2px solid #DC2626;
  border-radius: 8px;
  padding: 10px;
  background: #FFF5F5;
}
.rgpd-block.has-error label { color: #DC2626; }

.adresse-block-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--dark);
  margin-bottom: 18px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── RGPD ── */
.rgpd-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.rgpd-block input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.rgpd-block label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
  cursor: pointer;
}

.rgpd-block a { color: var(--orange); text-decoration: underline; }

/* ── NAVIGATION WIZARD ── */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.wizard-nav-right { margin-left: auto; }

/* ── ÉTAPES ── */
.wizard-step { display: none; }
.wizard-step.active { display: block; }

/* ── CONFIRMATION (post-soumission Formspree) ── */
.confirmation-page {
  display: none;
  text-align: center;
  padding: 80px 0;
}

.confirmation-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.confirmation-page h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  color: var(--dark);
  margin-bottom: 16px;
}

.confirmation-page p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .wizard-layout {
    grid-template-columns: 1fr 280px;
  }
  .recap-sidebar {
    grid-column: 1 / -1;
    position: static;
    max-width: 600px;
  }
}

@media (max-width: 900px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }
  .wizard-preview-col {
    position: static;
    display: none;
  }
  .recap-sidebar {
    position: static;
    grid-column: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .wizard-header { padding: 20px 0; }
  .progress-bar { max-width: 400px; gap: 0; }
  .progress-step { min-width: 80px; }
  .format-selector { gap: 10px; }
}

@media (max-width: 600px) {
  .wizard-main { padding: 32px 0 60px; }

  .step-head { margin-bottom: 24px; }
  .step-head h2 { font-size: 1.75rem; }

  .step-sub-head { margin: 24px 0 20px; }
  .step-sub-head h3 { font-size: 1.25rem; }

  .progress-step { min-width: 64px; }
  .progress-dot { width: 34px; height: 34px; font-size: 0.85rem; }
  .progress-step span { font-size: 0.72rem; }
  .progress-connector { max-width: 40px; }

  .format-radio-body {
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 16px;
  }
  .format-radio-price { margin-left: auto; }

  .wizard-nav {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .wizard-nav .btn,
  .wizard-nav button { width: 100%; justify-content: center; }

  .recap-sidebar { padding: 20px; }

  .field-row-score { gap: 8px; }

  .field input,
  .field select {
    font-size: 1rem;
  }

  /* Toggle résultat — wrap sur 2 lignes si nécessaire */
  .result-toggle {
    flex-wrap: wrap;
    width: 100%;
  }
  .result-tab span {
    font-size: 0.75rem;
    padding: 7px 10px;
  }

  /* Photo joueur — centrée sur mobile */
  .child-photo-slot {
    width: 130px;
    margin: 0 auto;
  }

  /* Logos — centrés */
  .logos-pair {
    justify-content: flex-start;
    gap: 14px;
  }

  /* Soon banner — compact */
  .soon-banner {
    font-size: 0.875rem;
    padding: 12px 16px;
  }
  .soon-banner-sub { font-size: 0.75rem; }

  /* Mode btn — badge plus petit */
  .mode-btn-soon-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}
