/* ==========================================================================
   Espace client : l'apparence du site (bible parties IV et V, chapitre 19),
   composants et formulaires de la partie VI. Décision du 19/09/2026.

   Deux sortes de sections, qui alternent :
   - .s-sombre : toujours Encre (le haut de page, « À vous »…) ;
   - .s-clair  : Papier en mode clair, Encre 2 en mode sombre.
   Chaque section expose ses couleurs en variables (--s-texte, --s-jeu…) : les
   cartes et composants s'y adaptent seuls. Aucune couleur en dur hors des cartes.
   ========================================================================== */

:root {
  --b-fond: var(--aux-papier);
  --b-surface: var(--aux-papier-fonce);
  --champ-fond: #ffffff;
  --ombre-menu: 0 8px 24px rgb(19 20 26 / 0.14), 0 2px 6px rgb(19 20 26 / 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --b-fond: var(--aux-encre-2);
    --b-surface: var(--aux-encre);
    --champ-fond: var(--aux-encre);
    --ombre-menu: 0 8px 24px rgb(0 0 0 / 0.4), 0 2px 6px rgb(0 0 0 / 0.3);
  }
}
:root[data-theme="dark"] {
  --b-fond: var(--aux-encre-2);
  --b-surface: var(--aux-encre);
  --champ-fond: var(--aux-encre);
  --ombre-menu: 0 8px 24px rgb(0 0 0 / 0.4), 0 2px 6px rgb(0 0 0 / 0.3);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--aux-encre);
}
body.espace {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--aux-encre);
  color: var(--aux-papier);
  font-family: var(--police);
  font-stretch: 100%;
  font-size: var(--t-texte);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset, blockquote {
  margin: 0;
}
ol, ul {
  padding: 0;
  list-style: none;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
img, svg {
  display: block;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
}
a {
  color: var(--s-lien);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--s-focus, var(--aux-amethyste-clair));
  outline-offset: 3px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.evitement {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 8px 16px;
  border-radius: var(--arrondi-controle);
  background: var(--aux-amethyste);
  color: #fff;
}
.evitement:focus {
  top: 16px;
}
.mono {
  font-family: var(--police-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Sections ---------- */
.s-sombre {
  background: var(--aux-encre);
  color: var(--aux-papier);
  --s-texte: var(--aux-papier);
  --s-texte-2: var(--aux-gris-sombre);
  --s-filet: var(--aux-filet-sombre);
  --s-jeu: var(--aux-amethyste-clair);
  --s-lien: var(--aux-amethyste-clair);
  --s-surface: var(--aux-encre-2);
  --s-ok: var(--aux-emeraude-clair);
  --s-att: var(--aux-or);
  --s-info: var(--aux-amethyste-clair);
  --s-piste: rgb(241 240 244 / 0.12);
  --s-focus: var(--aux-amethyste-clair);
}
.s-clair {
  background: var(--b-fond);
  color: var(--texte);
  --s-texte: var(--texte);
  --s-texte-2: var(--texte-2);
  --s-filet: var(--filet);
  --s-jeu: var(--action);
  --s-lien: var(--action);
  --s-surface: var(--b-surface);
  --s-ok: var(--etat-reussi);
  --s-att: var(--etat-attention);
  --s-info: var(--etat-info);
  --s-piste: color-mix(in srgb, var(--texte) 10%, transparent);
  --s-focus: var(--focus);
}
.section {
  padding: var(--section-v) var(--marge-laterale);
}
.contenu {
  max-width: var(--bloc-large-max);
  margin: 0 auto;
}
main {
  display: flex;
  flex-direction: column;
}
main:focus {
  outline: none;
}

/* ---------- Typographie du site (ch. 13) ---------- */
.etiquette {
  font-family: var(--police-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-texte-2);
}
.t1 {
  font-size: var(--t-titre-1);
  line-height: 1;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.t2 {
  font-size: var(--t-titre-2);
  line-height: 1;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.t3 {
  font-size: var(--t-titre-3);
  line-height: 1.15;
  font-weight: 700;
}
.jeu {
  font-stretch: 125%;
  font-weight: 300;
  color: var(--s-jeu);
}
.chapeau {
  max-width: 40em;
  font-size: 17px;
  line-height: 1.5;
  color: var(--s-texte-2);
}
.texte-2 {
  color: var(--s-texte-2);
}
@media (min-width: 768px) {
  .chapeau {
    font-size: max(17px, calc(20 / 1440 * 100vw));
  }
}

/* ---------- En-tête ---------- */
.entete {
  background: var(--aux-encre);
  border-bottom: 1px solid var(--aux-filet-sombre);
  padding: 0 var(--marge-laterale);
  --s-focus: var(--aux-amethyste-clair);
}
.entete__barre {
  max-width: var(--bloc-large-max);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.entete__gauche {
  display: flex;
  align-items: center;
  gap: 20px;
}
.entete__sep {
  width: 1px;
  height: 24px;
  background: var(--aux-filet-sombre);
}
.entete__lieu {
  white-space: nowrap;
  font-family: var(--police-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aux-gris-sombre);
}
.entete__droite {
  display: flex;
  align-items: center;
  gap: 24px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aux-papier);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.nav a {
  color: var(--aux-gris-sombre);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color var(--duree-survol) var(--courbe);
}
.nav a:hover {
  color: var(--aux-papier);
}
.nav a[aria-current="page"] {
  color: var(--aux-papier);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--aux-amethyste-clair);
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}
.puce-entreprise {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--aux-papier);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 899px) {
  .entete__barre {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "gauche theme puce" "nav nav nav";
    align-items: center;
    gap: 16px 12px;
    min-height: 0;
    padding: 14px 0 14px;
  }
  .entete__gauche {
    grid-area: gauche;
    gap: 12px;
  }
  .entete__sep {
    display: none;
  }
  .entete__lieu {
    display: none;
  }
  .marque {
    font-size: 18px;
  }
  .nav {
    grid-area: nav;
    gap: 16px;
  }
  .nav a {
    font-size: 16px;
  }
  .entete__droite {
    display: contents;
  }
  .entete .interrupteur {
    grid-area: theme;
  }
  .puce-entreprise {
    grid-area: puce;
  }
  .puce-entreprise__nom {
    display: none;
  }
}

/* ---------- Auto / Clair / Sombre (ch. 27) ---------- */
.interrupteur {
  display: inline-flex;
  border: 1px solid var(--s-filet, var(--aux-filet-sombre));
  border-radius: var(--arrondi-controle);
  overflow: hidden;
}
.interrupteur button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--s-texte-2, var(--aux-gris-sombre));
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--duree-survol) var(--courbe), color var(--duree-survol) var(--courbe);
}
.interrupteur button + button {
  border-left: 1px solid var(--s-filet, var(--aux-filet-sombre));
}
.interrupteur button[aria-pressed="true"] {
  background: var(--s-texte, var(--aux-papier));
  color: var(--aux-encre);
}
.s-clair .interrupteur button[aria-pressed="true"] {
  color: var(--b-fond);
}
.entete .interrupteur {
  --s-filet: var(--aux-filet-sombre);
  --s-texte: var(--aux-papier);
  --s-texte-2: var(--aux-gris-sombre);
}
@media (max-width: 899px) {
  .entete .interrupteur button {
    height: 40px;
    padding: 0 10px;
  }
  .entete .interrupteur__lib {
    display: none;
  }
}

/* ---------- Logo de l'entreprise ---------- */
.logo {
  display: block;
  flex-shrink: 0;
  border-radius: var(--arrondi-petit);
  background: var(--aux-papier);
  object-fit: contain;
}
/* Un logo large (bandeau) respire dans sa tuile carrée. */
img.logo--32 {
  padding: 3px;
}
img.logo--64 {
  padding: 6px;
}
img.logo--200 {
  padding: 20px;
}
.logo--initiales {
  display: grid;
  place-items: center;
  background: var(--aux-encre-2);
  color: var(--aux-papier);
  border: 1px solid var(--aux-filet-sombre);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: 0.02em;
}
.logo-menu {
  position: relative;
  display: inline-flex;
}
.logo-menu > summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
  border-radius: var(--arrondi-petit);
}
.logo-menu > summary::-webkit-details-marker {
  display: none;
}
.logo-menu--grand > summary,
.logo-menu--grand .logo {
  border-radius: var(--arrondi-carte);
}
.logo-menu__fenetre {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 20;
  width: min(340px, calc(100vw - 48px));
  padding: 20px;
  border-radius: var(--arrondi-petit);
  background: var(--aux-papier);
  color: var(--aux-encre);
  box-shadow: var(--ombre-menu);
  display: flex;
  flex-direction: column;
  gap: 12px;
  --s-texte: var(--aux-encre);
  --s-texte-2: var(--aux-gris-clair);
  --s-filet: rgb(19 20 26 / 0.55);
  --s-focus: var(--aux-amethyste);
}
.logo-menu--droite .logo-menu__fenetre {
  left: auto;
  right: 0;
}
.logo-menu__titre {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.logo-menu__texte,
.logo-menu__aide {
  font-size: 15px;
  color: var(--aux-gris-clair);
}
.logo-menu__aide {
  font-size: 13px;
}
.logo-menu input[type="file"] {
  width: 100%;
  font-size: 14px;
}
@media (max-width: 899px) {
  .logo-menu--droite .logo-menu__fenetre {
    left: 0;
    right: auto;
  }
}

/* ---------- Haut de l'accueil : où en est le projet ---------- */
.haut {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere);
  row-gap: 48px;
  align-items: center;
}
.haut__profil {
  grid-column: 1 / 9;
  grid-row: 1;
}
.haut__titres {
  grid-column: 1 / 9;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.haut__anneau {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.profil {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profil__nom {
  font-size: 19px;
  font-weight: 600;
  color: var(--s-texte);
}
.profil__num {
  font-family: var(--police-mono);
  font-size: 13px;
  color: var(--s-texte-2);
}
@media (max-width: 899px) {
  .haut {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
  .haut__anneau {
    align-items: flex-start;
    gap: 12px;
  }
  .profil__nom {
    font-size: 17px;
  }
}

/* ---------- Anneau d'avancement ---------- */
.anneau {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
}
.anneau svg {
  width: 100%;
  height: 100%;
}
.anneau__piste {
  fill: none;
  stroke: var(--s-piste);
  stroke-width: 14;
}
.anneau__arc {
  fill: none;
  stroke: var(--s-jeu);
  stroke-width: 14;
  stroke-linecap: round;
}
.anneau__valeur {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  line-height: 1;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--s-texte);
}
.anneau__valeur span {
  margin-left: 4px;
  font-size: 0.42em;
  font-weight: 600;
}
.anneau--petit {
  width: 120px;
  height: 120px;
}
.anneau--petit .anneau__valeur {
  font-size: 36px;
}
@media (min-width: 900px) {
  .anneau {
    width: 300px;
    height: 300px;
  }
  .anneau__valeur {
    font-size: 96px;
  }
  .anneau--petit {
    width: 160px;
    height: 160px;
  }
  .anneau--petit .anneau__valeur {
    font-size: 48px;
  }
}

/* ---------- Grandes cartes (ch. 12 et 14) ---------- */
.carte {
  border-radius: var(--arrondi-carte);
  padding: var(--marge-carte);
}
.carte--amethyste {
  background: var(--aux-amethyste);
  color: #fff;
  --s-texte: #fff;
  --s-texte-2: rgb(255 255 255 / 0.84);
  --s-jeu: #fff;
  --s-lien: #fff;
  --s-filet: rgb(255 255 255 / 0.32);
  --s-focus: #fff;
}
.carte--or,
.carte--papier,
.tuile,
.logo-menu__fenetre {
  color-scheme: light;
}
.carte--or {
  background: var(--aux-or);
  color: var(--aux-encre);
  --s-texte: var(--aux-encre);
  --s-texte-2: rgb(19 20 26 / 0.8);
  --s-jeu: var(--aux-encre);
  --s-lien: var(--aux-encre);
  --s-filet: rgb(19 20 26 / 0.4);
  --s-focus: var(--aux-encre);
}
/* Ce qui attend le client : un panneau sombre bordé d'Or, pas un aplat jaune (21/09/2026). */
.carte--attente {
  background: var(--aux-encre-2);
  color: var(--aux-papier);
  border: 1px solid var(--aux-or);
  --s-texte: var(--aux-papier);
  --s-texte-2: var(--aux-gris-sombre);
  --s-jeu: var(--aux-or);
  --s-lien: var(--aux-amethyste-clair);
  --s-filet: var(--aux-filet-sombre);
  --s-att: var(--aux-or);
  --s-focus: var(--aux-amethyste-clair);
}
.carte--attente .champ textarea,
.carte--attente .champ input {
  background: rgb(255 255 255 / 0.06);
}
/* Sur fond sombre, la réponse choisie s'éclaircit (au lieu de s'assombrir). */
.carte--attente .choix label:has(input:checked) {
  background: rgb(255 255 255 / 0.08);
}
.carte--emeraude {
  background: var(--aux-emeraude-profond);
  color: #fff;
  --s-texte: #fff;
  --s-texte-2: rgb(255 255 255 / 0.84);
  --s-jeu: #fff;
  --s-filet: rgb(255 255 255 / 0.32);
}
.carte--encre {
  background: var(--aux-encre);
  color: var(--aux-papier);
  border: 1px solid var(--aux-filet-sombre);
  --s-texte: var(--aux-papier);
  --s-texte-2: var(--aux-gris-sombre);
  --s-jeu: var(--aux-amethyste-clair);
  --s-filet: var(--aux-filet-sombre);
}
.carte--papier {
  background: var(--aux-papier-fonce);
  color: var(--aux-encre);
  --s-texte: var(--aux-encre);
  --s-texte-2: var(--aux-gris-clair);
  --s-jeu: var(--aux-amethyste);
  --s-filet: var(--aux-filet-clair);
}
.tuile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--arrondi-petit);
  background: var(--aux-papier);
  color: var(--aux-encre);
  --s-texte: var(--aux-encre);
  --s-texte-2: var(--aux-gris-clair);
  --s-lien: var(--aux-amethyste);
  --s-ok: var(--aux-emeraude-profond);
  --s-focus: var(--aux-amethyste);
}
.tuile__titre {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.tuile__texte {
  font-size: 15px;
  color: var(--aux-gris-clair);
}

.tete-section {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: var(--ecart-titre-contenu);
}
.tete-section--colonne {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ecart-titre-texte);
  max-width: var(--bloc-texte-max);
}
@media (max-width: 899px) {
  .tete-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* La dernière étape */
.carte-etape {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere);
  align-items: end;
  min-height: 440px;
}
.carte-etape__texte {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.carte-etape__tuile {
  grid-column: span 4;
}
.signature-equipe {
  font-size: 15px;
  color: var(--s-texte-2);
}
@media (max-width: 899px) {
  .carte-etape {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    min-height: 0;
  }
}

/* À vous : question ou livrable */
.carte-action {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 48px;
  row-gap: 28px;
}
.carte-action + .carte-action {
  margin-top: var(--ecart-cartes);
}
.carte-action__tete {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.carte-action__form {
  grid-column: span 6;
}
.carte-action__titre {
  font-size: max(32px, calc(56 / 1440 * 100vw));
  line-height: 1;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
@media (max-width: 899px) {
  .carte-action {
    display: flex;
    flex-direction: column;
  }
  .carte-action__titre {
    font-size: 32px;
  }
}
.rien {
  display: flex;
  flex-direction: column;
  gap: var(--ecart-titre-texte);
  max-width: var(--bloc-texte-max);
}

/* ---------- Formulaires (partie VI, ch. 28) ---------- */
.formulaire {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.choix {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.choix label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 12px 20px;
  border: 1.5px solid var(--s-filet);
  border-radius: var(--arrondi-controle);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color var(--duree-survol) var(--courbe), background-color var(--duree-survol) var(--courbe);
}
.choix label:hover {
  border-color: currentColor;
}
.choix label:has(input:checked) {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
  background: rgb(19 20 26 / 0.06);
}
.choix input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: currentColor;
}
.champ {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.champ label {
  font-size: 15px;
  font-weight: 600;
}
.facultatif {
  font-weight: 400;
  color: var(--s-texte-2);
}
.champ input,
.champ textarea {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1.5px solid var(--s-filet);
  border-radius: var(--arrondi-controle);
  background: rgb(255 255 255 / 0.4);
  font-size: 17px;
  color: inherit;
}
.champ input[type="file"] {
  background: none;
}
.champ textarea {
  min-height: 80px;
  resize: vertical;
}
.pied-formulaire {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
}
.note-suspendu {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 460px;
  font-size: 15px;
  color: var(--s-texte-2);
}
.note-suspendu svg {
  flex-shrink: 0;
  margin-top: 2px;
}
@media (max-width: 899px) {
  .pied-formulaire {
    flex-direction: column;
    align-items: stretch;
  }
  .choix label {
    min-height: 56px;
    font-size: 17px;
  }
}

/* ---------- Boutons et liens ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--arrondi-controle);
  background: var(--aux-amethyste);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duree-survol) var(--courbe);
}
.bouton:hover {
  background: color-mix(in srgb, var(--aux-amethyste) 86%, #000);
}
.bouton--secondaire {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--s-texte);
  font-size: 15px;
}
.bouton--secondaire:hover {
  background: rgb(128 128 140 / 0.12);
}
.bouton--large {
  width: 100%;
}
.bouton svg {
  flex-shrink: 0;
}
.bouton {
  flex-shrink: 0;
  white-space: nowrap;
}
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--s-lien);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.lien-fleche:hover {
  text-decoration: underline;
}
.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.cta p {
  font-size: 15px;
  color: var(--s-texte-2);
}
@media (max-width: 899px) {
  .cta,
  .cta .bouton {
    width: 100%;
  }
}

/* ---------- Statuts (partie VI) ---------- */
.statut {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--s-texte);
}
.carre {
  display: inline-block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--s-texte-2);
}
.carre--ok {
  background: var(--s-ok);
}
.carre--att {
  background: var(--s-att);
}
.carre--info {
  background: var(--s-info);
}
/* Un carré de couleur n'est jamais collé à son libellé. */
.etiquette .carre,
.pan__ligne .carre {
  margin-right: 8px;
}
/* Un état se lit à sa couleur, carré et libellé ensemble. */
.etat {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.etat--ok {
  color: var(--s-ok);
}
.etat--att {
  color: var(--s-att);
}
.etat--info {
  color: var(--s-info);
}
.etat--neutre {
  color: var(--s-texte-2);
}
.etiquette--att {
  color: var(--s-att);
}

/* ---------- Historique ---------- */
.haut-histo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.haut-histo__textes {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filtres a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--s-filet);
  border-radius: var(--arrondi-controle);
  color: var(--s-texte-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.filtres a:hover {
  color: var(--s-texte);
}
.filtres a[aria-current="page"] {
  border-color: var(--s-texte);
  background: var(--s-texte);
  color: var(--aux-encre);
}
.projet-tete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: var(--ecart-titre-contenu);
}
.projet-tete__textes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.projet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-size: 15px;
  color: var(--s-texte);
}
.brief {
  margin-bottom: var(--ecart-titre-contenu);
}
.brief__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}
.brief__ligne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 160px;
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--s-filet);
}
.brief__nom {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.brief__fact {
  font-size: 15px;
  color: var(--s-texte);
}
.jour {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere);
  border-top: 1px solid var(--s-filet);
}
.jour__date {
  grid-column: span 3;
  padding-top: 22px;
  font-size: var(--t-titre-3);
  font-weight: 700;
  line-height: 1.15;
}
.jour__evts {
  grid-column: span 9;
}
.evt {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--s-filet);
}
.evt:first-child {
  border-top: 0;
}
.evt__heure {
  padding-top: 2px;
  font-family: var(--police-mono);
  font-size: 13px;
  color: var(--s-texte-2);
}
.evt__corps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.evt__type {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--police-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-texte-2);
}
.evt__titre {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.evt__texte {
  color: var(--s-texte);
}
.evt__texte p + p {
  margin-top: 6px;
}
.evt__auteur {
  font-size: 15px;
  color: var(--s-texte-2);
}
.evt__tuile {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  margin-top: 6px;
  padding: 14px 18px;
  border-radius: var(--arrondi-petit);
  background: var(--s-surface);
  color: var(--s-texte);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.vide-bloc {
  padding: 24px 0;
  border-top: 1px solid var(--s-filet);
  color: var(--s-texte);
}
@media (max-width: 899px) {
  .haut-histo,
  .projet-tete {
    flex-direction: column;
    align-items: flex-start;
  }
  .brief__ligne {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .brief__fact {
    grid-column: 1;
    grid-row: 2;
  }
  .jour {
    display: block;
    padding-top: 28px;
    border-top: 0;
  }
  .jour__date {
    padding: 0 0 4px;
    font-size: 22px;
  }
  .evt {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 0;
  }
  .evt__titre {
    font-size: 19px;
  }
}

/* ---------- Sans projet : les propositions du catalogue ---------- */
.haut-prop {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere);
  align-items: center;
}
.haut-prop__textes {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.haut-prop__logo {
  grid-column: span 4;
  display: flex;
  justify-content: flex-end;
}
.pile {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.carte-crm {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.carte-crm__textes {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}
.faits-crm {
  display: flex;
  gap: 32px;
}
.fait {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--s-filet);
}
.fait__valeur {
  font-size: max(36px, calc(48 / 1440 * 100vw));
  line-height: 1;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fait__libelle {
  font-size: 15px;
  color: var(--s-texte-2);
}
.modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ecart-cartes);
  margin-top: var(--ecart-cartes);
}
.module {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 380px;
}
.module__textes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.module__titre {
  font-size: max(32px, calc(44 / 1440 * 100vw));
  line-height: 1;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.etapes-prop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gouttiere);
}
.etape-prop {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--s-filet);
}
.etape-prop__num {
  font-family: var(--police-mono);
  font-size: 13px;
  color: var(--s-jeu);
}
.etape-prop p:last-child {
  font-size: 16px;
  color: var(--s-texte-2);
}
.en-service {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
@media (max-width: 899px) {
  .haut-prop {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 40px;
  }
  .haut-prop__textes {
    gap: 28px;
  }
  .carte-crm {
    gap: 32px;
  }
  .faits-crm {
    flex-direction: column;
    gap: 20px;
  }
  .modules,
  .etapes-prop {
    grid-template-columns: minmax(0, 1fr);
  }
  .module {
    min-height: 0;
  }
  .etapes-prop {
    gap: 28px;
  }
}

/* ---------- Compte ---------- */
.fiche > div {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--s-filet);
}
.fiche dt {
  color: var(--s-texte-2);
}
.fiche dd {
  font-weight: 600;
}
.bloc + .bloc {
  margin-top: var(--section-v);
}
.appareil {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--s-filet);
}
.appareil__nom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
}
.appareil__meta {
  grid-column: 1;
  font-size: 15px;
  color: var(--s-texte-2);
}
.appareil form {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.etiquette-inline {
  padding: 1px 6px;
  border: 1px solid var(--s-filet);
  border-radius: var(--arrondi-etiquette);
  font-size: 12px;
  font-weight: 500;
}
.actions-compte {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.bouton--destructif {
  color: var(--aux-rouge-clair);
}
@media (max-width: 899px) {
  .fiche > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ---------- Pied ---------- */
.pied {
  flex-grow: 1;
  padding: 40px var(--marge-laterale);
  background: var(--aux-encre);
  border-top: 1px solid var(--aux-filet-sombre);
  color: var(--aux-gris-sombre);
  --s-texte: var(--aux-papier);
  --s-texte-2: var(--aux-gris-sombre);
  --s-lien: var(--aux-amethyste-clair);
  --s-filet: var(--aux-filet-sombre);
  --s-focus: var(--aux-amethyste-clair);
}
.pied__barre {
  max-width: var(--bloc-large-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  color: var(--s-texte-2);
}
.pied .marque {
  color: var(--s-texte);
  font-size: 18px;
}
@media (max-width: 899px) {
  .pied__barre {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Confirmation (ch. 28) : en bas, disparaît après 5 s ---------- */
.confirmation {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  border-radius: var(--arrondi-petit);
  background: var(--aux-papier);
  color: var(--aux-encre);
  font-weight: 500;
  box-shadow: var(--ombre-menu);
  transition: opacity var(--duree-etat) var(--courbe);
}
.confirmation[data-cache] {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Connexion ---------- */
.connexion {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 32px var(--marge-laterale) 64px;
}
.connexion__cadre {
  flex-grow: 1;
  width: 100%;
  max-width: var(--bloc-large-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.connexion__haut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.connexion__corps {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.connexion__textes {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 16px;
}
.connexion__titre {
  font-size: 56px;
  line-height: 1;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.carte-connexion {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px;
  border-radius: var(--arrondi-carte);
  background: var(--b-fond);
  color: var(--texte);
  --s-texte: var(--texte);
  --s-texte-2: var(--texte-2);
  --s-filet: color-mix(in srgb, var(--texte) 55%, transparent);
  --s-lien: var(--action);
  --s-focus: var(--focus);
}
.carte-connexion .champ input {
  background: var(--champ-fond);
  font-family: var(--police-mono);
  font-size: 20px;
  letter-spacing: 0.08em;
}
.carte-connexion .champ input.code {
  font-size: 24px;
  letter-spacing: 0.35em;
  text-align: center;
}
.aide {
  font-size: 14px;
  color: var(--s-texte-2);
}
.champ--erreur input {
  border-color: var(--etat-erreur);
}
.champ--erreur .aide {
  color: var(--etat-erreur);
  font-weight: 500;
}
.carte-connexion__bas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--texte) 18%, transparent);
  font-size: 15px;
  color: var(--s-texte-2);
}
.bouton-texte {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--s-lien);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.bouton-texte:hover {
  text-decoration: underline;
}
.case {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.case input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--action);
}
.case span {
  display: flex;
  flex-direction: column;
}
.note-carte {
  padding: 14px 16px;
  border: 1px solid var(--etat-attention);
  border-radius: var(--arrondi-petit);
  font-size: 15px;
}
.message {
  padding: 14px 16px;
  border-radius: var(--arrondi-petit);
  background: color-mix(in srgb, var(--texte) 8%, transparent);
  font-size: 15px;
}
@media (min-width: 900px) {
  .connexion__titre {
    font-size: calc(104 / 1440 * 100vw);
  }
}
@media (max-width: 899px) {
  .connexion {
    padding: 20px var(--marge-laterale) 40px;
  }
  .connexion__corps {
    flex-direction: column;
    align-items: stretch;
  }
  .carte-connexion {
    width: 100%;
    padding: 28px 24px;
  }
}

/* Tailles du logo (sans style en ligne : CSP stricte) */
.logo--32 {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
.logo--48 {
  width: 48px;
  height: 48px;
  font-size: 17px;
}
img.logo--48 {
  padding: 4px;
}
.logo--64 {
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.logo--200 {
  width: 200px;
  height: 200px;
  font-size: 68px;
}
@media (max-width: 899px) {
  .logo--64 {
    width: 56px;
    height: 56px;
  }
  .logo--200 {
    width: 120px;
    height: 120px;
    font-size: 40px;
  }
}
.cta--bas {
  margin-top: var(--ecart-titre-contenu);
}
.apres {
  margin-top: 24px;
}
.pile > .interrupteur {
  align-self: flex-start;
}

/* ---------- Commencer un projet : le questionnaire ---------- */
.entete--public {
  --s-lien: var(--aux-amethyste-clair);
}
.questionnaire {
  display: flex;
  flex-direction: column;
}
.q-bloc {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--s-filet);
}
.q-bloc__tete {
  grid-column: 1 / span 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-bloc__num {
  font-family: var(--police-mono);
  font-size: 14px;
  color: var(--s-jeu);
}
.q-bloc__champs {
  grid-column: 6 / span 7;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.q-paire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.questionnaire .champ input:not([type="radio"], [type="checkbox"], [type="file"]),
.questionnaire .champ textarea {
  background: var(--champ-fond);
  border-color: color-mix(in srgb, var(--s-texte) 40%, transparent);
}
.questionnaire .champ input[type="file"] {
  font-size: 15px;
}
/* Choix d'un fichier : le contrôle du navigateur, habillé à la marque (bible ch. 28). */
.champ input[type="file"],
.logo-menu input[type="file"] {
  min-height: 52px;
  padding: 8px 12px;
  border: 1.5px solid color-mix(in srgb, var(--s-texte) 40%, transparent);
  border-radius: var(--arrondi-controle);
  background: var(--champ-fond);
  color: var(--s-texte-2);
  cursor: pointer;
}
.champ input[type="file"]::file-selector-button,
.logo-menu input[type="file"]::file-selector-button {
  height: 34px;
  margin: 0 14px 0 0;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--s-texte) 45%, transparent);
  border-radius: var(--arrondi-controle);
  background: transparent;
  color: var(--s-texte);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--duree-survol) var(--courbe), border-color var(--duree-survol) var(--courbe);
}
.champ input[type="file"]:hover::file-selector-button,
.logo-menu input[type="file"]:hover::file-selector-button {
  border-color: var(--s-texte);
  background: color-mix(in srgb, var(--s-texte) 8%, transparent);
}
.champ input[type="file"]:focus-visible {
  outline: 2px solid var(--s-focus);
  outline-offset: 2px;
}
.champ--erreur input[type="file"] {
  border-color: var(--etat-erreur);
}
.legende {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}
.choix--ligne {
  flex-direction: row;
  flex-wrap: wrap;
}
.choix--ligne label {
  min-height: 52px;
  font-size: 16px;
}
.choix .choix__double {
  align-items: flex-start;
  padding: 16px 20px;
}
.choix__double input {
  margin-top: 3px;
}
.choix__double > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.choix__double strong {
  font-weight: 600;
}
.champ--erreur .choix label {
  border-color: var(--etat-erreur);
}
.message--erreur {
  margin-bottom: 24px;
  border-left: 4px solid var(--etat-erreur);
}
.q-envoi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 40px;
  border-top: 1px solid var(--s-filet);
}
.fiche--courte > div {
  grid-template-columns: 140px minmax(0, 1fr);
  padding: 0;
  border: 0;
}
/* Cases et boutons radio dans un champ : pas la taille d'un champ de saisie. */
.champ .choix input,
.champ .case input {
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}
.champ--erreur .choix .aide {
  color: var(--s-texte-2);
  font-weight: 400;
}
/* Champ piège : invisible pour les personnes, rempli par les robots. */
.piege {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 899px) {
  .q-bloc {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 0;
  }
  .q-bloc__tete,
  .q-bloc__champs {
    grid-column: 1;
  }
  .q-paire {
    grid-template-columns: minmax(0, 1fr);
  }
  .choix--ligne {
    flex-direction: column;
  }
  .q-envoi .bouton {
    width: 100%;
  }
  .entete--public .bouton-texte {
    grid-area: nav;
  }
}

/* Le questionnaire est arrivé : ce qui se passe maintenant. */
.suite-q {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 40em;
  padding: 24px;
  border: 1px solid var(--s-filet);
  border-radius: var(--arrondi-petit);
}

/* Écran moyen : le nom de l'entreprise laisse la place à la navigation (le logo reste). */
@media (min-width: 900px) and (max-width: 1199px) {
  .puce-entreprise__nom {
    display: none;
  }
}

/* Vos données : listes et paragraphes dans les blocs numérotés. */
.donnees {
  gap: 16px;
}
.donnees p,
.donnees li {
  max-width: 40em;
}
.liste {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.liste li {
  position: relative;
  padding-left: 20px;
}
.liste li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--s-texte-2);
}

/* L'historique suit l'ordre du brief (21/09/2026), plus les jours. */
.brief__dit,
.brief__attente,
.brief__changement {
  grid-column: 1 / -1;
  font-size: 16px;
  color: var(--s-texte);
}
.brief__dit {
  max-width: 46em;
  font-style: italic;
}
.brief__attente {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--s-texte);
}
.brief__changements {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--s-filet);
}
.brief__changement {
  font-size: 15px;
  color: var(--s-texte);
}
.evts {
  display: flex;
  flex-direction: column;
}
.etapes-histo {
  display: flex;
  flex-direction: column;
}
.etape-histo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--s-filet);
}
.etape-histo__nom {
  font-size: 19px;
  font-weight: 600;
}
@media (max-width: 899px) {
  .etape-histo {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

/* ---------- Tableau de bord (accueil, 21/09/2026) ----------
   Écran d'outil : panneaux denses, filets 1 px, tout visible sans descendre. */
.tableau-bord {
  background: var(--aux-encre);
  color: var(--aux-papier);
  padding: 24px var(--marge-laterale) 32px;
  --s-texte: var(--aux-papier);
  --s-texte-2: var(--aux-gris-sombre);
  --s-filet: var(--aux-filet-sombre);
  --s-jeu: var(--aux-amethyste-clair);
  --s-lien: var(--aux-amethyste-clair);
  --s-ok: var(--aux-emeraude-clair);
  --s-att: var(--aux-or);
  --s-info: var(--aux-amethyste-clair);
  --s-piste: rgb(241 240 244 / 0.12);
  --s-focus: var(--aux-amethyste-clair);
}
.bord__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}
.profil--compact {
  gap: 14px;
}
.profil--compact .profil__nom {
  font-size: 22px;
}
.statut--grand {
  font-size: 16px;
  font-weight: 600;
}
.bord__grille {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.pan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--s-filet);
  border-radius: var(--arrondi-petit);
  background: var(--aux-encre-2);
}
.pan__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pan__titre {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
.pan__titre--grand {
  font-size: 26px;
  font-stretch: 75%;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.pan__texte,
.pan__ligne {
  font-size: 15px;
  color: var(--s-texte);
}
.pan__ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--s-texte);
}
.pan--avancement {
  grid-column: span 4;
  gap: 14px;
}
.pan--avancement .anneau {
  align-self: center;
  margin: 4px 0;
}
.pan--avancee {
  grid-column: span 8;
}
.pan--avous {
  grid-column: span 12;
}
.pan--attente {
  border-color: var(--aux-or);
}
.pan--brief {
  grid-column: span 12;
}
.pan--brief .mini-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}
.pan--brief .mini-liste__ligne:nth-child(2) {
  border-top: 0;
}
.mini-liste {
  display: flex;
  flex-direction: column;
}
.mini-liste__ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-top: 1px solid var(--s-filet);
  font-size: 15px;
}
.mini-liste__ligne:first-child {
  border-top: 0;
}
.mini-liste__ligne--courante .mini-liste__nom {
  font-weight: 600;
}
.mini-liste__nom {
  min-width: 0;
}
.mini-liste__etat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--s-texte);
}
.bouton--petit {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}
/* Le bouton « Répondre » descend en douceur jusqu'à la demande, qui s'éclaire un instant. */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
main {
  scroll-margin-top: 24px;
}
.carte-action__titre {
  scroll-margin-top: 96px;
}
.carte-action--vise,
.carte-action:has(:target) {
  border-color: var(--aux-or);
  box-shadow: 0 0 0 3px rgb(245 185 30 / 0.35);
}
.bouton--descendre {
  min-height: 48px;
  font-size: 16px;
}
.section--courte {
  padding-top: 32px;
  padding-bottom: 40px;
}
@media (max-width: 1199px) {
  .pan--avancement,
  .pan--avancee,
  .pan--avous {
    grid-column: span 6;
  }
}
@media (max-width: 899px) {
  .pan--brief .mini-liste {
    grid-template-columns: minmax(0, 1fr);
  }
  .pan--brief .mini-liste__ligne:nth-child(2) {
    border-top: 1px solid var(--s-filet);
  }
}
@media (max-width: 899px) {
  .pan {
    grid-column: 1 / -1 !important;
  }
  .bord__tete {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
.bord__intro {
  display: flex;
  flex-direction: column;
  gap: var(--ecart-titre-texte);
  max-width: var(--bloc-texte-max);
  padding: 8px 0 4px;
}

/* Les autres écrans reprennent la densité du tableau de bord (21/09/2026). */
.bord__colonne {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pan--projet {
  gap: 16px;
}
.pan--projet .projet-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--s-filet);
}
.pan--large {
  grid-column: span 7;
}
.pan--court {
  grid-column: span 5;
}
.fiche--compacte > div {
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 10px 0;
  font-size: 15px;
}
.fiche--compacte dd {
  font-weight: 500;
}
.enligne {
  display: inline;
}
.tableau-bord .filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
@media (max-width: 899px) {
  .pan--projet .projet-tete {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Propositions : mêmes cartes que le site, mais à la densité de l'espace (21/09/2026). */
.tableau-bord + .section .carte-crm {
  gap: 28px;
  padding: 28px 32px;
}
/* Bento du handoff : 7 / 5 puis 5 / 7 colonnes, les modules ne se ressemblent pas. */
.tableau-bord + .section .modules {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.tableau-bord + .section .module:nth-child(4n + 1),
.tableau-bord + .section .module:nth-child(4n) {
  grid-column: span 7;
}
.tableau-bord + .section .module:nth-child(4n + 2),
.tableau-bord + .section .module:nth-child(4n + 3) {
  grid-column: span 5;
}
.tableau-bord + .section .module {
  min-height: 0;
  gap: 16px;
  padding: 22px 24px;
}
.tableau-bord + .section .module__textes {
  gap: 10px;
}
.tableau-bord + .section .module__titre {
  font-size: 22px;
  line-height: 1.15;
}
.tableau-bord + .section .faits-crm {
  gap: 20px;
}
@media (max-width: 1199px) {
  .tableau-bord + .section .module {
    grid-column: span 6 !important;
  }
}
@media (max-width: 767px) {
  .tableau-bord + .section .module {
    grid-column: 1 / -1 !important;
  }
}

/* Chiffres du tableau de bord : une clé, une valeur, pas de phrase. */
.stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.stat__cle {
  min-width: 118px;
  font-family: var(--police-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-texte-2);
}
.stat__val {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.stat__val--ok {
  color: var(--s-ok);
}
.stat__val--att {
  color: var(--s-att);
}
.stat__val time {
  font-family: var(--police-mono);
}
.pan__depuis {
  font-size: 15px;
}
.neuf {
  margin-right: 8px;
  padding: 1px 6px;
  border-radius: var(--arrondi-etiquette);
  background: var(--s-info);
  color: var(--aux-encre);
  font-family: var(--police-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Les mêmes chiffres, en ligne (en-tête d'un projet dans l'historique). */
.stats--ligne {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.stats--ligne .stat {
  flex-direction: column;
  gap: 0;
}
.stats--ligne .stat__cle {
  min-width: 0;
}

/* ---------- Moins de gris (21/09/2026, demande de Lancelot) ----------
   Le gris (--s-texte-2) ne sert plus qu'aux petites étiquettes mono (étiquette, clé de chiffre,
   heure, type, libellé de fiche) et à l'état neutre. Tout ce qu'un humain a écrit est en Papier. */
.tableau-bord .chapeau,
.tableau-bord .aide,
.tableau-bord .note-suspendu {
  color: var(--s-texte);
}

/* ---------- Accueil plein écran (21/09/2026) ----------
   À l'arrivée, le tableau de bord occupe tout l'écran ; la demande en attente est la section
   suivante, sous la ligne de flottaison, atteinte par le bouton « Répondre ». */
.tableau-bord--plein {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
.tableau-bord--plein > .contenu {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}
.tableau-bord--plein .bord__grille {
  flex: 1;
  align-items: stretch;
}
.avous {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* La barre « À vous » doit être visible dès la connexion, sur n'importe quel appareil
   (Lancelot, 22/09/2026). Sur téléphone, elle passe donc juste sous le titre du projet. */
@media (max-width: 899px) {
  .tableau-bord--plein > .contenu > .bord__tete {
    order: -2;
  }
  .tableau-bord--plein > .contenu > .pan--avous {
    order: -1;
  }
}
@media (min-width: 900px) {
  /* 88 px de barre + son filet : le tableau de bord tient exactement dans l'écran, jamais
     plus — si l'écran est court, ce sont les panneaux qui défilent, pas la barre qui tombe. */
  .tableau-bord--plein {
    height: calc(100dvh - 89px);
  }
  .tableau-bord--plein > .contenu {
    min-height: 0;
  }
  /* Une seule rangée en 1fr : sur un écran court, les panneaux se serrent (et défilent à
     l'intérieur) au lieu de pousser la barre « À vous » hors de l'écran. */
  .tableau-bord--plein .bord__grille {
    min-height: 0;
    gap: 16px;
    grid-template-rows: minmax(0, 1fr);
  }
  .tableau-bord--plein .pan {
    min-height: 0;
  }
  .tableau-bord--plein .bord__droite {
    min-height: 0;
  }
  /* La carte du pourcentage ne défile jamais (Lancelot, 22/09) : sur un écran court, elle
     se réorganise (l'anneau passe à côté des chiffres) au lieu de cacher une ligne. */
  .tableau-bord--plein .pan--avancement {
    overflow: hidden;
  }
  /* Aucune de ces cartes ne défile (Lancelot, 22/09) : elles se serrent, un point c'est tout. */
  .tableau-bord--plein .pan--avancee,
  .tableau-bord--plein .pan--route {
    overflow: hidden;
  }
  .tableau-bord--plein .pan--avancement {
    grid-column: span 4;
    justify-content: space-between;
    gap: clamp(8px, 1.6vh, 14px);
    padding: clamp(16px, 2.6vh, 24px) 28px clamp(14px, 2.2vh, 20px);
  }
  .tableau-bord--plein .bord__droite {
    grid-column: span 8;
    gap: 16px;
  }
  /* Les chiffres s'étalent, séparés par un filet : plus lisible, moins vide. */
  .tableau-bord--plein .pan--avancement .stats {
    gap: 0;
    margin-top: 0;
  }
  .tableau-bord--plein .pan--avancement .stat {
    align-items: baseline;
    justify-content: space-between;
    padding: clamp(5px, 1.2vh, 11px) 0;
    border-top: 1px solid var(--s-filet);
  }
  .tableau-bord--plein .pan--avancement .stat:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .tableau-bord--plein .pan--avancement .stat:last-child {
    padding-bottom: 0;
  }
  .tableau-bord--plein .pan--avancee {
    justify-content: space-between;
    gap: clamp(10px, 2vh, 18px);
    padding: clamp(16px, 2.8vh, 26px) 30px;
  }
  .tableau-bord--plein .pan--route {
    padding: clamp(14px, 2.4vh, 22px) 30px clamp(12px, 2vh, 18px);
  }
  .tableau-bord--plein .route__ligne {
    padding: clamp(5px, 0.9vh, 8px) 10px;
  }
  .tableau-bord--plein .activite__barres {
    height: clamp(22px, 4.4vh, 40px);
  }
  .tableau-bord--plein .pan--avancee .pan__titre--grand {
    line-height: 1.15;
  }
  .tableau-bord--plein .anneau--petit {
    width: clamp(112px, 19vh, 176px);
    height: clamp(112px, 19vh, 176px);
  }
  .tableau-bord--plein .pan--avous {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px 28px;
  }
  .tableau-bord--plein .pan--avous .avous {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
  }
  .tableau-bord--plein .pan--avous .stats {
    margin-top: 0;
  }
  /* L'écran est plus grand : l'anneau et les chiffres le sont aussi. */
  .tableau-bord--plein .anneau--petit .anneau__valeur {
    font-size: clamp(32px, 5.6vh, 52px);
    transform: translateY(-5px);
  }
  .tableau-bord--plein .livrees__part {
    font-size: 26px;
  }
  .tableau-bord--plein .pan__titre--grand {
    font-size: 32px;
  }
  .tableau-bord--plein .stat {
    gap: 16px;
  }
  .tableau-bord--plein .stat__val {
    font-size: 19px;
  }
  .tableau-bord--plein .pan--avancement .stat__cle {
    font-size: 12px;
  }
  .tableau-bord--plein .pan__texte {
    font-size: 16px;
  }
  .tableau-bord--plein .stat__cle {
    min-width: 132px;
  }
}
.pan__haut {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 900px) {
  .tableau-bord--plein .pan__haut {
    gap: 12px;
  }
}
/* Section 2 : la demande. Franchement séparée du tableau de bord. */
.section--suite {
  border-top: 1px solid var(--aux-filet-sombre);
  padding-top: 40px;
  padding-bottom: 48px;
}
.section--suite .tete-section {
  margin-bottom: 20px;
}
/* Téléphone : l'anneau et les chiffres ne tiennent pas côte à côte. */
@media (max-width: 599px) {
  .pan--avancement {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .stat__cle {
    min-width: 96px;
  }
}

/* ---------- Data-viz du suivi (22/09/2026, d'après le handoff de Lancelot) ----------
   Mêmes idées que la maquette (grand anneau, barres d'activité, feuille de route),
   mais aux couleurs de la bible : Améthyste clair = en cours, Or = en attente de vous,
   Émeraude = livré, filet = à venir. */
.anneau__legende {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 27%;
  text-align: center;
  font-family: var(--police-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-texte-2);
}
.livrees {
  font-size: 15px;
}
.livrees__part {
  margin-right: 8px;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.livrees__total {
  color: var(--s-texte-2);
}

/* Une barre par jour ouvré : hauteur = nombre d'avancées du jour. */
.activite {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--s-filet);
}
.activite__barres {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}
.barre {
  flex: 1;
  border-radius: 2px;
  background: var(--s-jeu);
  transform-origin: bottom;
}
.barre--futur {
  background: var(--s-piste);
}
.barre--attente {
  background: var(--s-att);
}
.barre--h0 {
  height: 14%;
}
.barre--h1 {
  height: 32%;
}
.barre--h2 {
  height: 52%;
}
.barre--h3 {
  height: 76%;
}
.barre--h4 {
  height: 100%;
}
.activite__pied {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* Feuille de route : les lignes numérotées (la barre segmentée redisait la même chose). */
.route {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route__ligne {
  display: grid;
  grid-template-columns: 22px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: var(--arrondi-controle);
  border-top: 1px solid var(--s-filet);
  font-size: 15px;
}
.route__ligne:first-child {
  border-top: 0;
}
.route__ligne--vise {
  border-top-color: transparent;
  background: color-mix(in srgb, var(--s-att) 8%, transparent);
  box-shadow: inset 2px 0 0 var(--s-att);
}
.route__num {
  font-family: var(--police-mono);
  font-size: 12px;
  color: var(--s-texte-2);
}
.route__nom {
  min-width: 0;
}
.route__etat {
  font-family: var(--police-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.route__etat--ok {
  color: var(--s-ok);
}
.route__etat--att {
  color: var(--s-att);
}
.route__etat--neutre {
  color: var(--s-texte-2);
}
.bord__droite {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 8;
}
@media (max-width: 899px) {
  .bord__droite {
    grid-column: 1 / -1;
  }
  .route__ligne {
    grid-template-columns: 22px 10px minmax(0, 1fr);
    row-gap: 4px;
  }
  .route__etat {
    grid-column: 3;
  }
}

/* Anneau et chiffres : l'un au-dessus de l'autre quand il y a de la place, côte à côte
   dès que l'écran est court — la carte du pourcentage ne défile jamais (22/09/2026). */
.chiffres {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chiffres__colonne {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.pan--avancement .anneau {
  align-self: center;
}
@media (min-width: 900px) and (max-height: 860px) {
  .tableau-bord--plein .chiffres {
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }
  .tableau-bord--plein .chiffres .anneau--petit {
    width: clamp(104px, 17vh, 150px);
    height: clamp(104px, 17vh, 150px);
  }
  .tableau-bord--plein .chiffres .anneau__valeur {
    font-size: clamp(30px, 5vh, 44px);
  }
  .tableau-bord--plein .chiffres .anneau__legende {
    font-size: 9px;
  }
  /* La colonne des chiffres est étroite à côté de l'anneau : la clé ne réserve plus 132 px. */
  .tableau-bord--plein .chiffres .stat__cle {
    min-width: 0;
    flex: none;
    white-space: nowrap;
  }
  .tableau-bord--plein .chiffres .stat {
    gap: 10px;
  }
  .tableau-bord--plein .chiffres .stat__val {
    text-align: right;
  }
}
/* Écran vraiment court : on laisse tomber le lien « Voir le brief » (il reste dans
   Historique) plutôt que de couper la carte — elle ne défile pas. */
@media (min-width: 900px) and (max-height: 730px) {
  .tableau-bord--plein .pan--avancement .pan__texte {
    display: none;
  }
  .tableau-bord--plein .chiffres {
    gap: 18px;
  }
  .tableau-bord--plein .activite {
    padding-top: 10px;
  }
}
/* Le lien d'aperçu joint à un point d'avancement reste au bas de la carte. */
.pan__bas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.pan--avancee .evt__tuile {
  margin-top: 0;
  padding: 10px 16px;
  font-size: 14px;
}
.brief__apercu {
  grid-column: 1 / -1;
}
/* Le compteur ne se coupe jamais en deux lignes : il reste d'un bloc, un peu plus serré. */
.stat__val time {
  white-space: nowrap;
}
@media (min-width: 900px) {
  .tableau-bord--plein .stat__val time {
    font-size: 16px;
    letter-spacing: -0.01em;
  }
}
/* Ce que le client a déjà envoyé : ses fichiers, et le repli « Compléter ma réponse ». */
.evt__pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.completer {
  margin-top: 12px;
}
.completer > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--s-lien);
}
.completer > summary::marker {
  color: var(--s-texte-2);
}
.completer[open] > summary {
  margin-bottom: 12px;
}
.completer .formulaire {
  max-width: 46em;
  padding: 16px 18px;
  border: 1px solid var(--s-filet);
  border-radius: var(--arrondi-petit);
  background: var(--aux-encre-2);
}
/* « Renvoyer le code » en attente : on voit qu'il reviendra, sans qu'il ait l'air cassé. */
.carte-connexion__bas .bouton-texte:disabled {
  cursor: default;
  color: var(--s-texte-2);
}
.renvoi__attente {
  font-variant-numeric: tabular-nums;
}
/* Un module seul sur sa rangée (nombre impair) prend toute la largeur, sans trou à droite. */
@media (min-width: 1200px) {
  .tableau-bord + .section .module:last-child:nth-child(4n + 1),
  .tableau-bord + .section .module:last-child:nth-child(4n + 3) {
    grid-column: 1 / -1;
  }
}
/* Donner accès à une autre personne : quatre champs, deux par ligne. */
.acces__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}
.acces__form .actions,
.acces__form .aide {
  grid-column: 1 / -1;
}
@media (max-width: 599px) {
  .acces__form {
    grid-template-columns: minmax(0, 1fr);
  }
}
