@charset "UTF-8";
/* CSS Document */
main.content {
  transition: max-width 0.3s ease;
}

/* mode Fillout */
main.content.is-fillout {
  max-width: 1000px; /* ajuste ici */
}

.hidden {
  display: none !important;
}

.flow-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#fillout-container {
  width: 100%;
  max-width: 820px;   /* 👈 ajuste ici (720–820 selon ton goût) */
  margin: 0 auto;
}

#fillout-container iframe,
#fillout-iframe {
  width: 100%;
  min-height: 700px;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: white;
}

/* Mode Fillout : largeur étendue */
.flow-container.is-fillout {
  max-width: 800px; /* libère la contrainte */
}

.flow-container.is-fillout #fillout-container {
  width: 100%;
  max-width: 760px; /* ajuste ici */
  margin: 0 auto;
}

.fillout-layer {
  width: 100%;
  max-width: 720px;   /* ⬅️ plus large */
  margin: 40px auto 0;
}

.page-index {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  max-width: none;
}
/* Containers structurels : transparents */
.flow-container,
.vehicle-card,
.info {
  background: transparent;
}

/* Styles “page formulaire” uniquement */
.page-flow {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;

  background-image: url("../img/background-1920.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  width: 100%;
  min-height: 100vh;

  margin: 0;
  padding: 0;
}


.page-flow .flow-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.flow-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 120px;
  box-sizing: border-box;
}

/* ===== ESPACEMENT BAS DE PAGE ===== */
.page-bottom-spacer {
  height: 120px;   /* ajuste si besoin */
  width: 100%;
  pointer-events: none;
}

/* ===== GOOGLE AUTOCOMPLETE ALIGNMENT ===== */

.pac-container {
  box-sizing: border-box;
  z-index: 9999 !important;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.field {
  position: relative;
  width: 100%;
}
.field input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.address-field {
  position: relative;
  width: 100%;
}

/* Colonne gauche */
.sidebar {
  width: 33.333%;
  padding: 40px;
  background: #e95318; /* f8f9fb */
  box-sizing: border-box;
  text-align: center;
}

/* Desktop large : logo stable */
.page-index .sidebar .logo {
  width: 100%;
  max-width: 350px;   /* taille design */
  height: auto;
}

.sidebar h2 {
  margin-bottom: 15px;
  font-size: 2em;
  letter-spacing: 0.1em;
  font-weight: 100;
  color: #fff;
}

.sidebar p {
  margin-bottom: 25px;
  color: #555;
}

.sidebar .steps {
  list-style: none;
  padding: 0;
}

.sidebar .steps li {
  margin-bottom: 10px;
}


h2 {
  text-align: center;
  margin-bottom: 32px;
}
input, button {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  font-size: 16px;
}
button {
  cursor: pointer;
}
.hidden {
  display: none !important;
}
.info {
  background: transparent;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
  font-size: 14px;
}

/* Conteneur plaque */
.plate-wrapper {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 40px auto; /* centre la plaque */
}

/* Image plaque */
.plate-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Input texte */
#plate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);

  width: 100%;
  height: 100%;

  background: transparent;
  border: none;
  outline: none;

  font-size: 40px;
  font-weight: 600;
  letter-spacing: 0px;
  text-transform: uppercase;
  text-align: center;
  padding-left: 18px;

  color: #000;
  caret-color: #000;
}

/* Placeholder */
#plate:placeholder {
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0px;
}

/* Focus */
#plate:focus {
  outline: none;
}
/* Spinner animation*/
.loading {
  margin-top: 20px;
  text-align: center;
}

.loading.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border: 5px solid #e0e0e0;
  border-top: 5px solid #000;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.layout {
  display: flex;
  min-height: 100vh;
}


/* Colonne droite */
.content {
  width: 66.666%;
  position: relative;
}

.content iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* ===== LAYOUT 2 COLONNES (FORCÉ) ===== */

.layout {
  display: flex !important;
  flex-direction: row !important;
  width: 100%;
  min-height: 100vh;
}

/* Colonne gauche */
.sidebar {
  flex: 0 0 33.333% !important;
  max-width: 33.333%;
  box-sizing: border-box;
}

/* Colonne droite */
.content {
  flex: 0 0 66.666% !important;
  max-width: 66.666%;
  box-sizing: border-box;
}

/* Iframe */
.content iframe {
  display: block;
  width: 100%;
  height: 100vh;
  border: none;
}
/* ===== FULL PAGE LAYOUT ===== */

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
}

.layout {
  position: fixed;        /* 🔥 clé */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
  z-index: 1;
}

/* FLOW : centrage dans l’iframe */
.page-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;

  /* IMPORTANT : on annule le max-width/margins appliqués au body */
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Le conteneur centré (c’est lui qui garde la largeur) */
.page-flow .flow-container {
  width: 100%;
  max-width: 600px;      /* ou 720 si tu préfères */
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.engagement-block {
  margin: 8px 0 16px 0;
}
.engagement-text {
  font-size: 15px;
  font-weight: 400;
  color: #444;
  line-height: 1.6;
  margin: 0 0 16px 0;
}
.engagement-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  line-height: 1.5;
}
.engagement-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0 0;
  cursor: pointer;
  accent-color: #f15a24;
}

/* ===== MOBILE LAYOUT ===== */
@media (max-width: 900px) {

  .layout {
    position: relative;      /* on sort du fixed */
    flex-direction: column;  /* empile */
    height: auto;
    min-height: 100vh;
  }

  /* Sidebar en haut */
  .sidebar {
    width: 100%;
    max-width: none;
    padding: 24px 20px;
  }

  /* Contenu iframe en dessous */
  .content {
    width: 100%;
    max-width: none;
  }

  .content iframe {
    height: auto;
    min-height: 100vh;
  }
	
  .page-flow {
    align-items: flex-start;   /* plus naturel sur mobile */
    padding-top: 20px;
  }

  .page-flow .flow-container {
    max-width: 100%;
    padding: 24px 16px;
  }
/*	
  button {
    font-size: 17px;
    padding: 16px;
  }
*/
  input, select {
    font-size: 16px; /* évite le zoom iOS */
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fb;
  }
}

/* ===== BOUTON STYLE FLEXIDRIVER ===== */

.page-flow button {
  appearance: none;
  -webkit-appearance: none;

  background-color: #ffffff;
  color: #000000;

  border: 1.5px solid #000000;
  border-radius: 6px; /* très proche du site */

  padding: 12px 24px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

/* Hover / focus */
.page-flow button:hover,
.page-flow button:focus-visible {
  background-color: #000000;
  color: #ffffff;
}

/* Active (clic) */
.page-flow button:active {
  transform: translateY(1px);
}

/* Disabled */
.page-flow button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-flow .cta-primary {
  background-color: #000;
  color: #fff;
}

.page-flow .cta-primary:hover {
  background-color: #222;
}

/* ===== BOUTONS FLOW — LARGEUR AUTO ===== */

/* ===== FLOW : CENTRAGE DES CTA ===== */
.page-flow .flow-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  overflow-x: hidden; /* sécurité locale */
}

/* Boutons : largeur minimale + centrés */
.page-flow button{
  width: fit-content !important;  /* 🔥 écrase le width:100% global */
  display: block !important;
  margin: 12px auto !important;   /* 🔥 centre */
}

/* ===== TYPE DE DEMANDE ===== */

/* ===== SELECT STYLE FLEXIDRIVER ===== */
/* ===== TYPE DE DEMANDE — INLINE RADIOS ===== */

.request-type-inline {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px 0;
}

/* Titre */
.request-type-inline .field-label {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  white-space: nowrap;
}

/* Groupe radios */
.radio-group {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Option radio */
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  color: #222;
}

/* Input radio natif */
.radio-option input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #f15a24; /* orange FlexiDriver */
}

/* Texte */
.radio-option span {
  cursor: pointer;
}

/* ===== FORM SECTIONS ===== */

.form-section {
  margin-bottom: 26px;
  width: 100%;
  box-sizing: border-box;
}

/* Titre de section */
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  margin: 0 0 20px 0;
  text-align: left;
}

/* Ligne de séparation */
.section-separator {
  width: 100%;
  border: none;
  height: 1px;
  background-color: #e5e5e5;
  margin: 0 0 24px 0;
}

/* ===== VEHICLE RESULT CARD ===== */

.vehicle-section {
  width: 100%;
  max-width: 800px;      /* 🔥 plus large que 600 */
  margin: 32px auto;
  padding: 20px 0px 0px 0px;
  box-sizing: border-box;
}

.vehicle-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr; /* ✅ sans guillemets */
  gap: 2px;
  align-items: center;
}

/* Colonne gauche */
.vehicle-media {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vehicle-logo {
  max-height: 85px;
  height: 100%;
  width: auto;
  margin-bottom: 0px;
}

.vehicle-photo {
  width: 300px;
  height: auto;
}

/* Colonne droite : empilement vertical */
.vehicle-details {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 10px;
}

/* Ligne label + valeur */
.vehicle-details .detail {
  display: flex;
  gap: 8px;
}

/* Label */
.vehicle-details .detail span {
  min-width: 140px;
}

/* Valeur */
.vehicle-media,
.vehicle-details {

  box-sizing: border-box;
}
.vehicle-section {
  width: 100%;
  max-width: 720px;     /* 🔥 plus large que le form */
  margin: 0;
}

.vehicle-card {
  align-self: stretch;
}

.vehicle-media,
.vehicle-details {
  align-self: flex-start;
}

.vehicle-media {
  align-items: center;
  justify-content: center;
}

.vehicle-details {
  padding-left: 0px;
}

.result-text {
  font-size: 16px;
  font-weight: 400;
  color: #222;
  line-height: 1.4;
}

/* ===== RESULT PREVIEW ALIGNMENT FIX ===== */

#resultPreview {
  margin: 0;              /* 🔥 supprime le décalage */
  padding: 0;             /* 🔥 */
  width: 100%;
  box-sizing: border-box;
}

/* ===== TYPO RESULT SYSTEM ===== */

/* Titres / labels (noir) */
.result-label {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  display: block;
  margin-bottom: 2px;
}

/* Valeurs / résultats (gris) */
.result-value {
  font-size: 16px;
  font-weight: 400;
  color: #666;              /* gris lisible */
  line-height: 1.4;
  margin-bottom: 16px;
}
.result-value.bold {
  font-weight: 800;
  color: #111;
}

/* Optionnel : groupe de résultat */
.result-block {
  margin-bottom: 8px;
}

/* ===== IMMATRICULATION INLINE RESULT ===== */

/* Label (noir) */
.immat-label {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

/* Valeur (gris) */
.immat-value {
  font-size: 16px;
  font-weight: 400;
  color: #666;
}

/* ===== PLAQUE LOCKED (READ ONLY) ===== */

#plate.readonly {
  pointer-events: none;   /* empêche clic / sélection */
  opacity: 0.7;           /* feedback visuel */
  cursor: default;
}

/* ===== FORCE HIDE BUTTON (ANTI CSS GLOBAL) ===== */
.page-flow button.hidden {
  display: none !important;
}

/* ===== RESULT INLINE (label + valeur sur une ligne) ===== */
.result-inline {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* ===== BLOC PRIX PRESTATION ===== */
.price-block {
  border-left: 3px solid #f15a24;
  padding-left: 12px;
  margin-top: 24px;
}

.price-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.price-ttc {
  font-size: 28px;
  font-weight: 800;
  color: #f15a24;
  line-height: 1.2;
}

.price-ttc small {
  font-size: 15px;
  font-weight: 600;
}

.price-ht {
  font-size: 14px;
  color: #999;
}

/* CTA FINAL — pleine largeur, écrase le fit-content global */
#continueBtn {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  margin: 16px 0 0 0 !important;

  background-color: #f15a24 !important; /* orange FlexiDriver */
  color: #fff !important;

  border: none !important;
  border-radius: 6px !important;

  padding: 16px 24px !important;

  font-size: 16px !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  cursor: pointer;
	
  box-shadow: 0 6px 16px rgba(241, 90, 36, 0.25);
}

/* Hover */
#continueBtn:hover {
  background-color: #e04f1f !important;
}


/* Active */
#continueBtn:active {
  transform: translateY(1px);
}

#resultActions {
  width: 100%;
}

#resultActions .btn-primary {
  width: 100% !important;
}

.steps-wrapper {
  max-width: 760px;
  margin: 0 auto;        /* centre horizontalement */
  width: 100%;
  padding: 20px 0;
  background: #fff;
}

.steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  gap: 32px;
  width: 100%;
}

/* ligne horizontale */
.step {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 0 4px;
}

/* 
Stepper aligné sur le comportement Fillout :
- trait AVANT le cercle
- aucun ::after
- labels inline
⚠️ ne pas réintroduire d'ancien système de trait
*/
.step:not(:first-child) .step-label::before {
  content: "";
  position: absolute;
  left: calc(-100% - 40px); /* depuis la fin du label précédent */
  width: calc(100% - 4px); /* s’adapte au label */
  top: 50%;
  height: 2px;
  background: rgba(0, 0, 0, 0.15);
  transform: translateY(-50%);
}
/* état actif */
.step.active {
  margin-left: 20px;
}

.step.completed::before,
.step.active::before {
  background: #E06A2E;
}

/* pas de ligne avant le premier */
.step:first-child::before {
  display: none;
}

/* pas de ligne après le dernier */
.step:last-child::after {
  display: none;
}

/* Completed: on "supprime" le cercle extérieur */
.step.completed .step-circle {
  background: transparent;
  border-color: transparent;
  color: transparent; /* cache le ✓ */
  position: relative;
}

/* Dot intérieur (seul élément visible) */
.step.completed .step-circle::after {
  content: "";
  width: 36px;          /* 👈 taille du disque */
  height: 36px;
  background: rgba(241, 90, 34, 0.55);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.step.completed .step-circle::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 500;
  z-index: 1;
  line-height: 1;
}

.step.completed .step-label {
  color: rgba(241, 90, 34, 0.55);
  font-weight: 500;
}

/* Lignes de progression atténuées */
.step.completed::after {
  background: rgba(241, 90, 34, 0.45);
}

.step.completed + .step::before {
  background: rgba(241, 90, 34, 0.45);
}

/* cercle */
.step-circle {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #dcdcdc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  position: relative;
  z-index: 2;
}

/* label */
.step-label {
  margin: 0;
  position: relative;
  font-size: 14px;
  font-weight: 400;
  color: #9b9b9b;
  white-space: nowrap;
  line-height: 1;
}

.step-circle::before,
.step-circle::after {
  content: none !important;
}

.step.active .step-circle {
  border-color: #f15a22;
  background: #fff;
}

.step.active .step-label {
  color: #E06A2E;
  font-weight: 400;
}
/* inner dot pour l'étape active */
.step.active .step-circle {
  position: relative;
}

.step.active .step-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #E06A2E; /* orange FlexiDriver */
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ✅ DOT ACTIF — override final (bulletproof) */
.steps .step.active .step-circle{
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-block;
  overflow: visible;
}

.steps .step.active .step-circle::after{
  content: "" !important;
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  width: 8px !important;
  height: 8px !important;
  background: #E06A2E !important;
  border-radius: 999px !important;
  transform: translate(-50%, -50%) !important;
  display: block !important;
  opacity: 1 !important;
}


.hidden {
  display: none !important;
}

/* ============================== MOBILE : FULL FOCUS FLOW ============================== */
@media (max-width: 768px) {
  .page-bottom-spacer {
    height: 96px;
  }
}
@media (max-width: 768px) {
  .step:not(:first-child) .step-label::before {
  left: calc(-20% - 60px); /* depuis la fin du label précédent */
  width: calc(20% + 18px); /* s’adapte au label */
  }
}


@media (min-width: 901px) {
  .vehicle-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

  .vehicle-media {
    align-items: center;
    justify-content: center;
  }


@media (max-width: 480px) {
  #plate {
    font-size: 34px;
    letter-spacing: 2px;
  }
}

/* ===== SIDEBAR CENTRÉE (DESKTOP) ===== */

.page-index .sidebar {
  display: flex;
  align-items: center;       /* centrage vertical */
}

/* Contenu interne de la sidebar */
.page-index .sidebar-inner {
  width: 100%;
}
/* ===== MOBILE : SIDEBAR MASQUÉE ===== */
@media (max-width: 900px) {

  .page-index .sidebar {
    display: none;
  }

  .page-index .content {
    width: 100%;
    max-width: 100%;
  }

  .page-index .content iframe {
    width: 100%;
    min-height: 100vh;
  }
}

.mobile-header {
  display: none;
  text-align: center;
  padding: 12px 0;
}

.mobile-header img {
  height: 32px;
}

@media (max-width: 900px) {
  .mobile-header {
    display: block;
  }
}
/* ===== MOBILE : FULL FOCUS FLOW ===== */
@media (max-width: 900px) {

  /* On sort du layout app desktop */
  .page-index .layout {
    position: relative !important;
    flex-direction: column !important;
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  /* Sidebar complètement supprimée */
  .page-index .sidebar {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Le contenu prend toute la place */
  .page-index .content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .page-index .content iframe {
    width: 100%;
    min-height: 100vh;
    display: block;
  }
}
/* Desktop étroit / split screen */
@media (max-width: 900px) {
  .page-index .sidebar .logo {
    max-width: clamp(140px, 18vw, 220px);
  }
}

@media (max-width: 600px) {
  .page-flow {
    padding-top: 32px;
  }
}

/* ===== FLOW : BODY RESET ===== */
body.page-flow {
    max-width: none;
    margin: 0;
    padding: 0;
    display: block; /* 🔥 annule tout flex éventuel */
}

