/* TOKENS COMMUNS : COULEURS ET TYPOGRAPHIE */
.sa-tunnel {
  --sa-blue: #07558d;
  --sa-black: #000;
  --sa-white: #fff;
  margin: 0;
  min-height: 100vh;
  background: #f5f5f5;
  color: var(--sa-black);
  font: 400 15px/1.5 "Poppins", Arial, sans-serif;
}
.sa-tunnel *, .sa-tunnel *::before, .sa-tunnel *::after {
  box-sizing: border-box;
}
.sa-tunnel button, .sa-tunnel input { font: inherit; }

/* EN-TÊTE */
.sa-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 68px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(7,85,141,.12);
}
.sa-brand {
  color: var(--sa-blue);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

/* CONTENEUR MOBILE EN PREMIER */
.sa-shell { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.sa-panel {
  padding: 24px 18px;
  border-radius: 22px;
  background: var(--sa-white);
  box-shadow: 0 6px 24px rgba(0,0,0,.055);
}
.sa-heading { margin-bottom: 26px; }
.sa-heading h1 {
  margin: 0 0 10px;
  color: var(--sa-blue);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}
.sa-heading p { margin: 0; font-weight: 400; }

/* CHOIX : CHAQUE CARTE RESTE INDÉPENDANTE */
.sa-choices {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.sa-choice { position: relative; min-width: 0; cursor: pointer; }
.sa-choice input {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.sa-choice-surface {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  height: 100%;
  padding: 24px 20px;
  border: 1.5px solid transparent;
  border-radius: 20px;
  background: var(--sa-white);
  box-shadow: 0 6px 20px rgba(0,0,0,.045);
}
.sa-choice-title {
  color: var(--sa-black);
  font-size: 17px;
  font-weight: 400;
}
.sa-choice-subtitle { color: var(--sa-black); font-size: 13px; }
.sa-choice input:checked + .sa-choice-surface {
  border-color: var(--sa-blue);
}
.sa-choice input:focus-visible + .sa-choice-surface {
  outline: 3px solid var(--sa-blue);
  outline-offset: 4px;
}

/* BOUTONS PILULE */
.sa-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(7,85,141,.12);
}
.sa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--sa-blue);
  border-radius: 999px;
  background: var(--sa-white);
  color: var(--sa-blue);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.sa-button:disabled { opacity: .4; cursor: default; }
.sa-button:focus-visible, .sa-brand:focus-visible {
  outline: 3px solid var(--sa-blue);
  outline-offset: 4px;
}
.sa-error { margin: 16px 0 0; color: var(--sa-black); }
.sa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ADAPTATION ORDINATEUR */
@media (min-width: 760px) {
  .sa-topbar { padding-inline: max(24px, calc((100% - 1100px)/2)); }
  .sa-shell { margin-top: 42px; padding-inline: 24px; }
  .sa-panel { padding: 36px; }
  .sa-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sa-choice-surface { min-height: 152px; padding: 28px; }
}

/* PAGE PROJET : ALIGNEMENT ET PICTOGRAMMES DE LA MAQUETTE */
.sa-topbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.sa-guide {
  color: var(--sa-blue);
  font-size: 12px;
  text-decoration: none;
}
.sa-guide:focus-visible {
  outline: 2px solid var(--sa-blue);
  outline-offset: 4px;
}
#sa-nouveau-tunnel-projet .sa-choice-surface {
  position: relative;
  padding-left: 64px;
}
.sa-project-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  color: var(--sa-blue);
}
@media (min-width: 760px) {
  #sa-nouveau-tunnel-projet .sa-choice-surface {
    padding-left: 76px;
  }
  .sa-project-icon { left: 26px; }
}

/* BOUTON SUIVANT ORANGE SELFASSUR */
#sa-suivant {
  background: #ed783e;
  border-color: #ed783e;
  color: #fff;
}
#sa-suivant:disabled {
  opacity: .4;
  cursor: default;
}
