/* ==========================================================================
   Logisolution — parcours de soumission en 5 étapes
   ========================================================================== */

body.page-soumission { background: var(--blanc); }

.parcours { display: flex; min-height: 100vh; flex-direction: column; }

/* En-tête mobile */
.parcours__entete-mobile {
  background: var(--marine);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 1024px) { .parcours__entete-mobile { display: none; } }
.parcours__entete-mobile > div { display: flex; align-items: center; justify-content: space-between; }
.parcours__entete-mobile img { height: 26px; width: auto; }
.mini-bouton {
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--blanc);
}

.parcours__corps { display: flex; flex: 1; flex-direction: column; }
@media (min-width: 1024px) { .parcours__corps { flex-direction: row; } }

/* Panneau latéral */
.panneau {
  position: relative;
  display: none;
  overflow: hidden;
  background: var(--marine);
  padding: 40px;
}
@media (min-width: 1024px) {
  .panneau { display: flex; width: 45%; flex-direction: column; justify-content: space-between; }
}
@media (min-width: 1280px) { .panneau { width: 42%; padding: 56px; } }
.panneau > * { position: relative; z-index: 10; }
.panneau__logo { height: 28px; width: auto; }
.panneau__milieu { display: flex; flex: 1; align-items: center; }
.panneau__milieu > div { width: 100%; }
.panneau__milieu > div > * + * { margin-top: 16px; }
.panneau__etape {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bleu-clair);
}
.panneau__titre {
  font-size: 48px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blanc);
  line-height: 1.05;
}
@media (min-width: 1280px) { .panneau__titre { font-size: 60px; } }
.panneau__desc { max-width: 28rem; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.7); }
@media (min-width: 1280px) { .panneau__desc { font-size: 16px; } }
.panneau__puces { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.panneau__puces li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(90,162,232,.6);
  background: rgba(44,116,196,.18);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gris-fond);
}
.panneau__puces svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--bleu-clair); }

/* Jauge de progression */
.jauge { display: flex; gap: 8px; }
.jauge__seg { flex: 1; min-width: 0; }
.jauge__barre { height: 6px; border-radius: 999px; background: rgba(255,255,255,.15); transition: background-color .5s ease; }
.jauge__seg[data-etat="fait"] .jauge__barre { background: var(--bleu); }
.jauge__seg[data-etat="courant"] .jauge__barre { background: var(--bleu-clair); }
.jauge__nom {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .3s ease;
}
.jauge__seg[data-etat="fait"] .jauge__nom { color: rgba(255,255,255,.8); }
.jauge__seg[data-etat="courant"] .jauge__nom { color: var(--blanc); }

/* Colonne principale */
.parcours__principal { display: flex; flex: 1; flex-direction: column; background: var(--blanc); }
@media (min-width: 1024px) { .parcours__principal { overflow-y: auto; } }
.parcours__topbar { display: none; justify-content: flex-end; padding: 24px; }
@media (min-width: 1024px) { .parcours__topbar { display: flex; } }
.bouton-langue {
  border-radius: 8px;
  border: 1px solid var(--gris-bord);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}
.bouton-langue:hover { background: var(--gris-fond); }

/* Bandeau de progression mobile */
.bandeau-mobile { background: var(--marine); padding: 12px 16px; }
@media (min-width: 1024px) { .bandeau-mobile { display: none; } }
.bandeau-mobile__etape {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--bleu-clair);
}
.bandeau-mobile h2 { margin-top: 2px; font-size: 20px; font-weight: 900; text-transform: uppercase; color: var(--blanc); }
.bandeau-mobile p { margin-top: 4px; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.6); }
.bandeau-mobile .jauge { margin-top: 12px; }
.bandeau-mobile .jauge__nom { display: none; }

.parcours__scene {
  display: flex;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
}
@media (min-width: 640px) { .parcours__scene { padding-inline: 24px; } }
@media (min-width: 1024px) { .parcours__scene { align-items: center; padding: 8px 40px; } }
@media (min-width: 1280px) { .parcours__scene { padding-inline: 64px; } }
.parcours__carte { width: 100%; max-width: 36rem; animation: monte .25s ease both; }
@keyframes monte { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.etape-titre { font-size: 20px; font-weight: 900; text-transform: uppercase; }
@media (min-width: 640px) { .etape-titre { font-size: 24px; } }
.etape-sous { margin-top: 8px; font-size: 14px; color: rgba(32,39,46,.7); }
.etape-puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.etape-puces li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(31,93,163,.3);
  background: rgba(44,116,196,.06);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bleu-fonce);
}
.etape-puces svg { width: 14px; height: 14px; }

/* Choix (simple et multiple) */
.choix { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .choix--deux { display: grid; grid-template-columns: 1fr 1fr; } }
.choix__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--gris-bord);
  background: var(--blanc);
  padding: 16px;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.choix__btn:hover { border-color: var(--bleu); box-shadow: 0 6px 16px -8px rgba(32,39,46,.3); }
.choix__btn[aria-pressed="true"], .choix__btn[data-actif="true"] {
  border-color: var(--bleu);
  background: rgba(44,116,196,.07);
}
.choix__case {
  display: flex;
  height: 22px; width: 22px;
  flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: 6px;
  border: 1.5px solid var(--gris-bord);
  color: transparent;
  transition: all .15s ease;
}
.choix__btn[aria-pressed="true"] .choix__case {
  background: var(--bleu);
  border-color: var(--bleu);
  color: var(--blanc);
}
.choix__case svg { width: 14px; height: 14px; }
.choix__texte { flex: 1; min-width: 0; }
.choix__label { display: block; font-size: 15px; font-weight: 600; }
.choix__note { display: block; font-size: 13px; color: var(--gris-texte); margin-top: 3px; }

/* Curseur d'année */
.annee-affichee { margin-top: 32px; text-align: center; }
.annee-affichee__valeur { font-size: 56px; font-weight: 900; line-height: 1; color: var(--marine); }
.annee-affichee__etiquette {
  display: inline-block;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(44,116,196,.1);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bleu-fonce);
}
.annee-affichee__age { margin-top: 8px; font-size: 13px; color: var(--gris-texte); }

.curseur { margin-top: 28px; }
.curseur input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--gris-bord);
  outline: none;
}
.curseur input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--bleu);
  border: 3px solid var(--blanc);
  box-shadow: 0 2px 8px rgba(32,39,46,.35);
  cursor: pointer;
}
.curseur input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--bleu);
  border: 3px solid var(--blanc);
  box-shadow: 0 2px 8px rgba(32,39,46,.35);
  cursor: pointer;
}
.curseur__reperes { margin-top: 12px; display: flex; justify-content: space-between; font-size: 12px; color: var(--gris-texte); }
.lien-passer {
  margin-top: 24px;
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--bleu-fonce);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Formulaire */
.formulaire { margin-top: 28px; display: grid; gap: 16px; }
@media (min-width: 640px) { .formulaire { grid-template-columns: 1fr 1fr; } }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: 13px; font-weight: 600; }
.champ label span { color: var(--rouge); }
.champ input {
  border-radius: 10px;
  border: 1px solid var(--gris-bord);
  background: var(--blanc);
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.champ input:focus {
  outline: none;
  border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(44,116,196,.15);
}
.champ input:invalid:not(:placeholder-shown) { border-color: var(--rouge); }

.groupe-moment { grid-column: 1 / -1; }
.groupe-moment > p { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.groupe-moment > p span { font-weight: 400; color: var(--gris-texte); }
.moments { display: flex; flex-wrap: wrap; gap: 8px; }
.moment {
  border-radius: 999px;
  border: 1px solid var(--gris-bord);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s ease;
}
.moment[aria-pressed="true"] { border-color: var(--bleu); background: rgba(44,116,196,.08); color: var(--bleu-fonce); font-weight: 600; }

.consentement { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; }
.consentement input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--bleu); flex-shrink: 0; }
.consentement__texte label { font-size: 13px; font-weight: 600; display: block; }
.consentement__texte label span { color: var(--rouge); }
.consentement__texte p { margin-top: 4px; font-size: 11px; line-height: 1.6; color: var(--gris-texte); }

/* Barre de navigation d'étape */
.nav-etape { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.btn-retour {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 10px;
  border: 1px solid var(--gris-bord);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.btn-retour:hover { background: var(--gris-fond); }
.btn-suivant {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px;
  background: var(--bleu);
  color: var(--blanc);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color .18s ease, transform .1s ease;
}
.btn-suivant:hover { background: var(--bleu-fonce); }
.btn-suivant:active { transform: scale(.98); }
.btn-suivant:disabled { opacity: .45; cursor: not-allowed; }
.btn-suivant svg, .btn-retour svg { width: 18px; height: 18px; }

.message-erreur { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--rouge); line-height: 1.6; }
.message-erreur[hidden] { display: none; }
.message-erreur a { text-decoration: underline; text-underline-offset: 3px; }

/* Indicateur d'envoi dans le bouton de soumission */
.filet {
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: var(--blanc);
  animation: tourne .7s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .filet { animation-duration: 2s; } }

/* Écran de fin */
.fin { text-align: center; }
.fin__icone {
  margin: 0 auto 24px;
  display: flex;
  height: 72px; width: 72px;
  align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(44,116,196,.12);
  color: var(--bleu);
}
.fin__icone svg { width: 36px; height: 36px; }
.fin h2 { font-size: 26px; font-weight: 900; text-transform: uppercase; }
.fin p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--gris-texte); }
.fin__recap {
  margin-top: 28px;
  border-radius: 14px;
  border: 1px solid var(--gris-bord);
  background: var(--gris-fond);
  padding: 20px;
  text-align: left;
}
.fin__recap h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gris-texte); margin-bottom: 12px; }
.fin__recap dl { display: grid; gap: 10px; }
.fin__ligne { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; border-bottom: 1px solid var(--gris-bord); padding-bottom: 10px; }
.fin__ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.fin__ligne dt { color: var(--gris-texte); }
.fin__ligne dd { font-weight: 600; text-align: right; }
.fin .btn { margin-top: 28px; padding: 13px 26px; }
.fin .btn svg { width: 18px; height: 18px; }
