/* ══════════════════════════════════════════════════════════════
   VIBRANCE EVENTS — Formulaire
   Noir absolu · Blanc absolu · Zéro gris
   ══════════════════════════════════════════════════════════════ */

.ve-submit-wrap {
  --sf-b: #000000;
  --sf-w: #ffffff;
  --sf-r: #cc0000;
  --sf-t: 0.1s ease;
  --sf-f: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ve-submit-wrap,
.ve-submit-wrap * {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.ve-submit-wrap {
  font-family: var(--sf-f);
  font-size: 15px;
  line-height: 1.5;
  color: var(--sf-b);
  background: transparent;
  --ve-text: #000; --ve-text-2: #000;
  --ve-bg: #fff; --ve-card: #fff; --ve-muted: #000;
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 0 100px;
}

/* ══════════════════════════════════════════════════════════════
   EN-TÊTE
   ══════════════════════════════════════════════════════════════ */
.ve-submit-intro {
  padding-bottom: 40px;
  border-bottom: 2px solid var(--sf-b);
  margin-bottom: 0;
}

.ve-eyebrow-form {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sf-b);
  margin-bottom: 20px;
}

.ve-submit-intro h2 {
  font-family: var(--sf-f);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.93;
  color: var(--sf-b);
  margin: 0 0 28px;
}

.ve-submit-intro p {
  font-size: 14px;
  color: var(--sf-b);
  line-height: 1.8;
  max-width: 400px;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   BARRE DE PROGRESSION
   ══════════════════════════════════════════════════════════════ */
.ve-form-progress {
  display: flex;
  gap: 2px;
  margin: 40px 0 0;
  height: 2px;
}

.ve-progress-step {
  flex: 1;
  height: 100%;
  background: transparent;
  border-bottom: 2px solid var(--sf-b);
  opacity: 0.15;
  transition: opacity var(--sf-t);
}

.ve-progress-step.active { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════ */
.ve-form-section {
  border: none;
  border-top: 1px solid var(--sf-b);
  border-radius: 0;
  background: transparent;
  padding: 48px 0 0;
  margin-top: 48px;
  margin-bottom: 0;
  transition: none;
}

.ve-form-section:first-of-type {
  border-top: 2px solid var(--sf-b);
  margin-top: 0;
}

.ve-form-section:focus-within { border-top-width: 2px; }

.ve-form-section-header {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  margin-bottom: 40px;
}

.ve-form-step {
  display: block;
  background: none;
  color: var(--sf-b);
  font-family: var(--sf-f);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 0;
  opacity: 0.3;
  width: auto; height: auto;
  border-radius: 0;
  flex-shrink: 0;
  line-height: 1;
}

.ve-form-section-header h3 {
  font-family: var(--sf-f);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sf-b);
  line-height: 1;
  margin: 0;
}

.ve-section-desc {
  font-size: 12px;
  color: var(--sf-b);
  opacity: 0.5;
  margin: -28px 0 36px 28px;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   GRILLE DE CHAMPS
   ══════════════════════════════════════════════════════════════ */
.ve-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0;
}

.ve-form-row .ve-form-field {
  border-top: none;
  border-right: 1px solid var(--sf-b);
  padding: 0 24px 32px 0;
  margin-bottom: 0;
}

.ve-form-row .ve-form-field:first-child { padding-left: 0; }
.ve-form-row .ve-form-field:last-child { border-right: none; padding-right: 0; }
.ve-form-row .ve-form-field + .ve-form-field { padding-left: 24px; }

.ve-form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  padding: 32px 0;
  border-top: 1px solid var(--sf-b);
}

.ve-form-field:first-child { border-top: none; }

.ve-form-row + .ve-form-field,
.ve-form-field + .ve-form-row,
.ve-form-row + .ve-form-row { border-top: 1px solid var(--sf-b); padding-top: 32px; }

.ve-form-row + .ve-form-row .ve-form-field { border-top: none; padding-top: 0; }

.ve-field-full { grid-column: 1 / -1; }

/* ══════════════════════════════════════════════════════════════
   LABELS
   ══════════════════════════════════════════════════════════════ */
.ve-form-field label,
.ve-submit-form label {
  font-family: var(--sf-f);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sf-b);
  opacity: 0.45;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  line-height: 1;
}

.ve-req { color: var(--sf-r); opacity: 1; font-size: 14px; letter-spacing: 0; text-transform: none; line-height: 0; }
.ve-req-opt { opacity: 0.6; font-weight: 400; font-size: 9px; letter-spacing: 0.1em; text-transform: none; }

/* ══════════════════════════════════════════════════════════════
   INPUTS — ligne basse uniquement
   ══════════════════════════════════════════════════════════════ */
.ve-submit-form input[type="text"],
.ve-submit-form input[type="email"],
.ve-submit-form input[type="url"],
.ve-submit-form input[type="date"],
.ve-submit-form input[type="time"],
.ve-submit-form select,
.ve-submit-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sf-b);
  border-radius: 0;
  color: var(--sf-b);
  font-family: var(--sf-f);
  font-size: 16px;
  font-weight: 400;
  padding: 6px 0 10px;
  outline: none;
  transition: border-bottom-width var(--sf-t);
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--sf-b);
  letter-spacing: -0.01em;
}

.ve-submit-form input:focus,
.ve-submit-form select:focus,
.ve-submit-form textarea:focus {
  border-bottom: 2px solid var(--sf-b);
}

.ve-submit-form input::placeholder,
.ve-submit-form textarea::placeholder {
  color: var(--sf-b);
  opacity: 0.18;
}

.ve-submit-form textarea { resize: none; min-height: 72px; line-height: 1.65; }

.ve-submit-form input[type="date"],
.ve-submit-form input[type="time"] { color-scheme: light; }

.ve-submit-form select {
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0L4 5L8 0' fill='%23000000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 8px;
  padding-right: 18px;
  cursor: pointer;
}

.ve-input-icon { display: none; }
.ve-input-icon-wrap input { padding-left: 0 !important; }

/* ══════════════════════════════════════════════════════════════
   HINTS & COMPTEUR
   ══════════════════════════════════════════════════════════════ */
.ve-field-hint {
  font-size: 10px;
  color: var(--sf-b);
  opacity: 0.4;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.ve-char-count {
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--sf-b);
  opacity: 0.2;
  text-align: right;
  margin-top: -6px;
}

/* ══════════════════════════════════════════════════════════════
   TOGGLE
   ══════════════════════════════════════════════════════════════ */
.ve-field-checkbox-group {
  justify-content: center;
  padding: 32px 0;
  border-top: 1px solid var(--sf-b);
}

.ve-toggle-label {
  display: inline-flex !important;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}

.ve-toggle-label input[type="checkbox"] { display: none; }

.ve-toggle-track {
  width: 32px;
  height: 18px;
  background: transparent;
  border: 1px solid var(--sf-b);
  border-radius: 0;
  position: relative;
  transition: background var(--sf-t);
  flex-shrink: 0;
}

.ve-toggle-track::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: transparent;
  border: 1px solid var(--sf-b);
  border-radius: 0;
  top: 3px;
  left: 3px;
  transition: left var(--sf-t), background var(--sf-t);
}

.ve-toggle-label input:checked + .ve-toggle-track { background: var(--sf-b); }
.ve-toggle-label input:checked + .ve-toggle-track::after { left: 15px; background: var(--sf-w); border-color: var(--sf-w); }

.ve-toggle-text {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sf-b);
}

/* ══════════════════════════════════════════════════════════════
   DROPZONE
   ══════════════════════════════════════════════════════════════ */
.ve-dropzone {
  border: 1px solid var(--sf-b);
  border-radius: 0;
  cursor: pointer;
  transition: background var(--sf-t);
  overflow: hidden;
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.ve-dropzone:hover, .ve-dropzone.ve-dz-over { background: var(--sf-b); }
.ve-dropzone:hover .ve-dropzone-inner,
.ve-dropzone.ve-dz-over .ve-dropzone-inner { color: var(--sf-w); }
.ve-dropzone:hover .ve-dropzone-inner svg,
.ve-dropzone.ve-dz-over .ve-dropzone-inner svg { stroke: var(--sf-w); }

.ve-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
  color: var(--sf-b);
  transition: color var(--sf-t);
}

.ve-dropzone-inner svg { opacity: .25; stroke: var(--sf-b); transition: stroke var(--sf-t); }

.ve-dropzone-inner p { font-size: 12px; line-height: 1.55; margin: 0; }

.ve-dropzone-inner strong {
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.ve-dz-formats { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.5; }

.ve-img-preview { width: 100%; max-height: 300px; object-fit: cover; display: block; }

.ve-dz-remove {
  position: absolute;
  top: 0; right: 0;
  background: var(--sf-w);
  color: var(--sf-b);
  border: none;
  border-bottom: 1px solid var(--sf-b);
  border-left: 1px solid var(--sf-b);
  border-radius: 0;
  padding: 6px 14px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
  transition: background var(--sf-t), color var(--sf-t);
}

.ve-dz-remove:hover { background: var(--sf-b); color: var(--sf-w); }

/* ══════════════════════════════════════════════════════════════
   BADGES MÉDIAS
   ══════════════════════════════════════════════════════════════ */
.ve-media-icon {
  display: inline-block;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 5px;
  border: 1px solid var(--sf-b);
  color: var(--sf-b);
  line-height: 1.4;
  border-radius: 0;
}

.ve-yt-icon, .ve-bc-icon { color: var(--sf-b); border-color: var(--sf-b); }

.ve-media-preview { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--sf-b); }

.ve-video-wrap-preview {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--sf-b);
}

.ve-video-wrap-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ve-bc-wrap-preview iframe { width: 100%; height: 120px; border: 0; }

/* ══════════════════════════════════════════════════════════════
   ERREURS & VALIDATION
   ══════════════════════════════════════════════════════════════ */
.ve-form-errors {
  border-left: 2px solid var(--sf-r);
  padding: 12px 16px;
  margin-bottom: 40px;
  font-size: 12px;
  color: var(--sf-r);
  background: transparent;
  letter-spacing: 0.01em;
}

.ve-form-errors p { margin: 0 0 4px; }
.ve-form-errors p:last-child { margin: 0; }

.ve-field-error { border-bottom-color: var(--sf-r) !important; border-bottom-width: 2px !important; }

.ve-field-error-msg {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sf-r);
}

.ve-field-ok { border-bottom-color: var(--sf-b) !important; border-bottom-width: 2px !important; }

/* ══════════════════════════════════════════════════════════════
   FOOTER + SUBMIT
   ══════════════════════════════════════════════════════════════ */
.ve-form-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-top: 48px;
  border-top: 2px solid var(--sf-b);
  margin-top: 48px;
  flex-wrap: wrap;
}

.ve-form-legal {
  font-size: 10px;
  color: var(--sf-b);
  opacity: 0.4;
  line-height: 1.9;
  max-width: 260px;
  margin: 0;
}

/* Bouton — underline seul, inversion au hover */
.ve-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  background: transparent;
  color: var(--sf-b);
  border: none;
  border-bottom: 1.5px solid var(--sf-b);
  border-radius: 0;
  font-family: var(--sf-f);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--sf-t);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: none;
  padding-bottom: 3px;
}

.ve-btn-submit:hover { opacity: 0.4; transform: none; box-shadow: none; }
.ve-btn-submit:active { opacity: 0.15; }
.ve-btn-submit:disabled { opacity: 0.15; cursor: not-allowed; }
.ve-btn-submit:hover .ve-btn-arrow { transform: translateX(6px); }

.ve-btn-arrow { flex-shrink: 0; transition: transform var(--sf-t); }

.ve-btn-spinner {
  width: 12px; height: 12px;
  border: 1px solid rgba(0,0,0,.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: ve-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes ve-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════
   SUCCÈS
   ══════════════════════════════════════════════════════════════ */
.ve-submit-success {
  padding: 80px 0;
  border-top: 2px solid var(--sf-b);
}

.ve-success-icon {
  font-size: 1.1rem;
  margin-bottom: 32px;
  display: block;
  animation: ve-drop 0.35s cubic-bezier(.17,.67,.35,1.15) both;
}

@keyframes ve-drop {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.ve-submit-success h2 {
  font-family: var(--sf-f);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--sf-b);
  margin: 0 0 20px;
  line-height: 0.93;
}

.ve-submit-success p {
  font-size: 14px;
  color: var(--sf-b);
  opacity: 0.55;
  line-height: 1.8;
  max-width: 380px;
  margin: 0 0 48px;
}

.ve-submit-success .ve-btn-primary {
  display: inline-flex !important;
  align-items: center;
  gap: 16px;
  padding: 0 0 3px;
  background: transparent !important;
  color: var(--sf-b) !important;
  border: none !important;
  border-bottom: 1.5px solid var(--sf-b) !important;
  border-radius: 0 !important;
  font-family: var(--sf-f);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: opacity var(--sf-t);
  margin-top: 0;
}

.ve-submit-success .ve-btn-primary:hover { opacity: 0.4; transform: none; box-shadow: none !important; }

/* ══════════════════════════════════════════════════════════════
   ADMIN — PAGE SOUMISSIONS
   ══════════════════════════════════════════════════════════════ */
.ve-sub-stats { display: flex; gap: 0; margin-bottom: 28px; border: 1px solid #000; }

.ve-stat-card {
  background: #fff;
  border: none;
  border-right: 1px solid #000;
  padding: 20px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-width: 120px;
}

.ve-stat-card:last-child { border-right: none; }
.ve-stat-n { font-size: 2rem; font-weight: 700; color: #000; line-height: 1; font-variant-numeric: tabular-nums; }
.ve-stat-l { font-size: 9px; color: #000; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.4; }

.ve-sub-empty { padding: 60px 20px; text-align: center; color: #000; font-size: 0.9rem; border: 1px solid #000; opacity: 0.4; }
.ve-sub-empty span { font-size: 1.8rem; display: block; margin-bottom: 10px; }

.ve-sub-list { display: flex; flex-direction: column; gap: 0; border: 1px solid #000; }

.ve-sub-card {
  background: #fff;
  border-bottom: 1px solid #000;
  border-radius: 0;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  overflow: hidden;
  box-shadow: none;
  transition: background 0.1s ease;
}

.ve-sub-card:last-child { border-bottom: none; }
.ve-sub-card:hover { background: #f8f8f8; }

.ve-sub-thumb { width: 80px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-right: 1px solid #000; }
.ve-sub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ve-sub-thumb-ph { font-size: 1.5rem; }

.ve-sub-body { padding: 16px 20px; min-width: 0; }

.ve-sub-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ve-sub-title-row h3 { font-size: 0.88rem; font-weight: 600; color: #000; }
.ve-sub-date { font-size: 9px; color: #000; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.35; }

.ve-sub-meta-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #000; opacity: 0.55; margin-bottom: 8px; }

.ve-sub-excerpt { font-size: 12px; color: #000; opacity: 0.5; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ve-sub-submitter { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; color: #000; opacity: 0.5; border-top: 1px solid #e8e8e8; padding-top: 8px; margin-top: 8px; }
.ve-sub-submitter a { color: #000; text-decoration: underline; text-decoration-thickness: 1px; opacity: 1; }
.ve-sub-note { font-style: italic; flex: 0 0 100%; }

.ve-sub-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.ve-sub-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; font-size: 9px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid #000; color: #000;
  transition: opacity 0.1s;
}

.ve-sub-link:hover { opacity: 0.45; }
.ve-link-yt, .ve-link-bc, .ve-link-url { color: #000; border-color: #000; }

.ve-sub-actions { display: flex; flex-direction: column; border-left: 1px solid #000; flex-shrink: 0; }

.ve-sub-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; flex: 1;
  font-size: 9px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.1s ease;
  white-space: nowrap; gap: 5px;
  border-bottom: 1px solid #e8e8e8;
  color: #000;
}

.ve-sub-btn:last-child { border-bottom: 0; }
.ve-btn-publish:hover { background: #000; color: #fff; }
.ve-btn-edit:hover { background: #f0f0f0; }
.ve-btn-trash:hover { background: #000; color: #fff; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .ve-submit-wrap { padding: 48px 24px 72px; }
  .ve-form-footer { flex-direction: column; align-items: stretch; gap: 32px; }
  .ve-form-row { grid-template-columns: 1fr 1fr; }
  .ve-sub-card { grid-template-columns: 1fr; }
  .ve-sub-thumb { width: 100%; height: 130px; border-right: none; border-bottom: 1px solid #000; }
  .ve-sub-actions { flex-direction: row; border-left: 0; border-top: 1px solid #000; }
  .ve-sub-btn { border-bottom: 0; border-right: 1px solid #e8e8e8; padding: 12px; flex: 1; }
  .ve-sub-btn:last-child { border-right: 0; }
}

@media (max-width: 420px) {
  .ve-submit-wrap { padding: 40px 16px 60px; }
  .ve-form-row { grid-template-columns: 1fr; }
  .ve-form-row .ve-form-field { border-right: none; border-top: 1px solid #000; padding: 24px 0; }
  .ve-form-row .ve-form-field + .ve-form-field { padding-left: 0; }
  .ve-form-section-header { grid-template-columns: 24px 1fr; }
}
