/* Questionnaire « Je planifie mon voyage » — parcours de demande en plusieurs étapes
   (/l/<pays>/enquiry/…) avec les jetons de styles.css. */

.ee-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.ee {
  flex: 1; display: grid; grid-template-columns: 1fr 476px; gap: 24px;
  width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 24px 24px;
}

/* --- Photo de gauche avec tracé en pointillés --- */
.ee__visual { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 560px; background: var(--surface-container-highest); }
.ee__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.ee__route { position: absolute; left: 0; right: 0; top: 42%; width: 100%; height: 22%; pointer-events: none; }
.ee__route path { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 9 9; stroke-linecap: round; }
.ee__visual-title { display: none; }

/* --- Carte de droite --- */
.ee__card {
  display: flex; flex-direction: column; height: calc(100vh - 84px); min-height: 640px; max-height: 860px;
  background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--radius-xl); overflow: hidden;
}
.ee__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--outline-variant); }
.ee__head .logo--selamat { width: 150px; height: 21px; color: var(--primary); }
.ee__pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 8px 16px;
  border: 1px solid #dcdad2; border-radius: var(--radius-full); font-size: 14px; line-height: 20px; font-weight: 500;
}
.ee__pill svg { width: 18px; height: 18px; }

.ee__body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 28px 24px 16px; overflow-y: auto; }
.ee__step { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.ee__step--in { animation: ee-in .25s ease; }
@media (prefers-reduced-motion: reduce) { .ee__step--in { animation: none; } }
.ee__step[hidden] { display: none; }
@keyframes ee-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ee__title { font-family: var(--font-serif); font-size: 36px; line-height: 44px; font-weight: 400; text-align: center; padding: 0 8px; text-wrap: balance; }
.ee__q { font-size: 22px; line-height: 28px; font-weight: 500; text-align: center; text-wrap: balance; }
.ee__hint { display: flex; align-items: flex-start; gap: 8px; margin-top: -16px; color: var(--on-surface-variant); font-size: 14px; line-height: 20px; text-align: center; }
.ee__hint svg, .ee__note svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--primary); margin-top: 1px; }

/* compteurs */
.ee-counters { width: 100%; padding: 8px 16px; border: 1px solid var(--outline-variant); border-radius: var(--radius-xl); }
.ee-counter { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 16px 0; }
.ee-counter + .ee-counter { border-top: 1px solid var(--surface-container-highest); }
.ee-counter__label { font-size: 16px; line-height: 24px; font-weight: 500; }
.ee-counter__sub { display: block; color: var(--on-surface-variant); font-size: 14px; line-height: 20px; }
.ee-counter__ctrl { display: flex; align-items: center; gap: 8px; }
.ee-round {
  width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid var(--outline);
  display: inline-flex; align-items: center; justify-content: center; color: var(--on-surface-variant);
  transition: background .15s;
}
.ee-round:hover:not(:disabled) { background: rgba(14, 124, 134, .08); }
.ee-round:disabled { border-color: var(--surface-container-highest); color: var(--surface-container-highest); }
.ee-round svg { width: 20px; height: 20px; }
.ee-counter__val { width: 20px; text-align: center; font-size: 16px; line-height: 24px; font-weight: 500; }

/* options (cartes) */
.ee-options { width: 100%; display: grid; gap: 8px; }
.ee-options--2 { grid-template-columns: 1fr 1fr; }
.ee-options--3 { grid-template-columns: repeat(3, 1fr); }
.ee-opt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
  border: 1px solid var(--outline-variant); border-radius: var(--radius-xl); text-align: left;
  font-size: 16px; line-height: 24px; color: var(--on-surface); background: transparent;
  transition: background .15s, border-color .15s;
}
.ee-opt:hover { background: rgba(14, 124, 134, .05); }
.ee-opt[aria-pressed="true"], .ee-opt[aria-checked="true"] { background: var(--secondary-container); border-color: var(--secondary-container); }
.ee-opt > svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--on-surface-variant); }
.ee-opt__text { display: flex; flex-direction: column; }
.ee-opt__sub { font-size: 13px; line-height: 18px; color: var(--on-surface-variant); }
.ee-opt__star { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; }
.ee-opt--tall { min-height: 64px; }

/* cartes photo avec case à cocher */
.ee-photo { padding: 0; gap: 0; overflow: hidden; min-height: 56px; }
.ee-photo img { width: 56px; height: 56px; object-fit: cover; flex-shrink: 0; }
.ee-photo .ee-opt__text { flex: 1; padding: 0 16px; }
.ee-photo .ee-check { margin-right: 16px; }
.ee-photo--big img { width: 96px; height: 80px; }
.ee-check {
  flex-shrink: 0; width: 18px; height: 18px; border: 2px solid var(--on-surface-variant); border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.ee-check svg { width: 14px; height: 14px; opacity: 0; }
[aria-checked="true"] .ee-check, .ee-dunno[aria-checked="true"] .ee-check { background: var(--primary); border-color: var(--primary); }
[aria-checked="true"] .ee-check svg { opacity: 1; }
.ee-dunno { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; font-size: 16px; line-height: 24px; margin-top: -8px; }

/* bascule Flexible / Calendrier */
.ee-toggle-row { width: 100%; display: flex; align-items: center; gap: 12px; }
.ee-toggle-row::before, .ee-toggle-row::after { content: ""; flex: 1; height: 1px; background: var(--outline-variant); }
.ee-toggle { display: inline-flex; border: 1px solid var(--outline); border-radius: var(--radius-full); overflow: hidden; }
.ee-toggle button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.ee-toggle button + button { border-left: 1px solid var(--outline); }
.ee-toggle button[aria-pressed="true"] { background: var(--secondary-container); }
.ee-toggle button svg { width: 16px; height: 16px; }
.ee-toggle button[aria-pressed="false"] svg { display: none; }
.ee-months { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ee-month { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 10px; border: 1px solid var(--outline-variant); border-radius: var(--radius-xl); }
.ee-month b { font-size: 16px; line-height: 24px; font-weight: 400; }
.ee-month span { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--on-surface-variant); }
.ee-month[aria-pressed="true"] { background: var(--secondary-container); border-color: var(--secondary-container); }
.ee-month:hover { background: rgba(14, 124, 134, .05); }
.ee-dates { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ee-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.ee-dates input { height: 48px; padding: 0 12px; border: 1px solid var(--outline); border-radius: 8px; background: transparent; font: inherit; font-weight: 400; }

/* encadrés */
.ee__note { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 8px; background: var(--surface-container-low); font-size: 14px; line-height: 20px; }
.ee__note--star svg { color: #7fd6a4; }

/* traitement */
.ee-proc { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; width: 100%; padding-bottom: 8px; text-align: center; }
.ee-proc__label { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--on-surface-variant); }
.ee-proc__bar { width: 100%; height: 4px; background: var(--surface-container-highest); overflow: hidden; border-radius: 2px; }
.ee-proc__bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width 1.6s linear; }
.ee-proc__text { font-size: 14px; }
.ee-proc__text b { color: var(--primary); font-size: 16px; }
.ee-proc__dots { display: flex; gap: 6px; margin-top: 8px; }
.ee-proc__dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--surface-container-highest); transition: width .3s, background .3s; }
.ee-proc__dots i.is-on { width: 16px; background: var(--primary); }
.ee-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.ee-done__icon { width: 96px; height: 96px; color: var(--primary); }
.ee-done__title { font-size: 22px; line-height: 28px; font-weight: 500; text-wrap: balance; }
.ee-done__text { color: var(--on-surface-variant); font-size: 14px; line-height: 20px; max-width: 340px; }
.ee-recap { width: 100%; padding: 8px 16px; border: 1px solid var(--outline-variant); border-radius: var(--radius-xl); text-align: left; }
.ee-recap div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; line-height: 20px; }
.ee-recap div + div { border-top: 1px solid var(--surface-container-highest); }
.ee-recap dt { color: var(--on-surface-variant); }
.ee-recap dd { text-align: right; font-weight: 500; }

/* pied de carte : progression + boutons */
.ee__foot { padding: 0 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.ee__progress { height: 4px; background: var(--surface-container-highest); }
.ee__progress i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .3s ease; }
.ee__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ee__nav--single { grid-template-columns: 1fr; }
.ee__nav .btn { width: 100%; }
.ee__nav .btn:disabled { opacity: .38; cursor: default; }
.ee__nav .btn--filled:disabled::before { opacity: 0; }

/* bandeau de confiance */
.ee__trust { white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 24px; padding: 12px 24px; background: var(--surface-container); font-size: 14px; line-height: 20px; font-weight: 500; }
.ee__trust span + span { padding-left: 24px; border-left: 1px solid var(--outline-variant); }

/* --- Tablette et mobile : la photo passe en bandeau derrière le titre --- */
@media (max-width: 904px) {
  .ee { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .ee__visual { min-height: 0; height: 200px; border-radius: 0; }
  .ee__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0, 0, 0, .45)); }
  .ee__visual-title { display: block; position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: #fff; font-family: var(--font-serif); font-size: 28px; line-height: 36px; text-align: center; }
  .ee__card { border: 0; border-radius: 0; height: auto; max-height: none; min-height: calc(100vh - 236px); }
  .ee__body { overflow: visible; }
  .ee__head { order: -1; }
  .ee__step .ee__title { display: none; }
  .ee__body { padding: 20px 16px 12px; }
  .ee__foot { position: sticky; bottom: 0; background: var(--surface); padding: 0 16px 12px; }
  .ee__trust { gap: 12px; padding: 10px 12px; font-size: 12px; }
  .ee__trust span + span { padding-left: 12px; }
  .ee-options--3 { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .ee__q { font-size: 20px; line-height: 26px; }
  .ee__pill span { display: none; }
  .ee__pill { padding: 8px 10px; }
  .ee-options--2 { grid-template-columns: 1fr; }
  .ee-months { grid-template-columns: repeat(3, 1fr); }
  .ee-month { padding: 10px 8px; }
}

/* --- Ajustements après vérification --- */
.ee__step:has(.ee-proc), .ee__step:has(.ee-done) { flex: 1; }
.ee__trust { white-space: normal; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.ee__trust span { white-space: nowrap; }
.ee__trust span + span { padding-left: 12px; }
.ee-page ~ .wa-fab { bottom: 104px; }
@media (max-width: 904px) {
  /* mobile : logo en haut, puis la photo avec le titre, puis la question */
  .ee__card { display: contents; }
  .ee__head { order: 0; background: var(--surface); }
  .ee__visual { order: 1; height: 160px; }
  .ee__body { order: 2; }
  .ee__foot { order: 3; }
  .ee__trust { order: 4; }
  .ee-page ~ .wa-fab { display: none; }
}
