[hidden] { display: none !important; }

.entete--audit .entete__etape {
  color: var(--encre-douce);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intro-audit {
  background:
    radial-gradient(circle at 90% 5%, rgba(37, 64, 196, .14), transparent 32rem),
    var(--fond);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2rem);
}
.conteneur--audit { max-width: 760px; }
.intro-audit h1 { max-width: 20ch; }
.intro-audit__chapeau { max-width: 40rem; color: var(--encre-douce); font-size: clamp(1.05rem, 2vw, 1.2rem); }

.questionnaire-audit { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem); }
.conteneur--questionnaire { max-width: 640px; }

.barre-progression {
  height: .45rem;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
}
.barre-progression__remplissage {
  height: 100%;
  background: var(--accent);
  transition: width .25s ease;
}
.progression-texte {
  color: var(--encre-douce);
  font-family: var(--font-mono);
  font-size: .8rem;
  margin: .6rem 0 0;
}

.formulaire-audit { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

.etape {
  background: var(--surface);
  border: 1px solid var(--filet);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.etape__label {
  display: block;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.25rem;
}
.etape__label--grand { font-size: clamp(1.4rem, 4vw, 2rem); }
.etape__sous-titre { color: var(--encre-douce); font-size: 1.05rem; margin: 0 0 1.5rem; }
.etape__aide { color: var(--encre-douce); font-size: .85rem; margin: .5rem 0 0; }
.etape__aide--inline { font-weight: 400; font-size: .8rem; }

.etape__champ,
.champ-plateforme input,
.grille-contact input {
  width: 100%;
  border: 1px solid #aaa9a4;
  border-radius: 0;
  background: var(--surface);
  color: var(--encre);
  font: inherit;
  font-size: 1.05rem;
  padding: .9rem 1rem;
}
textarea.etape__champ { min-height: 8rem; resize: vertical; }

.etape__choix { border: 0; margin: 0; padding: 0; }
.option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 0;
  border-top: 1px solid var(--filet);
  cursor: pointer;
  font-size: 1.02rem;
}
.option:first-of-type { border-top: 0; }
.option input { margin-top: .2rem; width: 1.2rem; height: 1.2rem; flex-shrink: 0; }

.champ-plateforme { margin-top: 1rem; }
.champ-plateforme label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .35rem; }

/* q10 carries ten options plus a reveal field for "autre" — the only step
   that needs a tighter, two-column layout to stay under one phone screen
   in both states. The option text, order and font size are untouched;
   only the rhythm around them is tighter. */
[data-step="q10"] .etape__choix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: .75rem;
}
[data-step="q10"] .option {
  padding: .5rem 0;
  align-items: center;
}
[data-step="q10"] .option:nth-child(-n+2) { border-top: 0; }
[data-step="q10"] .etape__label { margin-bottom: .85rem; }
[data-step="q10"] .champ-plateforme { margin-top: .6rem; }
[data-step="q10"] .champ-plateforme label { margin-bottom: .2rem; }
[data-step="q10"] .champ-plateforme textarea {
  width: 100%;
  border: 1px solid #aaa9a4;
  border-radius: 0;
  background: var(--surface);
  color: var(--encre);
  font: inherit;
  font-size: 1.05rem;
  min-height: 0;
  padding: .55rem .75rem;
  resize: vertical;
}
.etape[data-step="q10"] { padding: 1rem; }

.grille-contact { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 1.5rem; }
.grille-contact label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .35rem; }
.erreur-champ { display: block; min-height: 1.4em; color: #8f211b; font-size: .82rem; }

.mention-legale {
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.1rem;
  font-size: .82rem;
  color: var(--encre-douce);
  margin: .5rem 0 1.25rem;
}

.option--consentement { border-top: 0; align-items: flex-start; }
.option--consentement span { font-size: .88rem; }

.message-formulaire { font-weight: 600; margin: 1rem 0 0; }
.message-formulaire[data-state="erreur"] { color: #8f211b; }

.navigation-audit {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}
.navigation-audit .bouton { min-width: 9rem; justify-content: center; }

.pied--audit .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

@media (max-width: 540px) {
  .etape { min-height: 0; padding: 1.25rem; }
  .navigation-audit { flex-direction: column-reverse; }
  .navigation-audit .bouton { width: 100%; }
}

/* Brief 03 — the result step. Not a "one screen" step like the questions:
   it is meant to be read and scrolled, so it drops the centered min-height
   layout the question steps use. */
.etape--resultat { min-height: 0; justify-content: flex-start; align-items: stretch; }

.resultat-bloc { margin-top: 2rem; }
.resultat-bloc:first-of-type { margin-top: 1.5rem; }
.resultat-titre {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 700;
  margin: 0 0 .85rem;
}

.resultat-liste,
.priorites-liste { list-style: none; margin: 0; padding: 0; }
.resultat-liste li {
  padding: .6rem 0;
  border-top: 1px solid var(--filet);
  font-size: .98rem;
}
.resultat-liste li:first-child { border-top: 0; }

.domaines-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.domaine {
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  padding: .9rem 1rem;
}
.domaine__titre { font-weight: 700; margin: 0 0 .3rem; font-size: 1rem; }
.domaine__niveau {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--encre-douce);
  margin: 0 0 .35rem;
}
.domaine__phrase { margin: 0; font-size: .95rem; color: var(--encre-douce); }

.resultat-bloc--rupture p {
  background: var(--surface-alt);
  border-left: 3px solid #8f211b;
  padding: 1rem 1.1rem;
  margin: 0;
  font-size: 1rem;
}

.priorites-liste { counter-reset: priorite; display: grid; gap: 1.1rem; }
.priorite {
  counter-increment: priorite;
  border: 1px solid var(--filet);
  padding: 1rem 1.1rem;
  position: relative;
}
.priorite::before {
  content: counter(priorite);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: .4rem;
}
.priorite p { margin: 0 0 .4rem; font-size: .95rem; }
.priorite p:last-child { margin-bottom: 0; }
.priorite__probleme { font-weight: 700; }
.priorite__cout { color: var(--encre-douce); }

.resultat-bloc--apercu .apercu-statut { color: var(--encre-douce); font-size: .9rem; }
.resultat-bloc--apercu .bouton { margin-top: .75rem; display: inline-flex; }

.resultat-bloc--budget .etape__label { font-size: 1.05rem; }
.budget-confirmation {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #15803d;
  font-weight: 700;
  font-size: .92rem;
  margin: 0 0 .85rem;
}
.budget-confirmation[hidden] { display: none; }
/* Drawn in CSS so the announced text stays exactly the sentence. */
.budget-confirmation::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* Entrepreneur result: the three steps carry a status colour, and the
   booking step reuses the same blocks. */
.domaine[data-statut="Solide"] { border-left-color: #15803d; }
.domaine[data-statut="Fragile"] { border-left-color: #b45309; }
.domaine[data-statut="Absent"] { border-left-color: #8f211b; }

.resultat-bloc--rdv { border-top: 1px solid var(--filet); padding-top: 1.5rem; }
.rdv { margin-top: 1rem; }
.rdv__pour, .rdv__message { margin: 0 0 1rem; font-size: .95rem; }
.rdv__message[role="alert"] { color: #8f211b; font-weight: 600; }
.rdv__piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rdv__confirmation { background: var(--surface-alt); border-left: 3px solid #15803d; padding: 1.1rem 1.25rem; }
.rdv__confirmation p { margin: 0 0 .5rem; }
.rdv__titre { font-weight: 700; font-size: 1.15rem; }
.rdv__quand { font-size: 1.05rem; }
.rdv .bouton { margin-top: .25rem; }

/* Booking calendar: month grid on the left, the day's times on the right
   (below on a phone), a summary and one main button underneath. */
.rdv-cal {
  background: var(--surface);
  border: 1px solid var(--filet);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(27, 33, 31, .04), 0 12px 32px -16px rgba(37, 64, 196, .18);
  overflow: hidden;
}
.rdv-cal__corps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.rdv-cal__mois { padding: clamp(1rem, 3vw, 1.75rem); border-right: 1px solid var(--filet); }
.rdv-cal__heures { padding: clamp(1rem, 3vw, 1.75rem); background: var(--fond); }

.rdv-cal__entete { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.1rem; }
.rdv-cal__titre { margin: 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; text-align: center; flex: 1; }
.rdv-cal__nav {
  width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--filet); border-radius: 999px;
  background: var(--surface); color: var(--encre);
  font: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.rdv-cal__nav:hover:not(:disabled) { background: var(--accent-doux); border-color: var(--accent); color: var(--accent); }
.rdv-cal__nav:disabled { opacity: .35; cursor: not-allowed; }

.rdv-cal__semaine, .rdv-cal__grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; }
.rdv-cal__semaine { margin-bottom: .35rem; }
.rdv-cal__semaine span {
  text-align: center; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--encre-douce);
}

.rdv-cal__jour {
  position: relative;
  aspect-ratio: 1 / 1; min-height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px;
  background: transparent; color: #a9a7a1;
  font: inherit; font-size: .95rem; font-variant-numeric: tabular-nums;
  cursor: default;
}
.rdv-cal__jour.is-hors-mois { visibility: hidden; }
.rdv-cal__jour.is-libre {
  background: var(--accent-doux); color: var(--accent-fonce);
  font-weight: 700; cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.rdv-cal__jour.is-libre:hover { background: var(--accent); color: #fff; }
.rdv-cal__jour.is-libre:active { transform: scale(.96); }
.rdv-cal__jour.is-active, .rdv-cal__jour.is-active:hover { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -6px rgba(37, 64, 196, .7); }
.rdv-cal__jour.is-aujourdhui { color: var(--encre); font-weight: 700; }
.rdv-cal__jour.is-aujourdhui::after {
  content: ""; position: absolute; bottom: .3rem; left: 50%;
  width: .3rem; height: .3rem; margin-left: -.15rem;
  border-radius: 50%; background: var(--second);
}
.rdv-cal__jour.is-active.is-aujourdhui::after { background: #fff; }
.rdv-cal__jour:focus-visible, .rdv-cal__nav:focus-visible, .rdv-cal__creneau:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.rdv-cal__legende { display: flex; align-items: center; gap: .5rem; margin: 1rem 0 0; font-size: .8rem; color: var(--encre-douce); }
.rdv-cal__pastille { width: .85rem; height: .85rem; border-radius: 4px; background: var(--accent-doux); border: 1px solid var(--accent); }

.rdv-cal__jour-titre { margin: 0 0 .25rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.rdv-cal__duree { margin: 0 0 1.1rem; font-size: .85rem; color: var(--encre-douce); }
.rdv-cal__creneaux {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: .5rem;
  max-height: 19.3rem; overflow-y: auto; padding: 2px;
}
.rdv-cal__creneau {
  min-height: 2.75rem; padding: .5rem .25rem;
  border: 1px solid var(--accent); border-radius: 10px;
  background: var(--surface); color: var(--accent-fonce);
  font-family: var(--font-mono); font-size: .92rem; font-weight: 500; cursor: pointer;
  transition: background .15s, color .15s;
}
.rdv-cal__creneau:hover { background: var(--accent-doux); }
.rdv-cal__creneau.is-active, .rdv-cal__creneau.is-active:hover { background: var(--accent); color: #fff; }

.rdv-cal__pied {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1rem, 3vw, 1.75rem);
  border-top: 1px solid var(--filet); background: var(--surface);
}
.rdv-cal__resume { margin: 0; flex: 1 1 14rem; font-size: .95rem; color: var(--encre-douce); }
.rdv-cal__resume.is-pret { color: var(--encre); font-weight: 700; }
.rdv-cal__pied .bouton { margin: 0; }
.rdv-cal__pied .bouton:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 720px) {
  .rdv-cal__corps { grid-template-columns: minmax(0, 1fr); }
  .rdv-cal__mois { border-right: 0; border-bottom: 1px solid var(--filet); }
  .rdv-cal__creneaux { max-height: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rdv-cal__pied { flex-direction: column; align-items: stretch; }
  .rdv-cal__pied .bouton { width: 100%; justify-content: center; }
}
@media (max-width: 380px) { .rdv-cal__creneaux { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The entrepreneur result hosts the booking calendar: give it room. */
.conteneur--questionnaire.is-large { max-width: 920px; }
.rdv-cal__pied .bouton { border-radius: 10px; }
.rdv-cal__semaine span { letter-spacing: 0; }
@media (max-width: 720px) {
  .rdv-cal__resume { flex: 0 0 auto; }
}
