/* Request Form - Aligned with main site style (Clipsou Streaming) */

* { 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth;
}

html, body { 
  margin: 0; 
  padding: 0; 
  background: #0b1117; 
  color: #e5e7eb; 
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.container { 
  max-width: 1100px; 
  margin: 24px auto; 
  padding: 0 16px; 
}

/* Stepper Navigation - Simple style aligned with site */
.stepper-container {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  cursor: default;
}

.step.completed {
  cursor: pointer;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(51, 65, 85, 0.5);
  border: 2px solid #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #94a3b8;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.step.active .step-circle {
  background: #2B22EE;
  border-color: #2B22EE;
  color: white;
}

.step.completed .step-circle {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

.step.completed .step-circle::before {
  content: "✓";
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  transition: color 0.2s ease;
}

.step.active .step-label {
  color: #60a5fa;
}

.step.completed .step-label {
  color: #4ade80;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #475569;
  margin: 0 12px;
  position: relative;
  overflow: hidden;
}

.step-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: #2B22EE;
  transition: width 0.3s ease;
}

.step.completed + .step-line::after {
  width: 100%;
}

/* Slides Container */
.slides-container {
  position: relative;
  width: 100%;
}

.slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, visibility 0s 0.25s, height 0.25s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  height: auto;
  overflow: visible;
  transition: opacity 0.25s ease, visibility 0s 0s;
  pointer-events: auto;
}

.slide.slide-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s 0.25s;
  pointer-events: none;
}

/* Slide Navigation Buttons */
.slide-nav {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #334155;
}

@media (max-width: 640px) {
  .form-section {
    margin: 12px 0;
    padding: 20px;
  }

  .slide-nav {
    margin-top: 24px;
    padding-top: 16px;
  }
}

.slide-nav .btn {
  min-width: 140px;
}

h1, h2, h3 { 
  margin: 12px 0; 
  line-height: 1.3;
}

h1 {
  font-size: 32px;
  color: #fff;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  color: #f1f5f9;
  font-weight: 600;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 20px;
}

.back-btn {
  text-decoration: none;
}

@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }
}

/* Notices */
.notice {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.notice-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
}

.notice-info {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
}

.notice-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.notice-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.notice strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.notice p {
  margin: 8px 0;
}

.notice .small {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 12px;
}

/* Sections as cards */
.form-section { 
  background: #0f172a; 
  border: 1px solid #1f2a3a; 
  border-radius: 12px; 
  padding: 24px; 
  margin: 16px 0; 
}

/* Terms section */
.terms-section {
  border: 1px solid rgba(255,255,255,0.12);
}

.terms-content {
  margin-top: 16px;
}

.terms-intro {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 20px;
  font-weight: 500;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terms-list li {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.terms-list li strong {
  display: block;
  font-size: 16px;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.terms-list li p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

.terms-accept {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(22, 163, 74, 0.45);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
}

.checkbox-label input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  accent-color: #10b981;
}

/* Button styles - Aligned with main site */
.btn {
  background: #2B22EE;
  color: white;
  border: 0;
  height: 44px;
  padding: 0 20px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  transition: background 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  background: #2419cc;
}

.btn.primary {
  background: #2B22EE;
}

.btn.primary:hover {
  background: #2419cc;
}

.btn.secondary { 
  background: #334155; 
  color: #e5e7eb; 
}

.btn.secondary:hover {
  background: #475569;
}

.btn.danger {
  background: #dc2626;
}

.btn.danger:hover {
  background: #b91c1c;
}

.btn:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
}

.btn:disabled:hover {
  background: #2B22EE;
}

.btn.secondary:disabled:hover {
  background: #334155;
}

.btn.danger:disabled:hover {
  background: #dc2626;
}

/* Grid layout */
.grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 16px; 
}

/* Form elements */
label { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  margin: 12px 0; 
  font-weight: 500;
  color: #f1f5f9;
}

label .required {
  color: #ef4444;
  font-weight: 700;
}

.field-hint {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
  margin-top: 4px;
}

.error-message {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
}

input[type="text"], 
input[type="url"], 
input[type="number"], 
textarea, 
select {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus, 
input[type="url"]:focus, 
input[type="number"]:focus, 
textarea:focus, 
select:focus {
  outline: none;
  border-color: #2563eb;
}

input[type="text"], 
input[type="url"], 
input[type="number"], 
select { 
  height: 44px; 
}

textarea { 
  resize: vertical; 
  min-height: 120px;
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Fieldset */
fieldset { 
  border: 1px solid #334155; 
  border-radius: 12px; 
  padding: 16px; 
  margin: 16px 0; 
}

fieldset legend {
  padding: 0 8px;
  font-weight: 600;
  font-size: 16px;
  color: #f1f5f9;
}

fieldset:disabled {
  opacity: 0.6;
}

/* Actors */
.actor-row { 
  display: flex; 
  gap: 8px; 
  align-items: flex-end;
  margin-top: 12px;
}

.actor-row input {
  flex: 1;
}

.actors-list { 
  display: flex;
  flex-wrap: wrap;
  gap: 8px; 
  margin-bottom: 12px; 
}

.actor-chip { 
  background: #1f2937; 
  border: 1px solid #374151; 
  border-radius: 999px; 
  padding: 8px 14px; 
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  font-size: 14px;
}

.actor-chip .remove { 
  background: transparent; 
  border: 0; 
  color: #ef4444; 
  cursor: pointer; 
  font-size: 18px;
  line-height: 1;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actor-chip .remove:hover {
  color: #dc2626;
}

/* Actions row */
.actions { 
  display: flex; 
  gap: 8px; 
  margin: 8px 0; 
  flex-wrap: wrap;
  align-items: center;
}

.form-section form > .actions {
  width: 100%;
}

label .actions {
  margin: 6px 0;
}

.actions .btn,
.actions .file-label {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-section form > .actions .btn,
  .form-section form > .actions .file-label {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  label .actions {
    flex-direction: row;
    align-items: center;
  }

  label .actions .btn,
  label .actions .file-label {
    width: auto;
    flex: 1;
  }
}

/* Grid labels with upload buttons */
.grid label .actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.grid label .actions .btn,
.grid label .actions .file-label {
  flex: none;
  width: 100%;
}

/* Pending request details */
.pending-details {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  font-size: 14px;
  color: #cbd5e1;
}

.pending-details p {
  margin: 6px 0;
}

.pending-details strong {
  color: #60a5fa;
}

/* History list */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.history-item-content {
  flex: 1;
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}

.history-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
}

.history-item-status {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.history-item-status.pending {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.history-item-status.approved {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.history-item-status.rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.history-item-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #94a3b8;
  margin: 8px 0;
}

.history-item-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.history-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.history-item-actions .btn {
  padding: 8px 12px;
  font-size: 13px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .container { 
    margin: 12px auto; 
    padding: 0 12px; 
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
  }

  .back-btn {
    width: 100%;
    justify-content: center;
  }

  .form-section { 
    padding: 16px; 
  }

  .grid { 
    grid-template-columns: 1fr; 
  }

  .terms-list li {
    padding: 14px;
  }

  .terms-list li strong {
    font-size: 15px;
  }

  .terms-list li p {
    font-size: 13px;
  }

  .checkbox-label {
    font-size: 15px;
  }

  .stepper-container {
    padding: 16px;
  }

  .stepper {
    max-width: 100%;
  }

  .step-circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .step-label {
    font-size: 12px;
  }

  .step-line {
    margin: 0 8px;
  }

  .slide-nav {
    flex-direction: column;
    gap: 10px;
  }

  .slide-nav .btn {
    width: 100%;
    min-width: 0;
  }

  input[type="text"], 
  input[type="url"], 
  input[type="number"], 
  select { 
    height: 48px; 
    font-size: 16px;
  }

  textarea {
    font-size: 16px;
    padding: 12px;
  }

  .btn {
    height: 48px;
    font-size: 16px;
    width: 100%;
  }

  .actions {
    flex-direction: column;
    gap: 10px;
  }

  .actor-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .actor-row input {
    width: 100%;
  }

  .actor-row .btn {
    width: 100%;
  }

  .notice {
    padding: 16px;
  }

  .notice strong {
    font-size: 16px;
  }

  .history-item {
    flex-direction: column;
    gap: 12px;
  }

  .history-item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-item-meta {
    flex-direction: column;
    gap: 8px;
  }

  .history-item-actions {
    width: 100%;
  }

  .history-item-actions .btn {
    width: 100%;
  }
}

/* Animations - Simple fade only */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.notice:not([hidden]) {
  animation: fadeIn 0.2s ease;
}

/* Tutorial Section */
.tutorial-section {
  border: 1px solid rgba(255,255,255,0.12);
}

.tutorial-intro {
  color: #cbd5e1;
  font-size: 15px;
  margin-bottom: 20px;
}

.tutorial-card-wrapper {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 24px;
  margin: 24px 0;
  align-items: start;
}

.tutorial-card {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
}

.tutorial-card-media {
  aspect-ratio: 9/12;
  background: rgba(43, 34, 238, 0.15);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tutorial-overlay {
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-align: center;
  padding: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tutorial-label {
  position: absolute;
  font-size: 13px;
  font-weight: 600;
  z-index: 10;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tutorial-label.portrait {
  top: 10px;
  right: 10px;
}

.tutorial-label.landscape {
  top: 10px;
  right: 10px;
}

.tutorial-card-content {
  padding: 12px 16px;
  position: relative;
}

.tutorial-badge-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
}

.tutorial-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fbbf24;
  display: inline-block;
}

.tutorial-rating {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-align: left;
}

.tutorial-fiche {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tutorial-fiche-image {
  aspect-ratio: 16/9;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
}

.tutorial-note {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.tutorial-tips {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.tutorial-tips h3 {
  font-size: 18px;
  margin: 0 0 12px 0;
  color: #f1f5f9;
}

.tutorial-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tutorial-tips li {
  padding: 10px 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tutorial-tips li:last-child {
  border-bottom: none;
}

.tutorial-tips strong {
  color: #f1f5f9;
}

/* Image previews */
.img-preview {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 23, 42, 0.4);
  margin: 12px 0;
  max-height: 300px;
  object-fit: contain;
}

/* Mobile tutorial adjustments */
@media (max-width: 768px) {
  .tutorial-card-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tutorial-card-media {
    aspect-ratio: 9/12;
  }

  .tutorial-tips {
    padding: 16px;
  }

  .tutorial-tips li {
    font-size: 13px;
  }
}
