/* Styles spécifiques au site partenaires Moualimy */

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
}
.topbar img { height: 40px; }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 8px 20px 36px;
}
.hero-eyebrow {
  color: var(--color-teal);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--color-text);
}
.hero h1 span { color: var(--color-teal); }
.hero p {
  font-size: 15.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== OFFERS ===== */
.offers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 20px 12px;
  max-width: 640px;
  margin: 0 auto;
}
.offer-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.offer-card.featured {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-lift);
}
.offer-card.featured::before {
  content: "LE PLUS DEMANDÉ";
  position: absolute;
  top: 14px;
  right: -34px;
  background: var(--color-gold);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 40px;
  transform: rotate(35deg);
}
.offer-icon { font-size: 32px; margin-bottom: 10px; }
.offer-title { font-size: 20px; font-weight: 800; margin: 0 0 4px; }
.offer-desc { color: var(--color-text-muted); font-size: 14.5px; margin: 0 0 16px; line-height: 1.5; }
.offer-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.offer-price .amount { font-size: 32px; font-weight: 900; color: var(--color-teal); }
.offer-price .period { color: var(--color-text-muted); font-size: 13.5px; }
.offer-features { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.offer-features li { font-size: 14px; color: var(--color-text); display: flex; gap: 8px; align-items: flex-start; }
.offer-features li::before { content: "✓"; color: var(--color-teal); font-weight: 800; flex-shrink: 0; }

/* ===== HOW IT WORKS ===== */
.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 48px 0 6px;
  padding: 0 20px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14.5px;
  margin: 0 0 28px;
  padding: 0 20px;
}
.steps {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-teal) 12%, white);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.step-content h3 { margin: 6px 0 4px; font-size: 16px; font-weight: 700; }
.step-content p { margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }
.step-line {
  width: 2px;
  background: var(--color-border);
  margin-left: 19px;
  height: 20px;
}

/* ===== MONTAGE NOTE ===== */
.montage-note {
  max-width: 560px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.montage-note .card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: color-mix(in srgb, var(--color-teal) 6%, white);
  border: 1px solid color-mix(in srgb, var(--color-teal) 20%, white);
}
.montage-note .icon { font-size: 22px; flex-shrink: 0; }
.montage-note p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-text); }
.montage-note strong { color: var(--color-teal); }

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--color-text-muted);
  font-size: 13px;
}
.site-footer a { color: var(--color-text-muted); text-decoration: underline; }

/* ===== FORM PAGE ===== */
.form-page { padding: 20px 20px 60px; max-width: 560px; margin: 0 auto; }

.progress-tracker {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.progress-tracker .dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  transition: background 0.3s ease;
}
.progress-tracker .dot.active { background: var(--color-teal); }
.progress-tracker .dot.done { background: var(--color-teal-dark); }

.step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.form-step h2 { font-size: 22px; margin: 0 0 6px; }
.form-step > p.subtitle { color: var(--color-text-muted); font-size: 14.5px; margin: 0 0 24px; }

.offer-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.offer-toggle button {
  flex: 1;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all 0.15s ease;
}
.offer-toggle button.active {
  border-color: var(--color-teal);
  background: color-mix(in srgb, var(--color-teal) 8%, white);
  color: var(--color-teal);
}
.offer-toggle button .price { display: block; font-size: 18px; margin-top: 2px; }

.form-nav {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.form-nav .btn-secondary { width: auto; flex: 0 0 auto; padding: 16px 20px; }
.form-nav .btn-primary { flex: 1; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fafcfc;
}
.upload-zone.dragover {
  border-color: var(--color-teal);
  background: color-mix(in srgb, var(--color-teal) 6%, white);
}
.upload-zone .icon { font-size: 34px; margin-bottom: 10px; }
.upload-zone p { margin: 0; font-weight: 600; font-size: 14.5px; }
.upload-zone .hint { font-weight: 400; color: var(--color-text-muted); font-size: 13px; margin-top: 4px; }
.upload-zone input[type="file"] { display: none; }

.file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
}
.file-item .file-icon { font-size: 20px; flex-shrink: 0; }
.file-item .file-info { flex: 1; min-width: 0; }
.file-item .file-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .file-size { font-size: 12px; color: var(--color-text-muted); }
.file-item .file-remove {
  background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 18px; padding: 4px;
}
.file-progress-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  overflow: hidden;
  margin-top: 6px;
}
.file-progress-bar .fill {
  height: 100%;
  background: var(--color-teal);
  width: 0%;
  transition: width 0.2s ease;
}
.file-item.error .file-progress-bar .fill { background: var(--color-danger); }
.file-item.done .file-icon::after { content: " ✓"; color: var(--color-success); }

.upload-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

/* Recap */
.recap-list { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.recap-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.recap-row .k { color: var(--color-text-muted); flex-shrink: 0; }
.recap-row .v { text-align: right; font-weight: 600; word-break: break-word; }

.submit-error {
  background: color-mix(in srgb, var(--color-danger) 8%, white);
  border: 1px solid color-mix(in srgb, var(--color-danger) 25%, white);
  color: var(--color-danger);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
}
.submit-error.visible { display: block; }

/* ===== CONFIRMATION ===== */
.confirm-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.confirm-icon { font-size: 56px; margin-bottom: 16px; }
.confirm-page h1 { font-size: 24px; margin: 0 0 10px; }
.confirm-page p { color: var(--color-text-muted); font-size: 15px; max-width: 400px; line-height: 1.6; margin: 0 0 28px; }

/* ===== ADMIN ===== */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-login .card { width: 100%; max-width: 380px; }
.admin-login .logo-row { text-align: center; margin-bottom: 20px; }
.admin-login .logo-row img { height: 44px; margin: 0 auto; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-topbar img { height: 30px; }
.admin-container { max-width: 900px; margin: 0 auto; padding: 20px 16px 60px; }

.admin-filters { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }
.admin-filters button {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--color-text-muted);
}
.admin-filters button.active { border-color: var(--color-teal); color: var(--color-teal); background: color-mix(in srgb, var(--color-teal) 8%, white); }

.submission-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px;
  margin-bottom: 12px;
  cursor: pointer;
}
.submission-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.submission-card .offer-tag { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.offer-tag.reel { background: color-mix(in srgb, var(--color-teal) 15%, white); color: var(--color-teal); }
.offer-tag.story { background: color-mix(in srgb, var(--color-gold) 20%, white); color: #8a6d1f; }
.submission-card .company { font-weight: 700; font-size: 16px; margin: 8px 0 2px; }
.submission-card .meta { font-size: 13px; color: var(--color-text-muted); }
.status-tag { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.status-tag.nouveau { background: color-mix(in srgb, var(--color-danger) 12%, white); color: var(--color-danger); }
.status-tag.en_cours { background: color-mix(in srgb, var(--color-gold) 20%, white); color: #8a6d1f; }
.status-tag.termine { background: color-mix(in srgb, var(--color-success) 15%, white); color: var(--color-success); }

.detail-overlay {
  position: fixed; inset: 0; background: rgba(28,43,43,0.5); z-index: 50;
  display: none; align-items: flex-end; justify-content: center;
}
.detail-overlay.visible { display: flex; }
.detail-sheet {
  background: var(--color-surface);
  border-radius: 20px 20px 0 0;
  max-width: 640px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: 22px 20px 40px;
}
.detail-sheet .close-btn { float: right; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--color-text-muted); }
.detail-field { margin-bottom: 16px; }
.detail-field .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--color-text-muted); margin-bottom: 4px; }
.detail-field .v { font-size: 15px; line-height: 1.5; word-break: break-word; }
.detail-files { display: flex; flex-direction: column; gap: 8px; }
.detail-file {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--color-text); font-size: 13.5px;
}
.detail-file:hover { border-color: var(--color-teal); }
.status-select-row { display: flex; gap: 8px; margin-top: 20px; }
.status-select-row select { flex: 1; }

@media (min-width: 640px) {
  .offers { flex-direction: row; align-items: stretch; }
  .offer-card { flex: 1; }
}
