:root {
  --creme: #FAF3E8;
  --creme2: #F3E8D8;
  --cerise: #9E0B22;
  --rose: #F65275;
  --poudre: #F5E2E2;
  --lilas: #D19ADF;
  --encre: #241418;
  --encre2: #5A4A4E;
  --gris: #8E8084;
  --blanc: #FFFDF9;
  --bordure: #EADBCB;
  --font-serif: "Bodoni Moda", Didot, serif;
  --font-sans: Montserrat, "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--creme);
  color: var(--encre);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--cerise);
  outline-offset: 2px;
}

/* Mot-symbole BO PARIS */
.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
  text-decoration: none;
  color: var(--encre);
}

.brand-bo {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: 0.03em;
  color: var(--cerise);
}

.brand-paris {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--encre);
  margin-top: 2px;
  padding-left: 0.34em;
}

/* ==========================================================================
   PARCOURS MOBILE (index.html)
   ========================================================================== */

.mobile-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--creme);
  font-size: 16px;
}

.mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 18px 32px;
  display: flex;
  flex-direction: column;
}

.mobile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.mobile-topbar {
  width: 100%;
  display: grid;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  min-height: 48px;
}

.mobile-topbar .brand-mark {
  justify-self: center;
}

.btn-retour {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px 12px 8px 4px;
  background: transparent;
  border: none;
  color: var(--encre2);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  transition: color 180ms ease, transform 160ms var(--ease-out);
}

.btn-retour:hover {
  color: var(--cerise);
}

.btn-retour:active {
  transform: scale(0.97);
}

.btn-retour[hidden] {
  display: none;
}

.etape-compteur {
  justify-self: end;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--encre2);
  letter-spacing: 0.04em;
}

.etape-compteur[hidden] {
  display: none;
}

/* Barre de progression fine (etape 1, 2, 3) */
.progress-wrap {
  width: 100%;
  display: flex;
  gap: 8px;
  height: 4px;
}

.progress-wrap[hidden] {
  display: none;
}

.progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background-color: var(--creme2);
  overflow: hidden;
  position: relative;
}

.progress-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--cerise);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms var(--ease-out);
}

.progress-seg.is-active::after,
.progress-seg.is-done::after {
  transform: scaleX(1);
}

/* Conteneur d'etapes et transitions 200-280ms */
.steps-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.step-panel {
  display: none;
  flex-direction: column;
  flex: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.step-panel.is-visible {
  display: flex;
}

.step-panel.is-active {
  opacity: 1;
  transform: translateY(0);
}

.step-panel.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

/* Typographie des titres */
.step-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.18;
  color: var(--encre);
  margin: 8px 0 12px;
  text-align: center;
}

.step-title em,
.section-title em,
.salle-title em {
  font-style: italic;
  color: var(--cerise);
  font-weight: 700;
}

.step-subtitle {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--encre2);
  text-align: center;
  margin: 0 0 24px;
  font-weight: 500;
}

/* Accueil (Etape 0) */
.hero-card {
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 20px 18px 22px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background-color: var(--creme2);
  border: 1px solid var(--bordure);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cerise);
  background-color: var(--poudre);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.btn-primary {
  width: 100%;
  height: 52px;
  min-height: 52px;
  border-radius: 26px;
  background-color: var(--cerise);
  color: var(--blanc);
  border: none;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  transition: transform 160ms var(--ease-out), background-color 180ms ease;
}

.btn-primary:hover {
  background-color: #83081C;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary-link {
  width: 100%;
  min-height: 48px;
  background: transparent;
  border: 1px solid var(--bordure);
  border-radius: 24px;
  color: var(--encre);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 10px;
  padding: 10px 20px;
  transition: border-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}

.btn-secondary-link:hover {
  border-color: var(--cerise);
  color: var(--cerise);
}

.btn-secondary-link:active {
  transform: scale(0.97);
}

.discreet-note {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--encre2);
  text-align: center;
  margin: 14px 0 0;
}

/* Cartes de choix (Etapes 1, 2, 3) */
.choice-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.choice-card {
  width: 100%;
  min-height: 68px;
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  color: var(--encre);
  transition: border-color 180ms ease, transform 160ms var(--ease-out), background-color 180ms ease;
}

.choice-card-lg {
  min-height: 96px;
  padding: 22px 20px;
}

.choice-card:hover {
  border-color: var(--cerise);
}

.choice-card:active {
  transform: scale(0.98);
}

.choice-card.is-selected {
  border: 2px solid var(--cerise);
  padding: 17px 17px;
  background-color: var(--blanc);
}

.choice-card-lg.is-selected {
  padding: 21px 19px;
}

.choice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choice-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--encre);
}

.choice-sub {
  font-size: 0.875rem;
  color: var(--encre2);
  font-weight: 500;
}

/* Pastille cochee */
.check-pill {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--bordure);
  background-color: var(--creme);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
}

.check-pill svg {
  width: 14px;
  height: 14px;
  stroke: var(--blanc);
  stroke-width: 2.5;
  fill: none;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}

.is-selected .check-pill {
  background-color: var(--cerise);
  border-color: var(--cerise);
}

.is-selected .check-pill svg {
  opacity: 1;
  transform: scale(1);
}

/* Grille 2 colonnes pour les 5 types de cheveux */
.hair-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.hair-card {
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  color: var(--encre);
  min-height: 158px;
  position: relative;
  transition: border-color 180ms ease, transform 160ms var(--ease-out);
}

.hair-card:nth-child(5) {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  min-height: 104px;
  gap: 14px;
}

.hair-card:hover {
  border-color: var(--cerise);
}

.hair-card:active {
  transform: scale(0.98);
}

.hair-card.is-selected {
  border: 2px solid var(--cerise);
  padding: 9px;
}

.hair-photo-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--creme2);
  margin-bottom: 10px;
}

.hair-card:nth-child(5) .hair-photo-wrap {
  width: 128px;
  min-width: 128px;
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
}

.hair-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hair-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px;
  flex: 1;
}

.hair-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--encre);
}

/* ==========================================================================
   ETAPE 4 : LE RESULTAT (Carte postale, Trio, Geste, Encart poudre)
   ========================================================================== */

.result-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 6px;
}

.cascade-item {
  opacity: 0;
  transform: translateY(12px);
}

.step-panel.is-active .cascade-item {
  animation: cascadeAppear 280ms var(--ease-out) forwards;
}

.step-panel.is-active .cascade-item:nth-child(1) { animation-delay: 20ms; }
.step-panel.is-active .cascade-item:nth-child(2) { animation-delay: 90ms; }
.step-panel.is-active .cascade-item:nth-child(3) { animation-delay: 160ms; }
.step-panel.is-active .cascade-item:nth-child(4) { animation-delay: 220ms; }
.step-panel.is-active .cascade-item:nth-child(5) { animation-delay: 270ms; }
.step-panel.is-active .cascade-item:nth-child(6) { animation-delay: 310ms; }

@keyframes cascadeAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* La carte postale (-2 degres, fond blanc, ombre douce) */
.postcard-wrap {
  padding: 6px 4px;
}

.postcard {
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 24px rgba(36, 20, 24, 0.07);
  transform: rotate(-2deg);
  position: relative;
}

.postcard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.postcard-heading {
  flex: 1;
}

.postcard-prefix {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--encre2);
  letter-spacing: 0.03em;
  margin: 0 0 4px;
}

.postcard-quartier {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--cerise);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.postcard-phrase {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--encre);
  margin: 0;
}

/* Timbre rose BO en haut a droite */
.postcard-stamp {
  width: 48px;
  height: 56px;
  min-width: 48px;
  background-color: var(--rose);
  color: var(--blanc);
  border: 2px dashed var(--blanc);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(36, 20, 24, 0.1);
}

.postcard-stamp-bo {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
}

.postcard-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--creme2);
  margin: 12px 0 14px;
  border: 1px solid var(--bordure);
}

.postcard-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postcard-repere {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--creme);
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--encre);
}

.repere-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1px solid rgba(36, 20, 24, 0.15);
}

/* Sections Trio et Geste */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--encre);
  margin: 0;
}

.trio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card {
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--creme2);
  border: 1px solid var(--bordure);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--encre);
  margin: 0;
}

.product-role {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--encre2);
  margin: 0;
}

/* Le geste : 3 etapes numerotees */
.geste-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.geste-item {
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.geste-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background-color: var(--poudre);
  color: var(--cerise);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.geste-text {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--encre);
  margin: 2px 0 0;
  font-weight: 500;
}

/* Encart poudre */
.poudre-callout {
  background-color: var(--poudre);
  border: 1px solid #E8CACA;
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--encre);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 600;
  text-align: center;
}

.result-actions {
  display: flex;
  flex-direction: column;
}

.mobile-footer {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--encre2);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--bordure);
}

/* ==========================================================================
   ECRAN PROJETE : LA SALLE EN DIRECT (salle.html)
   16:9, 1920x1080 et 1366x768, rien sous 18px
   ========================================================================== */

.salle-body {
  min-height: 100vh;
  background-color: var(--creme);
  color: var(--encre);
  font-size: 18px;
  display: flex;
  flex-direction: column;
}

.salle-shell {
  width: 100%;
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.salle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--bordure);
  padding-bottom: 16px;
}

.salle-header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.salle-header .brand-bo {
  font-size: 2.75rem;
}

.salle-header .brand-paris {
  font-size: 1.125rem;
}

.salle-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.salle-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  margin: 0;
  color: var(--encre);
}

.salle-subtitle {
  font-size: 1.1875rem;
  color: var(--encre2);
  margin: 0;
  font-weight: 500;
}

.salle-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sim-badge {
  background-color: var(--poudre);
  color: var(--cerise);
  border: 1.5px solid var(--cerise);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 1.125rem;
  font-weight: 700;
}

.sim-badge[hidden] {
  display: none;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--encre2);
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gris);
  transition: background-color 200ms ease;
}

.live-pill.is-online {
  color: var(--encre);
}

.live-pill.is-online .live-dot {
  background-color: #1F8A4C;
  box-shadow: 0 0 0 4px rgba(31, 138, 76, 0.18);
}

/* Grille principale de la salle : colonne gauche ~30%, zone principale ~70% */
.salle-main {
  flex: 1;
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 28px;
  align-items: stretch;
}

/* Colonne gauche : QR */
.salle-qr-col {
  display: flex;
  flex-direction: column;
}

.qr-card {
  flex: 1;
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.qr-frame {
  width: 280px;
  height: 280px;
  min-width: 260px;
  min-height: 260px;
  background-color: var(--blanc);
  border: 2px solid var(--bordure);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 280ms var(--ease-out);
}

.qr-card.is-waiting .qr-frame {
  animation: qrPulse 2.2s ease-in-out infinite;
}

@keyframes qrPulse {
  0%, 100% {
    transform: scale(1);
    border-color: var(--bordure);
  }
  50% {
    transform: scale(1.03);
    border-color: var(--cerise);
  }
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-cta {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--encre);
  margin: 0;
}

.qr-url {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cerise);
  background-color: var(--creme);
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: 8px 20px;
  margin: 0;
  word-break: break-all;
}

.waiting-banner {
  background-color: var(--poudre);
  color: var(--cerise);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 1.125rem;
  font-weight: 700;
  width: 100%;
}

.waiting-banner[hidden] {
  display: none;
}

/* Zone principale de la salle */
.salle-dashboard {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.salle-panel {
  background-color: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.panel-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--encre);
  margin: 0 0 14px;
}

/* Compteur diagnostics + Barre Pour moi / Pour ma fille */
.panel-top-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.counter-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.counter-value {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 7.75rem;
  line-height: 0.95;
  color: var(--cerise);
  letter-spacing: -0.02em;
  transition: transform 220ms var(--ease-out);
}

.counter-value.is-bumping {
  transform: scale(1.08);
}

.counter-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--encre2);
  margin-top: 6px;
}

/* Part Pour moi / Pour ma fille */
.split-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.split-labels {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 700;
}

.split-label-moi {
  color: var(--cerise);
}

.split-label-fille {
  color: var(--encre);
}

.split-bar-track {
  width: 100%;
  height: 24px;
  border-radius: 999px;
  background-color: var(--creme2);
  overflow: hidden;
  display: flex;
}

.split-bar-moi {
  height: 100%;
  background-color: var(--cerise);
  transition: width 280ms var(--ease-out);
}

.split-bar-fille {
  height: 100%;
  background-color: var(--rose);
  transition: width 280ms var(--ease-out);
}

/* Les 5 quartiers */
.quartiers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  flex: 1;
}

.quartier-row {
  display: grid;
  grid-template-columns: 165px 1fr 52px;
  align-items: center;
  gap: 14px;
}

.quartier-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--encre);
  white-space: nowrap;
}

.quartier-track {
  width: 100%;
  height: 22px;
  background-color: var(--creme);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--bordure);
}

.quartier-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 280ms var(--ease-out);
}

.quartier-count {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--encre);
  text-align: right;
}

/* Les 4 soucis */
.soucis-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  flex: 1;
}

.souci-item {
  background-color: var(--creme);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.souci-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--encre);
}

.souci-count {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cerise);
}

/* Fil des dernieres reponses (5 au plus) */
.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.feed-item {
  background-color: var(--creme);
  border: 1px solid var(--bordure);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--encre);
  animation: feedSlideIn 260ms var(--ease-out);
}

@keyframes feedSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feed-empty {
  font-size: 1.125rem;
  color: var(--encre2);
  font-style: italic;
  margin: auto 0;
}

/* Bandeau bas et commandes discretes */
.salle-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--bordure);
  padding-top: 14px;
}

.salle-footer-text {
  font-size: 1.125rem;
  color: var(--encre2);
  margin: 0;
  font-weight: 500;
}

.salle-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-discreet {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--encre2);
  opacity: 0.5;
  transition: opacity 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn-discreet:hover,
.btn-discreet:focus-visible,
.btn-discreet.is-active {
  opacity: 1;
  border-color: var(--bordure);
  color: var(--cerise);
  background-color: var(--blanc);
}

.reset-confirm-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--blanc);
  border: 1px solid var(--cerise);
  border-radius: 999px;
  padding: 4px 12px;
}

.reset-confirm-group[hidden] {
  display: none;
}

.reset-confirm-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--encre);
}

.btn-confirm-yes,
.btn-confirm-no {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 1.125rem;
  font-weight: 700;
}

.btn-confirm-yes {
  background-color: var(--cerise);
  color: var(--blanc);
}

.btn-confirm-no {
  background-color: var(--creme2);
  color: var(--encre);
}

/* Adaptation 1366x768 */
@media (max-width: 1440px), (max-height: 820px) {
  .salle-shell {
    padding: 16px 28px 14px;
    gap: 14px;
  }

  .salle-title {
    font-size: 2rem;
  }

  .qr-frame {
    width: 260px;
    height: 260px;
  }

  .counter-value {
    font-size: 7.5rem;
  }

  .salle-panel {
    padding: 16px 20px;
  }
}

/* Respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .step-panel {
    transform: none !important;
  }

  .cascade-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
