/* ═══════════════════════════════════════════════════════════════
   ManiaKar — site web — DÉPÔT D'ANNONCE (/deposer) — refonte du 14/09

   Ce que couvre cette feuille, et rien d'autre :
     • le cadre du parcours : colonne des étapes (verticale sur bureau,
       barre à six segments sous 900 px) et carte du formulaire ;
     • les questions d'état en boutons radio (pastilles) ;
     • la grille des photos guidées, le glisser-déposer ;
     • l'estimation, le curseur de prix et son positionnement ;
     • le bloc HistoVec, l'écran de fin, la fenêtre « application » ;
     • le mode correction (/deposer?modifier=<id>) : ligne du véhicule sous le
       titre, code postal figé, message de chargement.
   Tout le reste vient de desktop.css et refonte.css (field, btn, specs,
   estim, auth-msg, mk-modal, etat-vide…). Jetons uniquement, #fff excepté.
═══════════════════════════════════════════════════════════════ */

/* ── Cadre ─────────────────────────────────────────────────────── */
.depot { padding-block: 28px 64px; }
.depot-tete { margin: 0 0 22px; }
.depot-tete h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.depot-tete p { margin: 8px 0 0; color: var(--mk-texte-secondaire); font-size: 16px; max-width: 62ch; }

.depot-cadre { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 32px; align-items: start; }
.depot-carte { min-width: 0; background: var(--mk-surface); border: 1px solid var(--mk-bordure); border-radius: 16px; box-shadow: var(--mk-ombre-carte); padding: 28px 32px; }
.depot-panneau h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.depot-panneau h2:focus { outline: none; }
.depot-sous-titre { font-size: 16px; font-weight: 800; margin: 22px 0 8px; }

/* ── Étapes ────────────────────────────────────────────────────── */
.depot-cote { position: sticky; top: calc(var(--mk-barre-hauteur) + 20px); background: var(--mk-surface); border: 1px solid var(--mk-bordure); border-radius: var(--mk-rayon-carte); padding: 16px 14px; }
.depot-etape-n { margin: 0 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-texte-secondaire); }
.depot-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.depot-etapes li { display: flex; }
.depot-etapes li > span, .depot-etape-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--mk-texte-secondaire); }
.depot-etape-btn { border: 0; background: none; font: inherit; font-weight: 600; text-align: left; cursor: pointer; color: var(--mk-vert-marque); }
.depot-etape-btn:hover { background: var(--mk-surface-basse); }
.depot-etape-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; border: 1.5px solid var(--mk-contour-clair); color: var(--mk-texte-secondaire); background: var(--mk-surface); }
.depot-etapes li.fait .depot-etape-num { background: var(--mk-vert-marque); border-color: var(--mk-vert-marque); color: #fff; }
.depot-etapes li.courant > span { background: var(--mk-surface-moyenne); color: var(--mk-encre); font-weight: 700; }
.depot-etapes li.courant .depot-etape-num { background: var(--mk-vert-cta); border-color: var(--mk-vert-cta); color: #fff; }
.depot-recommencer { margin: 12px 8px 2px; font-size: 13px; }
.depot-cote.depot-cote-fin { display: none; }

/* ── Textes d'appoint ──────────────────────────────────────────── */
.depot-points { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.depot-points li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: var(--mk-texte); }
.depot-points li::before { content: ''; position: absolute; left: 3px; top: 5px; width: 12px; height: 7px; border-left: 2.5px solid var(--mk-vert-marque); border-bottom: 2.5px solid var(--mk-vert-marque); transform: rotate(-45deg); }
.depot-aide { font-size: 13.5px; line-height: 1.5; color: var(--mk-texte-secondaire); margin: 4px 0 14px; }
.depot-note { background: var(--mk-surface-basse); border: 1px solid var(--mk-surface-moyenne); border-radius: var(--mk-rayon-md); padding: 10px 14px; font-size: 14px; color: var(--mk-texte); margin: 0 0 14px; }
.depot-alt { text-align: center; font-size: 13.5px; color: var(--mk-texte-secondaire); margin: 14px 0 0; }
.depot-alt-gauche { text-align: left; margin: 0 0 16px; }
.depot-alt .lien-btn { font-size: 13.5px; }

/* ── Bandeau de l'offre de lancement ───────────────────────────── */
.depot-prime { margin-top: 24px; background: var(--mk-surface-basse); border: 1px solid var(--mk-surface-moyenne); border-left: 4px solid var(--mk-vert-marque); border-radius: var(--mk-rayon-carte); padding: 14px 18px; }
.depot-prime p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--mk-texte); }
.depot-prime .depot-prime-titre { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mk-vert-marque); margin-bottom: 4px; }
.depot-prime a { font-weight: 600; font-size: 14px; }

/* ── Boutons du parcours ───────────────────────────────────────── */
.depot-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.depot-actions .btn { min-width: 180px; }
.depot-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--mk-bordure); }
.depot-nav .btn-cta { min-width: 180px; }
.depot .field-row { flex-wrap: wrap; }
.depot .field-row .field { min-width: 150px; }

/* ── Questions en boutons radio ────────────────────────────────── */
.depot-groupe { border-top: 1px solid var(--mk-bordure); padding-top: 16px; margin-top: 16px; }
.depot-groupe:first-child { border-top: 0; padding-top: 0; margin-top: 4px; }
.depot-groupe h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.depot-question { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.depot-question legend { font-size: 14.5px; font-weight: 700; color: var(--mk-encre); margin-bottom: 8px; padding: 0; }
.depot-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.depot-choix-liste { flex-direction: column; align-items: stretch; }
.depot-option { position: relative; display: inline-flex; cursor: pointer; }
.depot-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.depot-option span { display: inline-block; padding: 9px 14px; border: 1px solid var(--mk-bordure); border-radius: var(--mk-rayon-champ); background: var(--mk-surface); font-size: 14px; line-height: 1.35; color: var(--mk-texte); transition: border-color .12s ease, background .12s ease; }
.depot-choix-liste .depot-option span { width: 100%; }
.depot-option:hover span { border-color: var(--mk-contour-clair); }
.depot-option input:checked + span { border-color: var(--mk-vert-cta); background: var(--mk-surface-basse); color: var(--mk-vert-marque); font-weight: 600; box-shadow: inset 0 0 0 1px var(--mk-vert-cta); }
.depot-option input:focus-visible + span { outline: 3px solid var(--mk-vert-cta); outline-offset: 2px; }
.depot-erreur { display: none; color: var(--mk-erreur); font-size: 12.5px; margin: 6px 0 0; }
.depot-question.invalid legend { color: var(--mk-erreur); }
.depot-question.invalid .depot-option span { border-color: var(--mk-erreur); }
.depot-question.invalid .depot-erreur { display: block; }
.depot-question-sous { margin: 0 0 16px; max-width: 260px; }

/* ── Récapitulatifs ────────────────────────────────────────────── */
.depot-specs { margin: 0 0 16px; }
.depot-specs .v { overflow-wrap: anywhere; }

/* ── Photos ────────────────────────────────────────────────────── */
.depot-compteur { margin: 0 0 8px; font-size: 14px; color: var(--mk-texte-secondaire); }
.depot-compteur span { color: var(--mk-encre); font-weight: 700; font-variant-numeric: tabular-nums; }
.depot-zone { border: 1.5px dashed transparent; border-radius: var(--mk-rayon-carte); padding: 4px; margin: 0 -6px; transition: border-color .12s ease, background .12s ease; }
.depot-zone.survol { border-color: var(--mk-vert-cta); background: var(--mk-surface-basse); }
.depot-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.depot-photos .photo-add { grid-column: 1 / -1; aspect-ratio: auto; min-height: 58px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--mk-vert-marque); border-color: var(--mk-vert-cta); background: var(--mk-surface-basse); gap: 8px; }
.depot-photos .photo-add:hover { background: var(--mk-surface-moyenne); }
.depot-photo { position: relative; aspect-ratio: 4 / 3; min-width: 0; }
.depot-photo-vide { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; border: 1.5px dashed var(--mk-contour-clair); border-radius: var(--mk-rayon-md); background: var(--mk-surface); color: var(--mk-texte-secondaire); font: inherit; font-size: 13px; line-height: 1.25; text-align: center; cursor: pointer; }
.depot-photo-vide:hover { border-color: var(--mk-vert-cta); color: var(--mk-vert-marque); }
.depot-photo-vide strong { color: var(--mk-encre); font-size: 13px; }
.depot-photo-vide.requis { border-color: var(--mk-vert-marque); }
.depot-photo-vide.en-cours { cursor: progress; border-style: solid; background: var(--mk-surface-basse); }
.depot-photo-plein { margin: 0; width: 100%; height: 100%; border-radius: var(--mk-rayon-md); overflow: hidden; background: var(--mk-surface-moyenne); position: relative; }
.depot-photo-plein img { width: 100%; height: 100%; object-fit: cover; display: block; }
.depot-photo-plein figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, var(--mk-encre)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.depot-photo-retirer { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--mk-encre); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.depot-photo-remplacer { position: absolute; top: 6px; left: 6px; border: 0; border-radius: var(--mk-rayon-pilule); background: var(--mk-surface); color: var(--mk-encre); font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer; }

/* ── Estimation et prix ────────────────────────────────────────── */
.depot-estim { margin: 6px 0 10px; }
.depot-estim .range { font-size: 14px; color: var(--mk-texte); font-weight: 600; }
.depot-estim-detail { margin: 6px 0 0; font-size: 13px; color: var(--mk-texte-secondaire); }
.depot-estim-detail:empty { display: none; }
/* Défaut majeur déclaré (accident non réparé) : cote indicative, inspection au RDV */
.estim-inspection .depot-estim-detail { color: #8a5a00; font-weight: 600; }
.depot-estim .btn { margin-top: 10px; }
.depot-champ-prix { max-width: 280px; margin-top: 18px; }
.depot-prix-saisie { position: relative; }
.depot-prix-saisie input { padding-right: 36px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.depot-prix-saisie span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--mk-texte-secondaire); font-weight: 600; }
.depot-curseur { margin: 4px 0 6px; }
.depot-curseur input[type="range"] { width: 100%; accent-color: var(--mk-vert-cta); margin: 0; cursor: pointer; }
.depot-curseur-reperes { position: relative; height: 18px; }
.depot-repere { position: absolute; top: 0; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: var(--mk-vert-marque); white-space: nowrap; }
.depot-repere::before { content: ''; position: absolute; left: 50%; top: -5px; width: 1.5px; height: 5px; background: var(--mk-vert-marque); }
.depot-curseur-bornes { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mk-texte-secondaire); font-variant-numeric: tabular-nums; }
.depot-positionnement { margin: 8px 0 0; font-size: 14.5px; font-weight: 600; color: var(--mk-vert-marque); min-height: 1.5em; }
.depot-positionnement.alerte { color: var(--mk-ambre-texte); }

/* ── HistoVec ──────────────────────────────────────────────────── */
.depot-histovec { border: 1px solid var(--mk-bordure); border-radius: var(--mk-rayon-carte); padding: 14px 18px 4px; margin: 18px 0 14px; min-width: 0; }
.depot-histovec legend { font-size: 15px; font-weight: 700; color: var(--mk-encre); padding: 0 6px; margin-left: -6px; }
.depot-histovec legend .pill { margin-left: 6px; vertical-align: middle; }
.depot-details { margin: 0 0 14px; font-size: 14px; }
.depot-details summary { cursor: pointer; font-weight: 600; color: var(--mk-vert-marque); }
.depot-details ol { margin: 10px 0; padding-left: 20px; display: grid; gap: 4px; color: var(--mk-texte); }
.depot-details a { font-weight: 600; }
.depot-optin { align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.depot-optin input { flex: none; margin-top: 2px; }

/* ── Fin ───────────────────────────────────────────────────────── */
/* Écran final (« Votre annonce est en ligne » / correction enregistrée) : la
   colonne des étapes (aside) disparaît. Sans ça, la grille garde ses DEUX
   colonnes (230px + 720px) et le contenu tombe dans la colonne étroite de
   230px → carte minuscule collée à gauche. On repasse donc à une seule colonne
   centrée, et on masque explicitement l'aside. */
.depot-cadre:has(.depot-fin:not([hidden])) { grid-template-columns: minmax(0, 720px); justify-content: center; }
.depot-cadre:has(.depot-fin:not([hidden])) .depot-cote { display: none; }

.depot-fin { text-align: center; }
.depot-fin-coche { position: relative; width: 56px; height: 56px; border-radius: 50%; background: var(--mk-surface-moyenne); margin: 4px auto 14px; }
.depot-fin-coche::after { content: ''; position: absolute; left: 19px; top: 18px; width: 18px; height: 10px; border-left: 3px solid var(--mk-vert-marque); border-bottom: 3px solid var(--mk-vert-marque); transform: rotate(-45deg); }
.depot-points-gauche { text-align: left; max-width: 560px; margin-inline: auto; }
.depot-fin .depot-sous-titre { margin-top: 18px; }
.depot-actions-fin { justify-content: center; margin-top: 6px; }

/* ── Fenêtre « application » ───────────────────────────────────── */
.depot-incite-texte { color: var(--mk-texte); font-size: 15px; line-height: 1.55; margin: 0 0 12px; }
.depot-incite-note { color: var(--mk-texte-secondaire); font-size: 14px; }
.depot-incite-actions { display: grid; gap: 10px; margin-top: 16px; }
.depot-incite-actions .btn { width: 100%; }
#app-incite-box:focus { outline: none; }
/* 21/10 : version « offre de lancement en tête » (choisie par Simon). */
.depot-incite-pastille { display: inline-block; background: var(--mk-surface-basse); color: var(--mk-vert-marque); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 0 0 10px; }
.depot-incite-titre { font-size: 24px; line-height: 1.2; margin: 0 28px 8px 0; }
.depot-incite-montant { color: var(--mk-vert-cta); white-space: nowrap; }
.depot-incite-sous-titre { color: var(--mk-texte-secondaire); margin-bottom: 14px; }
.depot-incite-atouts { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 10px; }
.depot-incite-atouts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--mk-texte); }
.depot-incite-mention { font-size: 12.5px; margin: 14px 0 0; }
.depot-incite-mention a { color: inherit; text-decoration: underline; }

/* ── Mode correction (/deposer?modifier=<id>) ──────────────────── */
.depot-tete .depot-correction-vehicule { margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--mk-encre); overflow-wrap: anywhere; }
.depot input[readonly] { background: var(--mk-surface-basse); color: var(--mk-texte-secondaire); cursor: default; }
.depot-chargement { margin: 0; font-size: 15px; color: var(--mk-texte-secondaire); }
#panel-plaque .depot-specs { margin-top: 14px; }

/* ── Écrans étroits ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .depot { padding-block: 16px 48px; }
  .depot-cadre { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .depot-cote { position: static; padding: 12px 14px; }
  .depot-etape-n { margin: 0 0 8px; }
  /* La colonne devient une barre à six segments ; seul l'intitulé courant reste lisible. */
  .depot-etapes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .depot-etapes li > span, .depot-etape-btn { position: relative; padding: 10px 0 0; border-radius: 0; background: none; min-height: 14px; }
  .depot-etapes li.courant > span { background: none; }
  .depot-etapes li > span::before, .depot-etape-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--mk-surface-haute); }
  .depot-etapes li.fait > span::before, .depot-etapes li.fait .depot-etape-btn::before { background: var(--mk-vert-marque); }
  .depot-etapes li.courant > span::before { background: var(--mk-vert-cta); }
  .depot-etape-num { display: none; }
  .depot-etape-nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .depot-recommencer { margin: 10px 0 0; }
}
@media (max-width: 640px) {
  .depot-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .depot-carte { padding: 20px 16px; border-radius: var(--mk-rayon-carte); }
  .depot-specs { grid-template-columns: minmax(0, 1fr); }
  .depot-specs li:nth-child(odd) { border-right: 0; }
  .depot-nav { flex-direction: column-reverse; }
  .depot-nav .btn, .depot-actions .btn { width: 100%; min-width: 0; }
  .depot-champ-prix { max-width: none; }
  .depot-option, .depot-option span { width: 100%; }
}
