/* ============================================================
   latab — page annonceurs (/publicite) et résultat de paiement
   ============================================================ */

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

/* Pot de miel : hors écran, ignoré par les lecteurs d'écran et le clavier */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.ads-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 20px;
}
@media (min-width: 640px) { .ads-panel { padding: 32px; } }

/* ---------- Stepper ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: step; }
.stepper li {
  display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: #8892a8;
}
.stepper li::before {
  content: ''; display: block; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.1);
}
.stepper li[data-state="done"]::before { background: #1ec3b8; }
.stepper li[data-state="current"]::before { background: #ff6a4d; }
.stepper li[data-state="current"] { color: #fff; }
.stepper li[data-state="done"] { color: #cfd6e8; }
.stepper .step-n { font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .stepper .step-name { display: none; } .stepper li[data-state="current"] .step-name { display: inline; } }

.step-title { font-family: 'Manrope', 'Inter', sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -0.02em; outline: none; }
.step-title:focus-visible { outline: 2px solid #ff8a6f; outline-offset: 6px; border-radius: 6px; }

/* ---------- Champs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 18px; }
.field-label { font-weight: 600; font-size: 14px; color: #fff; }
.field-label .opt { font-weight: 400; color: #8892a8; }
.field-hint { font-size: 13px; color: #8892a8; line-height: 1.45; }
.field-error { font-size: 13px; color: #ff8a6f; font-weight: 600; line-height: 1.45; }
.field-error:empty { display: none; }

.input, .textarea {
  width: 100%;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 13px 14px;
  color: #fff;
  font-size: 16px; /* évite le zoom iOS */
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #5d6780; }
.input:focus, .textarea:focus { outline: none; border-color: #ff8a6f; box-shadow: 0 0 0 3px rgba(255, 106, 77, 0.25); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #ff6a4d; }
.counter { font-size: 12px; color: #8892a8; text-align: right; font-variant-numeric: tabular-nums; }

input[type="checkbox"], input[type="radio"] { accent-color: #ff6a4d; }

/* Cartes de choix (radio) */
.choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .choices.cols-2 { grid-template-columns: 1fr 1fr; } .choices.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.choice {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: rgba(255, 255, 255, 0.28); }
.choice input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
.choice:has(input:checked) { border-color: #ff6a4d; background: rgba(255, 106, 77, 0.08); }
.choice:has(input:focus-visible) { outline: 2px solid #ff8a6f; outline-offset: 2px; }
.choice-title { font-weight: 700; }
.choice-sub { font-size: 13px; color: #8892a8; margin-top: 2px; line-height: 1.4; }
.choice-price { font-size: 13px; color: #3ed6cc; font-weight: 700; margin-top: 4px; }

/* ---------- Calendrier des semaines ---------- */
.week-month + .week-month { margin-top: 18px; }
.week-month h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #8892a8; font-weight: 700; margin-bottom: 8px; }
.week-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 520px) { .week-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .week-grid { grid-template-columns: repeat(4, 1fr); } }
.week {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px 10px 38px; border-radius: 14px; cursor: pointer; min-height: 56px;
  border: 1px solid rgba(30, 195, 184, 0.35); background: rgba(30, 195, 184, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.week input { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; }
.week-dates { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.week-state { font-size: 12px; color: #3ed6cc; font-weight: 600; }
.week:hover { border-color: rgba(30, 195, 184, 0.7); }
.week:has(input:checked) { border-color: #ff6a4d; background: rgba(255, 106, 77, 0.14); }
.week:has(input:checked) .week-state { color: #ff8a6f; }
.week:has(input:focus-visible) { outline: 2px solid #ff8a6f; outline-offset: 2px; }
.week.is-full { cursor: not-allowed; border-color: rgba(255, 255, 255, 0.08); background: repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 6px, transparent 6px 12px); }
.week.is-full .week-dates { color: #5d6780; text-decoration: line-through; }
.week.is-full .week-state { color: #8892a8; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #8892a8; }
.legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.legend .l-free::before { background: rgba(30, 195, 184, 0.25); border: 1px solid #1ec3b8; }
.legend .l-sel::before { background: rgba(255, 106, 77, 0.4); border: 1px solid #ff6a4d; }
.legend .l-full::before { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255,255,255,0.15); }

/* ---------- Bannière : aperçu ---------- */
.phone {
  max-width: 380px; margin: 0 auto; padding: 14px; border-radius: 32px;
  background: #0a1124; border: 1px solid rgba(255, 255, 255, 0.1);
}
.phone-bar { display: flex; justify-content: space-between; font-size: 11px; color: #8892a8; padding: 0 6px 10px; }
.banner-frame {
  position: relative; width: 100%; aspect-ratio: 3 / 1; border-radius: 14px; overflow: hidden;
  background: #101a35; border: 1px solid rgba(255, 255, 255, 0.08);
}
.banner-frame img.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-size: 12px; color: #8892a8; }
.banner-overlay {
  position: absolute; display: flex; align-items: center; padding: 0 2.2%;
  background: rgba(2, 6, 23, 0.62); color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-top-right-radius: 8px; font-size: clamp(8px, 2.6vw, 11px);
}
.banner-reserved-guide { position: absolute; border: 1.5px dashed rgba(255, 106, 77, 0.9); pointer-events: none; }
.banner-creation { position: absolute; inset: 0; display: flex; gap: 4%; align-items: center; padding: 0 5% 0 5%; background-size: cover; background-position: center; }
.banner-creation::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,6,23,0.85), rgba(2,6,23,0.25)); }
.banner-creation > * { position: relative; }
.banner-creation .bc-logo { width: 18%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,0.9); padding: 4px; }
.banner-creation .bc-title { font-family: 'Manrope', sans-serif; font-weight: 900; font-size: clamp(12px, 4vw, 18px); line-height: 1.1; }
.banner-creation .bc-text { font-size: clamp(9px, 2.6vw, 12px); color: #cfd6e8; margin-top: 3px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.2); }
.dots i:first-child { width: 16px; background: #ff6a4d; }

/* Zone de dépôt */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 22px 16px; border-radius: 16px; border: 1.5px dashed rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.02);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.is-drag { border-color: #ff8a6f; background: rgba(255, 106, 77, 0.06); }
.dropzone:has(input:focus-visible) { outline: 2px solid #ff8a6f; outline-offset: 2px; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone strong { color: #fff; }
.dropzone small { color: #8892a8; font-size: 12px; }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button {
  position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 999px;
  background: rgba(2, 6, 23, 0.85); color: #fff; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center;
}

.rules li { display: flex; gap: 10px; align-items: flex-start; color: #cfd6e8; font-size: 14px; line-height: 1.45; }
.rules li + li { margin-top: 8px; }
.rules li::before { content: '✕'; flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px; background: rgba(255, 106, 77, 0.15); color: #ff8a6f; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

/* ---------- Prix ---------- */
.price-rows { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-rows td { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); vertical-align: top; }
.price-rows td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px; }
.price-rows tr.sub td { color: #cfd6e8; }
.price-rows tr.discount td { color: #3ed6cc; }
.price-rows tr.total td { border-bottom: 0; font-weight: 900; font-size: 20px; font-family: 'Manrope', sans-serif; padding-top: 14px; }

.tariff-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tariff-table th, .tariff-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.tariff-table th { color: #8892a8; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.tariff-table td.num { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.skeleton { display: inline-block; min-width: 56px; height: 1em; border-radius: 6px; background: rgba(255, 255, 255, 0.08); vertical-align: middle; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 50% { opacity: 0.45; } }

/* ---------- Boutons / alertes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s;
}
.btn-primary { background: #ff6a4d; color: #fff; }
.btn-primary:hover { background: #ff8a6f; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-link { color: #3ed6cc; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.spinner { width: 16px; height: 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.alert:empty { display: none; }
.alert-error { background: rgba(255, 106, 77, 0.1); border: 1px solid rgba(255, 106, 77, 0.45); color: #ffd3c9; }
.alert-info { background: rgba(30, 195, 184, 0.08); border: 1px solid rgba(30, 195, 184, 0.35); color: #c9f3ef; }
.alert ul { list-style: disc; padding-left: 20px; margin-top: 4px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #ff8a6f; }

.step-actions {
  display: flex; gap: 10px; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.step-actions .btn { flex: 1; }
@media (min-width: 640px) { .step-actions .btn { flex: 0 0 auto; } }

/* Carrousel illustratif du pitch */
.mock-slot { aspect-ratio: 3 / 1; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; text-align: center; padding: 6px; }

@media (prefers-reduced-motion: reduce) {
  .skeleton, .spinner { animation: none; }
  html { scroll-behavior: auto; }
}
