/* ==========================================================================
   Editeo, pages parcours (/createurs/, /monteurs/)
   S'appuie sur style.css (tokens, nav, boutons, tags, lecteur, footer…)
   ========================================================================== */

/* ---------- En-tête de page ---------- */
.phero {
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 112px));
  padding-bottom: clamp(64px, 8vw, 112px);
}
.phero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: end;
}
.phero__title {
  margin-top: clamp(24px, 4vh, 40px);
  font-weight: 900;
  font-size: clamp(2.8rem, 6.4vw, 6.4rem);
  line-height: .9;
  letter-spacing: -0.058em;
  color: var(--obsidian);
}
.phero__title .line { padding-bottom: .16em; margin-bottom: -.11em; }
.phero__lead { margin-top: 32px; max-width: 540px; font-size: 19px; line-height: 1.55; color: var(--charcoal); }
.phero__for { margin-top: 16px; font-size: 15px; color: var(--slate); }
.phero__ctas { margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Sommaire des étapes */
.toc__label { font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 14px; }
.toc { border-top: 1px solid color-mix(in srgb, var(--forest) 15%, transparent); }
.toc a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 15%, transparent);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--obsidian);
  transition: color .3s;
}
.toc a span { font-size: 13px; font-weight: 700; color: var(--pebble); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--forest); }

/* ---------- Barre de progression collante ---------- */
.journey { position: relative; }
.stepbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: var(--paper);
  border-top: 1px solid color-mix(in srgb, var(--forest) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 10%, transparent);
}
.stepbar__inner { position: relative; display: flex; align-items: center; gap: 28px; height: 58px; }
.stepbar__title { flex: none; font-size: 13px; font-weight: 700; color: var(--obsidian); }
.stepbar__list { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stepbar__list a { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; font-weight: 500; color: var(--pebble); transition: color .3s; }
.stepbar__list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepbar__list a b {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  color: var(--slate);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--forest) 20%, transparent);
  transition: background .3s, color .3s, box-shadow .3s;
}
.stepbar__list a:hover { color: var(--forest); }
.stepbar__list a.is-done { color: var(--slate); }
.stepbar__list a.is-done b { background: var(--forest); color: var(--paper); box-shadow: none; }
.stepbar__list a.is-active { color: var(--obsidian); font-weight: 600; }
.stepbar__list a.is-active b { background: var(--lime); color: var(--forest); box-shadow: none; }
.stepbar__track { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.stepbar__track span { display: block; height: 100%; background: var(--forest); transform-origin: left; transform: scaleX(0); }

/* ---------- Étapes ---------- */
.jstep { padding-block: clamp(88px, 11vw, 160px); scroll-margin-top: calc(var(--nav-h) + 58px); }
.jstep--fog { background: var(--fog); }
.jstep--dark { background: var(--forest); color: var(--paper); }
.jstep__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
}
.jstep--flip .jstep__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.jstep--flip .jstep__copy { order: 2; }

.jstep__title { font-size: clamp(2.2rem, 4.4vw, 4.2rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: var(--obsidian); }
.jstep__text { margin-top: 20px; max-width: 480px; font-size: 18px; line-height: 1.6; color: var(--charcoal); }
.jstep__text + .jstep__text { margin-top: 14px; }
.jstep .checks { margin-top: 28px; }
.jstep__note {
  margin-top: 28px;
  max-width: 480px;
  display: flex; gap: 12px;
  padding: 16px 18px;
  border-radius: var(--r-card);
  background: var(--mist);
  font-size: 15px; line-height: 1.5; color: var(--forest);
}
.jstep__note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.jstep__note b { font-weight: 700; }

.jstep--dark .jstep__title { color: var(--paper); }
.jstep--dark .jstep__text { color: var(--mist); opacity: .88; }
.jstep--dark .checks li { color: var(--paper); }

/* Lien vers l'étape suivante */
.jnext { margin-top: 36px; display: inline-block; font-size: 16px; font-weight: 500; color: var(--forest); text-decoration: underline; text-underline-offset: 4px; }
.jnext:hover { text-underline-offset: 7px; }
.jstep--dark .jnext { color: var(--lime); }

/* ---------- Maquettes ---------- */
.jvisual { position: relative; }
.mock {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--sh-hair), var(--sh-xl);
  font-size: 14px;
  line-height: 1.4;
  color: var(--charcoal);
}
.mock__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mock__bar b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--obsidian); }
.mock__bar small { display: block; font-size: 12px; color: var(--slate); }
.mock__label { margin: 18px 0 8px; font-size: 12px; font-weight: 600; color: var(--slate); }
.mock__label:first-child { margin-top: 0; }
.mock--float { margin-top: 12px; }
.mock__rows { display: flex; flex-direction: column; gap: 6px; }
.mock__actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Choix du type de vidéo / modèles */
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.type { display: flex; flex-direction: column; gap: 12px; padding: 12px; border-radius: var(--r-card); background: var(--fog); font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--obsidian); }
.type .ico { width: 20px; height: 20px; color: var(--forest); }
.type.is-on { background: var(--forest); color: var(--paper); }
.type.is-on .ico { color: var(--lime); }

/* Champ libre + références */
.textarea { padding: 12px 14px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--pebble); font-size: 14px; line-height: 1.5; color: var(--obsidian); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--forest); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.refs { display: flex; flex-wrap: wrap; gap: 8px; }
.ref { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-pill); background: var(--fog); font-size: 13px; font-weight: 500; color: var(--forest); }
.ref .ico { width: 15px; height: 15px; }

/* Estimation */
.est-big { font-size: clamp(2.6rem, 4.6vw, 3.6rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; color: var(--obsidian); font-variant-numeric: tabular-nums; }
.est-big small { font-size: .45em; letter-spacing: -0.02em; margin-left: 4px; }
.est-range { position: relative; height: 8px; margin-top: 18px; border-radius: 8px; background: var(--fog); }
.est-range span { position: absolute; left: 20%; right: 24%; top: 0; bottom: 0; border-radius: 8px; background: var(--mist); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--forest) 20%, transparent); transform-origin: left; }
.est-range i { position: absolute; top: 50%; left: 48%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px var(--paper); }
.est-range__labels { display: flex; justify-content: space-between; padding: 8px 20% 0 16%; font-size: 12px; color: var(--slate); }
.factors li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--fog); font-size: 14px; }
.factors li span { color: var(--slate); }
.factors li b { color: var(--obsidian); font-weight: 600; }
.impact { font-style: normal; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; background: var(--fog); color: var(--charcoal); }
.impact--up { background: var(--forest); color: var(--lime); }
.impact--down { background: var(--mist); color: var(--forest); }

/* Négociation */
.chat { display: flex; flex-direction: column; gap: 10px; }
.chat .bubble { max-width: 74%; }
.chat__deal { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--mist); color: var(--forest); font-size: 13px; font-weight: 600; }
.chat__deal .ico { width: 16px; height: 16px; stroke-width: 2.6; }

/* Badge « réglé / reçu » */
.paid {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: var(--sh-hair), var(--sh-lg);
  font-size: 14px; color: var(--obsidian);
}
.paid i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: var(--lime); }
.paid i .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.paid small { display: block; font-size: 11px; color: var(--slate); line-height: 1.2; }
.paid b { display: block; font-size: 14px; line-height: 1.25; }
.jvisual > .paid { margin-bottom: 12px; }

/* Lecteur réutilisé en statique */
.jvisual .player__mark { transform: none; }
.jvisual .player__comments li { opacity: 1; transform: none; transition: none; }

/* Envoi d'une version */
.upload { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-card); background: var(--fog); }
.upload__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--forest); color: var(--lime); flex: none; }
.upload__body { flex: 1; min-width: 0; }
.upload__body b { display: block; font-size: 14px; color: var(--obsidian); }
.upload__body small { display: block; font-size: 12px; color: var(--slate); }
.upload__bar { height: 4px; margin-top: 8px; border-radius: 4px; background: color-mix(in srgb, var(--forest) 12%, transparent); overflow: hidden; }
.upload__bar span { display: block; height: 100%; width: 100%; background: var(--forest); transform-origin: left; }

/* Livraison */
.deliver { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--fog); }
.deliver__thumb { position: relative; width: 96px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; flex: none; background: var(--forest); }
.deliver__thumb img { width: 100%; height: 100%; object-fit: cover; }
.deliver__body { flex: 1; min-width: 0; }
.deliver__body b { display: block; font-size: 15px; color: var(--obsidian); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deliver__body small { display: block; font-size: 12px; color: var(--slate); }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--fog); font-size: 14px; }
.line-row span { color: var(--slate); }
.line-row b { color: var(--obsidian); }

/* Tableau de bord monteur */
.dash { display: grid; grid-template-columns: 176px minmax(0, 1fr); padding: 0; overflow: hidden; }
.dash__side { padding: 18px 14px; background: var(--paper); border-right: 1px solid var(--fog); display: flex; flex-direction: column; gap: 2px; }
.dash__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 16px; font-weight: 900; letter-spacing: -0.05em; color: var(--forest); }
.dash__brand .logo__mark { width: 22px; height: 22px; }
.dash__side span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--charcoal); }
.dash__side span.is-on { background: var(--forest); color: var(--paper); }
.dash__side .ico { width: 16px; height: 16px; }
.dash__main { padding: 20px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { padding: 12px; border-radius: var(--r-card); background: var(--fog); }
.tile small { display: block; font-size: 11px; color: var(--slate); }
.tile b { display: block; margin-top: 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--obsidian); font-variant-numeric: tabular-nums; }
.prow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--fog); font-size: 13px; }
.prow .av { width: 28px; height: 28px; font-size: 11px; }
.prow b { display: block; color: var(--obsidian); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow small { display: block; font-size: 11px; color: var(--slate); }
.profile { display: flex; flex-direction: column; gap: 12px; }
.profile__who { display: flex; align-items: center; gap: 12px; }
.profile__who .av { width: 44px; height: 44px; font-size: 14px; }
.profile__who b { display: block; font-size: 16px; color: var(--obsidian); }
.profile__who small { display: block; font-size: 12px; color: var(--slate); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 5px 10px; border-radius: var(--r-pill); background: var(--fog); font-size: 12px; font-weight: 500; color: var(--forest); }

/* Questions éditables */
.qedit { display: flex; flex-direction: column; gap: 6px; }
.qedit li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-card); background: var(--fog); font-size: 14px; color: var(--obsidian); }
.qedit li .grip { width: 10px; height: 16px; flex: none; background: radial-gradient(circle, var(--pebble) 1.3px, transparent 1.6px) 0 0 / 5px 5px; opacity: .8; }
.qedit li .ico { width: 14px; height: 14px; color: var(--pebble); }
.qedit li em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--slate); }
.qedit li.is-new { background: var(--mist); }
.qedit__add { justify-content: center; background: transparent !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pebble) 50%, transparent); color: var(--forest) !important; font-weight: 600; }
.invite { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-pill); background: var(--fog); font-size: 13px; color: var(--forest); font-weight: 500; min-width: 0; }
.invite span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Historique des transactions */
.tx { width: 100%; border-collapse: collapse; font-size: 13px; }
.tx th { text-align: left; font-size: 11px; font-weight: 600; color: var(--slate); padding: 0 0 8px; }
.tx td { padding: 10px 0; border-top: 1px solid var(--fog); color: var(--obsidian); }
.tx td:last-child, .tx th:last-child { text-align: right; }
.tx .tag { padding: 3px 9px; font-size: 11px; }
.stripe { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate); }
.stripe b { color: var(--obsidian); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .phero__grid { grid-template-columns: 1fr; align-items: start; }
  .jstep__grid, .jstep--flip .jstep__grid { grid-template-columns: minmax(0, 1fr); }
  .jstep--flip .jstep__copy { order: 0; }
  .jvisual { margin-top: 8px; }
}
@media (max-width: 760px) {
  .stepbar__title { display: none; }
  .stepbar__list { display: flex; gap: 8px; }
  .stepbar__list a span { display: none; }
  .stepbar__list a.is-active { flex: 1; }
  .stepbar__list a.is-active span { display: block; }
}
@media (max-width: 600px) {
  .mock { padding: 14px; border-radius: 16px; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile b { font-size: 16px; }
  .deliver { flex-wrap: wrap; }
  .chat .bubble { max-width: 86%; }
}

/* ==========================================================================
   Page créateurs : couleurs inversées (fond forêt, textes clairs).
   Les maquettes du produit restent claires ; l'étape 4, sombre chez les
   monteurs, devient claire ici.
   ========================================================================== */
.page-dark {
  --rule: color-mix(in srgb, var(--mist) 22%, transparent);
  background: var(--forest);
  color: var(--mist);
}
.page-dark :focus-visible { outline-color: var(--lime); }
.page-dark ::selection { background: var(--lime); color: var(--forest); }

.page-dark .logo { color: var(--paper); }
.page-dark .footer .logo__mark rect { fill: var(--lime); }
.page-dark .footer .logo__mark path { fill: var(--forest); }

.page-dark .phero__title { color: var(--paper); }
.page-dark .phero__lead, .page-dark .phero__for, .page-dark .toc__label { color: var(--mist); }
.page-dark .phero .btn--forest { background: var(--lime); color: var(--forest); }
.page-dark .phero .btn--forest:hover { background: var(--lime-hover); }
.page-dark .phero .link { color: var(--paper); }
.page-dark .toc, .page-dark .toc a { border-color: var(--rule); }
.page-dark .toc a { color: var(--paper); }
.page-dark .toc a span { color: var(--mist); }
.page-dark .toc a:hover { color: var(--lime); }

.page-dark .stepbar { background: var(--forest); border-color: var(--rule); }
.page-dark .stepbar__title, .page-dark .stepbar__list a.is-active { color: var(--paper); }
.page-dark .stepbar__list a, .page-dark .stepbar__list a.is-done { color: var(--mist); }
.page-dark .stepbar__list a:hover { color: var(--lime); }
.page-dark .stepbar__list a b { color: var(--mist); box-shadow: inset 0 0 0 1px var(--rule); }
.page-dark .stepbar__list a.is-done b { background: var(--mist); color: var(--forest); }
.page-dark .stepbar__list a.is-active b { background: var(--lime); color: var(--forest); box-shadow: none; }
.page-dark .stepbar__track span { background: var(--lime); }

.page-dark .jstep--fog { background: var(--spruce); }
.page-dark .jstep__title { color: var(--paper); }
.page-dark .jstep__text { color: var(--mist); }
.page-dark .jstep .checks li { color: var(--paper); }
.page-dark .jnext { color: var(--paper); }
.page-dark .jstep__note { background: var(--forest); color: var(--mist); }
.page-dark .jstep--dark { background: var(--mist); color: var(--charcoal); }
.page-dark .jstep--dark .jnext { color: var(--forest); }
.page-dark .jstep--dark .jstep__title, .page-dark .jstep--dark .checks li { color: var(--obsidian); }
.page-dark .jstep--dark .jstep__text { color: var(--charcoal); opacity: 1; }
.page-dark .jstep--dark :focus-visible { outline-color: var(--forest); }

.page-dark .final { background: var(--lime); color: var(--forest); }
.page-dark .final__title, .page-dark .final .link--light { color: var(--forest); }
.page-dark .final__sub { color: var(--forest); opacity: 1; }
.page-dark .final .btn--paper { background: var(--forest); color: var(--paper); }
.page-dark .final .btn--paper:hover { background: var(--spruce); }
.page-dark .final :focus-visible { outline-color: var(--forest); }

.page-dark .footer { background: var(--forest); }
.page-dark .footer__col a, .page-dark .footer__col address { color: var(--paper); }
.page-dark .footer__col h3, .page-dark .footer__col--brand p, .page-dark .footer__bottom { color: var(--mist); }
.page-dark .footer__bottom { border-color: var(--rule); }
.page-dark .footer__legal a:hover { color: var(--lime); }
.page-dark .footer__mega span { color: var(--lime); }


/* ---------- Contact ---------- */
.contact-head { padding-bottom: clamp(40px, 5vw, 64px); }
.contact-faq { padding-bottom: clamp(72px, 9vw, 128px); }
.faq-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 80px); }
.faq-group__title { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; color: var(--obsidian); text-wrap: balance; padding-top: 20px; }
summary.qa__q { list-style: none; cursor: pointer; }
summary.qa__q::-webkit-details-marker { display: none; }
.qa__text { padding: 0 60px 24px 0; max-width: 62ch; color: var(--charcoal); }
details.qa[open] .qa__plus { background: var(--forest); transform: rotate(180deg); }
details.qa[open] .qa__plus::before, details.qa[open] .qa__plus::after { background: var(--lime); }
details.qa[open] .qa__plus::after { transform: rotate(0deg); }
.contact-mail { background: var(--forest); color: var(--paper); padding-block: clamp(72px, 9vw, 128px); }
.contact-mail__title { font-size: clamp(2.2rem, 4.4vw, 4.2rem); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: var(--lime); text-wrap: balance; }
.contact-mail__text { margin-top: 20px; color: var(--mist); }
.contact-mail__link { display: inline-block; margin-top: 28px; font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.03em; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.contact-mail__link:hover { color: var(--lime); }
.contact-mail :focus-visible { outline-color: var(--lime); }
@media (max-width: 760px) {
  .faq-group { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq-group__title { padding-top: 0; }
  .qa__text { padding-right: 0; }
}
