/* ═══════════════════════════════════════════════════════════════
   inscriptMobil.css  –  Marché de Noël 2026
   Design fidèle à la page d'accueil originale :
     fond #D1C4E9, header #9575CD, cards blanches arrondies,
     boutons #C5B4E3, accordéons bleu #2980b9
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: #D1C4E9;
  color: #333;
  line-height: 1.6;
  padding-bottom: 30px;
}

/* Enveloppe globale : jamais plus de 30 cm */
body > * {
  max-width: 30cm;
  margin-left: auto;
  margin-right: auto;
}

/* ── HEADER ────────────────────────────────────────────────────── */
.header {
  padding: 16px 20px 18px;
  background: #922420;
  color: white;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 16px;
}

.header h3 {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

/* Barre liens connexion/déconnexion dans le header */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.links a,
.links span {
  text-decoration: none;
  background: #C5B4E3;
  padding: 7px 14px;
  border-radius: 10px;
  color: white;
  font-size: 13px;
  transition: background 0.3s;
  white-space: nowrap;
}

.links a:hover { background: rgba(255,255,255,0.30); }

.links .code-badge {
  background: rgba(255,255,255,0.15);
  font-size: 12px;
  cursor: default;
}

/* ── BARRE DE PROGRESSION ──────────────────────────────────────── */
.progress-wrap {
  background: white;
  border-radius: 20px;
  padding: 14px 16px 12px;
  margin: 0 15px 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.progress-bar {
  height: 6px;
  background: #E1D5F5;
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #9575CD, #C5B4E3);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 4px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E1D5F5;
  color: #9575CD;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid #C5B4E3;
  transition: all 0.3s;
}

.progress-step.active .step-circle {
  background: #9575CD;
  border-color: #9575CD;
  color: white;
  box-shadow: 0 0 0 4px rgba(149,117,205,0.20);
  transform: scale(1.12);
}

.progress-step.done .step-circle {
  background: #7B52AB;
  border-color: #7B52AB;
  color: white;
}

.step-label {
  font-size: 10px;
  font-weight: 600;
  color: #9575CD;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.progress-step.active .step-label { color: #7B52AB; font-weight: 700; }
.progress-step.done  .step-label  { color: #7B52AB; }

/* Step cliquable */
.progress-step.cliquable { cursor: pointer; }

.step-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.progress-step.cliquable .step-circle {
  border-color: #9575CD;
  box-shadow: 0 0 0 3px rgba(149,117,205,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.progress-step.cliquable:hover .step-circle {
  transform: scale(1.15);
  box-shadow: 0 0 0 5px rgba(149,117,205,0.25);
}

.progress-step.cliquable:hover .step-label { color: #7B52AB; }

/* ── CARD  (identique à l'original) ───────────────────────────── */
.card {
  background: white;
  border-radius: 20px;
  margin: 0 15px 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 18px 16px;
}

/* ── TITRES DE SECTION ─────────────────────────────────────────── */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2980b9;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid #E1D5F5;
}

.section-hint {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ── ERREURS ───────────────────────────────────────────────────── */
.error-banner {
  background: #FFEBEE;
  border-left: 4px solid #c00;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 15px 14px;
  font-size: 13px;
  color: #c00;
  font-weight: 600;
}
.error-banner p + p { margin-top: 4px; }

/* ── RADIO CARDS (choix profil / emplacement) ──────────────────── */
.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid #E1D5F5;
  border-radius: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #FAFAFA;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card:hover          { border-color: #C5B4E3; background: #F3EEF9; }
.radio-card--selected      { border-color: #9575CD !important; background: #F3EEF9 !important; }

.radio-icon  { font-size: 1.6rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.radio-title { font-weight: 700; font-size: 0.92rem; color: #333; display: block; }
.radio-sub   { font-weight: 400; font-size: 11px; color: #9575CD; display: inline; margin-left: 4px; }
.radio-desc  { font-size: 12px; color: #888; display: block; margin-top: 2px; line-height: 1.4; }
.radio-price { display: block; font-weight: 700; color: #9575CD; margin-top: 4px; font-size: 0.88rem; }

/* Bloc d'options à l'intérieur d'un panneau emplacement */
/* ── CHAMPS ────────────────────────────────────────────────────── */
.field { margin-bottom: 14px; }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.req { color: #c00; }
.opt { color: #aaa; font-weight: 400; text-transform: none; font-size: 11px; }

.field-input {
  display: block;
  width: 100%;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  border: 2px solid #D1C4E9;
  border-radius: 12px;
  background: #FAFAFA;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.field-input:focus {
  outline: none;
  border-color: #9575CD;
  box-shadow: 0 0 0 3px rgba(149,117,205,0.15);
  background: white;
}

.field-textarea { resize: vertical; min-height: 80px; }

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239575CD' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

/* ── CASE À COCHER ─────────────────────────────────────────────── */
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.88rem;
  color: #555;
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #9575CD;
  flex-shrink: 0;
}

/* ── OPTIONS EMPLACEMENT ───────────────────────────────────────── */
.emp-options {
  background: #541512;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border: 2px solid #3a0e0c;
  gap: 10px;
}

/* info-box dans emp-options : adapter le texte */
.emp-options .info-box {
  background: rgba(255,255,255,0.12);
  border-left-color: #C5B4E3;
  color: #F3EEF9;
  margin-bottom: 0;
}

/* Libellés de champs à l'intérieur de la zone options : blanc pour contraste */
.emp-options .field-label  { color: #F3EEF9; }
.emp-options .check-label  { color: #F3EEF9; }

/* Titre de section éventuel dans la zone */
.emp-options .section-hint { color: #E8D5F5; }

.info-box {
  background: #EDE7F6;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #5E35B1;
  border-left: 3px solid #9575CD;
  margin-bottom: 16px;
  line-height: 1.8;
}

/* ── BOUTONS ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.90rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

/* Bouton principal : violet comme les .links du header */
.btn--primary {
  background: #a72925;
  color: white;
}
.btn--primary:hover { background: #7e1e1b; }

/* Bouton secondaire / outline */
.btn--outline {
  background: white;
  color: #9575CD;
  border: 2px solid #9575CD;
}
.btn--outline:hover { background: #F3EEF9; }

/* Bouton ghost / retour */
.btn--ghost {
  background: #e38582;
  color: white;
}
.btn--ghost:hover { background: #c96562; color: white; }

/* Bouton accent (ajouter lot) */
.btn--accent {
  background: #C5B4E3;
  color: white;
}
.btn--accent:hover { background: #9575CD; }

.btn--full  { width: 100%; display: block; }
.btn--lg    { padding: 14px 24px; font-size: 1rem; }

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}
.btn-row .btn--primary { flex: 1; }

/* ── LOTS ──────────────────────────────────────────────────────── */
.lot-list    { margin-bottom: 12px; }

.lot-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #F3EEF9;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid #D1C4E9;
}

.lot-icon  { font-size: 1.1rem; }
.lot-name  { flex: 1; font-size: 0.88rem; font-weight: 600; color: #5E35B1; }
.lot-count { font-size: 13px; color: #7B52AB; font-weight: 700; margin-bottom: 12px; }

.btn-del {
  background: none;
  border: none;
  color: #c00;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-del:hover { background: #FFEBEE; }

.empty-lots {
  text-align: center;
  color: #aaa;
  font-size: 13px;
  padding: 16px 0;
}

.lot-add {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  align-items: center;
}
.lot-add .field-input { flex: 1; }

/* ── DOCUMENTS ─────────────────────────────────────────────────── */
.doc-list { margin-bottom: 16px; }

.doc-item {
  background: #FAFAFA;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid #D1C4E9;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.doc-name { font-weight: 700; font-size: 0.85rem; color: #444; }

.doc-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}
.doc-badge--req { background: #FFEBEE; color: #c00; }
.doc-badge--opt { background: #EDE7F6; color: #7B52AB; }

.doc-status {
  font-size: 13px;
  font-weight: 600;
  color: #2e7d32;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-filename {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  word-break: break-all;
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-del-doc, .btn-view-doc {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}
.btn-del-doc  { background: #FFEBEE; color: #c00; border: none; }
.btn-view-doc { background: #EDE7F6; color: #9575CD; }

.doc-upload { display: flex; }

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #9575CD;
  color: white;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}
.upload-btn:hover { background: #7B52AB; }

/* ── MESSAGES ──────────────────────────────────────────────────── */
.warning-box {
  background: #FFF3E0;
  border-left: 4px solid #E65100;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #E65100;
  font-weight: 600;
  margin-bottom: 10px;
}

.success-box {
  background: #E8F5E9;
  border-left: 4px solid #2e7d32;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: #2e7d32;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ── PAGE STATUT ───────────────────────────────────────────────── */
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid #E1D5F5;
  font-size: 13px;
  gap: 8px;
}
.status-row:last-of-type { border-bottom: none; }
.status-label { font-weight: 700; color: #555; flex-shrink: 0; }

.status-badge {
  background: #EDE7F6;
  color: #7B52AB;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

/* ── PAGE ACCUEIL ──────────────────────────────────────────────── */
.welcome-card  { text-align: center; padding: 28px 20px; }
.welcome-icon  { font-size: 3rem; margin-bottom: 10px; }
.welcome-title { font-size: 1.3rem; font-weight: 700; color: #7B52AB; margin-bottom: 8px; }
.welcome-text  { font-size: 13px; color: #888; margin-bottom: 20px; line-height: 1.6; }

/* ── PAGE CONFIRMATION ─────────────────────────────────────────── */
.confirmation-card { text-align: center; }

.confetti { font-size: 3rem; margin-bottom: 8px; }

.cheque-box {
  background: #F3EEF9;
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
  border: 1px solid #D1C4E9;
}
.cheque-addr { color: #888; font-size: 12px; margin: 4px 0; }
.info-text   { font-size: 12px; color: #aaa; margin: 10px 0; }

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 14px;
  font-size: 12px;
  color: #9575CD;
  margin-top: 6px;
}

/* ── Anciens styles conservés (tables, entêtes back-office) ────── */
td           { padding: 10px; color: black; }
.td1         { background-color: #eee; }
.td2         { background-color: #ddd; }
.td3         { background-color: #333; }
.entete      { background-color:#c00; text-align:center; font-family:"Great Vibes",cursive; font-weight:bold; color:#fff; font-size:1.5em; padding:10px 15px; }
.entett      { background-color:#c00; text-align:center; font-family:cursive; font-weight:bold; color:#fff; font-size:1.5em; padding:10px 15px; }
.err         { background-color:#c00; text-align:center; font-family:"Great Vibes",cursive; font-weight:bold; color:#fff; font-size:2em; padding:10px 15px; }
.ligne       { background-color:#333; }
.ssentete    { background-color:#333; color:white; }
.sssentete   { background-color:#777; color:white; }
.dis_entete  { background-color:#DDD; color:#555; }

/* ── Accordion (page statique) ─────────────────────────────────── */
.accordion-header {
  padding: 15px;
  width: 100%;
  border: none;
  background: none;
  font-size: 16px;
  text-align: left;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #2980b9;
  transition: background-color 0.2s;
}
.accordion-header:hover       { background-color: #f9f9f9; }
.accordion-header .icon::before       { content: '+'; font-weight: bold; }
.accordion-header.active .icon::before { content: '−'; }

.icon { transition: transform 0.3s; }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.accordion-content-inner {
  padding: 0 15px 15px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}
.active .accordion-content { max-height: 500px; }
.active .icon              { transform: rotate(180deg); }

/* ── Panneaux Connexion / Créer un compte ──────────────────────── */
.panel-auth {
  position: relative;
  border: 2px solid #9575CD;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-auth-close {
  float: right;
  font-size: 1rem;
  color: #9575CD;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  margin-left: 8px;
}
.panel-auth-close:hover { background: #EDE7F6; }

.panel-auth-switch {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}
.panel-auth-switch a {
  color: #9575CD;
  font-weight: 700;
  text-decoration: none;
}
.panel-auth-switch a:hover { text-decoration: underline; }

/* ── Modal création de compte ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(74,20,140,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-box {
  background: white;
  border-radius: 20px;
  padding: 28px 22px;
  max-width: 280px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  animation: fadeIn 0.25s ease;
}

.modal-icon  { font-size: 2.5rem; margin-bottom: 10px; }

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #7B52AB;
  margin-bottom: 10px;
}

.modal-text  { font-size: 13px; color: #555; margin-bottom: 6px; line-height: 1.5; }

.modal-code {
  font-size: 2.2rem;
  font-weight: 700;
  color: #9575CD;
  background: #F3EEF9;
  border-radius: 12px;
  padding: 10px 0;
  margin: 10px 0;
  letter-spacing: 4px;
}