/* ---------------------------------------------------------------------
   Photos vers vidéo — identité visuelle
   Palette parchemin/encre chaleureuse, typographie serif pour les titres
   (registre commémoratif), sans grille de "produits" ni panier.
   ------------------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --ink: #2a2621;
  --muted: #6b6459;
  --border: #e3dccd;
  --accent: #4b6357;
  --accent-ink: #2f4038;
  --gold: #b08654;
  --error: #a3402e;
  --radius: 14px;
  --font-display: "Fraunces", serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

header.hero {
  margin-bottom: 48px;
  position: relative;
}

.hero-sprig {
  width: 120px;
  height: 40px;
  display: block;
  margin-bottom: 18px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero p {
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
  margin: 0;
}

.step {
  position: relative;
  padding-left: 60px;
  padding-bottom: 28px;
}

.step:last-of-type {
  padding-bottom: 0;
}

.step::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: -28px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), var(--border));
  opacity: 0.55;
}

.step:last-of-type::after {
  display: none;
}

.step-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 4px;
}

.step-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: #f1efe6;
}

.dropzone-label {
  font-size: 15px;
  color: var(--ink);
}

.dropzone-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

input[type="file"] {
  display: none;
}

.filmstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.filmstrip .thumb {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}

.filmstrip .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.filmstrip .thumb .remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(42, 38, 33, 0.75);
  color: #fff;
  border: none;
  font-size: 11px;
  line-height: 18px;
  cursor: pointer;
  padding: 0;
}

label.field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

input[type="text"],
select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}

input[type="text"]:focus,
select:focus,
.dropzone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.music-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--accent);
}

.music-name {
  font-size: 13px;
  color: var(--muted);
}

.grille-champs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .grille-champs {
    grid-template-columns: 1fr;
  }
}

.case-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 0;
}

.case-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.forfait-liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forfait-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: #faf8f2;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.forfait-option:hover:not(.indisponible) {
  border-color: var(--accent);
}

.forfait-option.selectionne {
  border-color: var(--accent);
  background: #f1f5f0;
}

.forfait-option.indisponible {
  cursor: not-allowed;
  opacity: 0.5;
}

.forfait-option input[type="radio"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.forfait-option-corps {
  flex: 1;
}

.forfait-suggere {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
}

.forfait-nom {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
}

.forfait-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.forfait-prix {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--accent-ink);
  white-space: nowrap;
}

.forfait-vide {
  color: var(--muted);
  font-size: 14px;
}

.btn-primary {
  width: 100%;
  margin-top: 32px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-ink);
}

.btn-primary:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.notice {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.notice.error {
  color: var(--error);
}

.footnote {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.mode-test {
  background: #fbf3e3;
  border: 1px solid #e7cf9f;
  color: #7a5b16;
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 24px;
}

/* --- page d'attente --- */

.progress-wrap {
  margin: 28px 0;
}

.progress-track {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}

.progress-status {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

.video-ready video,
.video-ready iframe,
#apercuVideoContainer video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
}

.link-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.link-row input {
  flex: 1;
}

.apercu-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.apercu-actions .btn-primary {
  width: auto;
  flex: 1;
  min-width: 200px;
  margin-top: 0;
}

.qr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.qr-row img {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.qr-titre {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
}

.qr-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 8px;
}

@media (max-width: 480px) {
  .page {
    padding: 40px 16px 72px;
  }
  .step {
    padding-left: 48px;
  }
  .step::after {
    left: 13px;
  }
  .step-body {
    padding: 20px;
  }
}
