:root {
  --blue: #101e97;
  --cyan: #62cbe5;
  --pale: #a8e3ff;
  --ink: #141414;
  --muted: #656565;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #e8f0f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #ed8c19;
  outline-offset: 3px;
}

.shell {
  max-width: 390px;
  min-height: 100dvh;
  margin: auto;
  background: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 45px #193c4833;
}

.page {
  min-height: 100dvh;
  animation: pageIn .34s ease both;
}

.status {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  background: white;
}

.status .symbols {
  color: #53565c;
  letter-spacing: 3px;
}

.top {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 22px;
  background: #fff;
}

.brand {
  border: 0;
  background: none;
  padding: 0;
}

.brand img {
  width: 42px;
  height: 68px;
  object-fit: contain;
}

.step-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 25px;
  font-weight: 700;
}

.step-counter .mode-icon {
  width: 27px;
  height: 27px;
}

.menu-button {
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  padding: 10px;
}

.primary {
  background: var(--blue);
  color: white;
  border: 0;
  border-radius: 100px;
  font-weight: 700;
  font-size: 23px;
  padding: 13px 34px;
  min-width: 174px;
  transition: transform .16s, box-shadow .16s;
}

.primary:active,
.choice:active {
  transform: scale(.95);
}

.primary:hover {
  box-shadow: 0 5px 14px #101e9733;
}

.home {
  position: relative;
  min-height: 100dvh;
  background: white;
}

.home-picture {
  display: block;
  width: 100%;
  height: 100dvh;
  object-fit: fill;
}

.home-start {
  position: absolute;
  left: 24%;
  width: 52%;
  height: 8%;
  top: 72%;
  border: 0;
  background: transparent;
  border-radius: 40px;
}

.home-start:focus-visible {
  outline: 4px solid #ffad28;
}

.screen-blue {
  background: var(--pale);
  min-height: calc(100dvh - 136px);
  padding: 17px 20px 34px;
  position: relative;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 4px 0 19px;
  font-size: 24px;
}

.back {
  position: absolute;
  left: 0;
  background: none;
  border: 0;
  font-size: 32px;
}

.mode-picks {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 18px 0 23px;
}

.mode-picks button {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 52px;
  border: 0;
  background: transparent;
  font-size: 31px;
  padding: 8px;
  border-radius: 14px;
  transition: transform .2s, background .2s;
}

.mode-picks button[aria-pressed="true"] {
  color: var(--blue);
  background: #ffffff88;
  transform: translateY(-3px);
}

.mode-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.choices {
  display: grid;
  gap: 14px;
  position: relative;
}

.choice {
  border: 0;
  border-radius: 22px;
  background: #fff;
  padding: 16px 14px;
  font-size: 20px;
  font-weight: 700;
  transition: transform .18s, box-shadow .18s;
}

.choice[aria-pressed="true"] {
  box-shadow: 0 0 0 4px var(--blue);
}

.ribbon {
  position: absolute;
  z-index: 0;
  top: 120px;
  bottom: 45px;
  left: 46%;
  width: 28px;
  border-left: 8px solid #25b6db;
  border-radius: 50%;
  transform: rotate(-8deg);
  opacity: .75;
  pointer-events: none;
}

.foreground {
  position: relative;
  z-index: 1;
}

.details {
  text-align: center;
  font-size: 15px;
  margin: 18px 0 24px;
}

.note {
  font-size: 12px;
  color: #3c4c55;
  line-height: 1.5;
}

.center {
  text-align: center;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cyan);
  color: white;
  text-align: center;
  padding: 13px 8px;
  font-weight: 700;
  font-size: 21px;
}

.bar .stop-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.article {
  text-align: center;
  padding: 16px 25px 38px;
}

.article h1 {
  font-size: 28px;
  line-height: 1.1;
  margin: 5px 0 12px;
}

.article p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 auto 15px;
  max-width: 340px;
}

.photo-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  margin: 17px auto 12px;
  font-weight: 600;
}

.photo-icon {
  width: 150px;
  height: 104px;
  border-radius: 26px;
  background: #d8d8d8;
  display: grid;
  place-items: center;
}

.camera-svg {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: brightness(0);
}

.preview {
  max-width: 150px;
  max-height: 150px;
  border-radius: 16px;
}

.caption {
  font-size: 13px;
  color: #666;
  font-style: italic;
  margin: 15px 0 22px;
}

.map-img {
  width: 100%;
  height: 365px;
  object-fit: cover;
  display: block;
}

.map-actions {
  text-align: center;
  margin-top: -30px;
  position: relative;
}

.map-bottom {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.map-bottom h3 {
  font-size: 17px;
}

.next-items {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.next-items::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 10px;
  transform: translateX(-50%);
  background: #62c9df;
  border-radius: 20px;
  z-index: 0;
}

.next-items span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 75%;
  padding: 14px 10px;
  text-align: center;
  background: white;
  border: 1px solid #a8dff0;
  border-radius: 24px;
}

.next-items .stop-icon {
  width: 22px;
  height: 22px;
}

.svg-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
}

.stop-icon {
  width: 25px;
  height: 25px;
}

.choix-parcours .mode-icon {
  filter: brightness(0);
}

.disclaimer {
  font-size: 12px;
  color: #505050;
  line-height: 1.5;
  margin-top: 14px;
}

.progress {
  height: 5px;
  background: #d9f4fb;
}

.progress div {
  height: 100%;
  background: var(--blue);
  transition: width .4s;
}

.fade {
  animation: pageIn .4s ease;
}

.missing {
  height: 365px;
  display: grid;
  place-items: center;
  background: #e7f7fc;
  text-align: center;
  padding: 25px;
}

.helper {
  margin: 14px auto 0;
  max-width: 300px;
  font-size: 12px;
  color: #555;
}

/* PAGE DE FIN */

.finish {
  position: relative;
  min-height: 100dvh;
  background: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
}

.finish-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 125px;
  gap: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.finish-photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finish-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px 20px;
}

.finish-content h1 {
  color: var(--blue);
  font-size: 29px;
  line-height: 1.15;
  margin: 0;
}

.finish-content p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.finish-logo {
  display: block;
  width: 140px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto;
}

.finish-content .primary {
  align-self: center;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: #0008;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
}

.menu-panel {
  background: white;
  width: min(310px, 82%);
  padding: 30px 20px;
  animation: slideIn .25s ease;
}

.menu-panel button {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid #ddd;
  text-align: left;
  padding: 16px 8px;
  font-size: 17px;
}

@keyframes pageIn {
  from {
    opacity: .15;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: none;
  }
}

@media (min-width: 500px) {
  .shell {
    margin: 25px auto;
    min-height: 844px;
    border-radius: 20px;
  }

  .page,
  .home,
  .finish {
    min-height: 844px;
  }

  .home-picture {
    height: 844px;
  }

  .screen-blue {
    min-height: 708px;
  }

  .finish-photos {
    height: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Pictogrammes noirs dans le choix du parcours */
.choix-parcours .mode-icon {
  filter: brightness(0);
}

/* Pictogrammes noirs dans les boutons de sélection */
.mode-picks button .mode-icon {
  filter: brightness(0);
}

/* Bandeaux bleus : pictogramme blanc et texte visible */
.bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  background: var(--cyan);
  text-align: center;
}

.bar span {
  display: inline-block;
  color: white;
}

.bar .stop-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}