/* Cockpit du banc : coquille du gabarit Contatutto (barre haute foncée, catégories en gras,
   fond crème, salutation + date, barre d'outils en bas). Seules les couleurs sont propres au banc. */
:root {
  --fond: #f6f3ec; --surface: #fffdf8; --encre: #18231d; --doux: #5f6b64; --trait: #e3ddcf;
  --barre: #13201a; --barre-encre: #e9efe9; --accent: #1f6b4a; --accent-clair: #e3f0e8;
  --alerte: #fbefc9; --alerte-encre: #6b4a00; --rouge: #a3302a; --rouge-clair: #f8e3e1;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--fond);
  color: var(--encre); font: 15px/1.5 Inter, system-ui, sans-serif; }
a { color: var(--accent); }
.mono { font-family: "JetBrains Mono", monospace; }
.espace { flex: 1; }

.barre-haute { display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: var(--barre);
  color: var(--barre-encre); }
.marque { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.marque .logo { color: #6fd39b; }
.marque .point { width: 7px; height: 7px; border-radius: 50%; background: #f2c230; display: inline-block; }
.section { padding-left: 16px; border-left: 1px solid #ffffff30; }
.qui { font-size: 13px; opacity: .8; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar.lettre { display: grid; place-items: center; background: #ffffff22; color: #fff; font-weight: 700; }
.sortir { color: var(--barre-encre); font-size: 13px; }

.categories { display: flex; gap: 32px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--trait);
  overflow-x: auto; }
.categories a { color: var(--encre); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .01em; white-space: nowrap; }
.categories a.actif { color: var(--accent); }
.categories sup { color: var(--rouge); font-size: 11px; }

.contenu { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 32px 24px 48px; }
.salut h1 { font-size: 30px; margin: 0; letter-spacing: -.01em; }
.date { color: var(--doux); margin: 2px 0 24px; }
.etiquette { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--doux); margin: 28px 0 12px; font-weight: 600; }
.aide { color: var(--doux); font-size: 13px; }
.ok { color: var(--accent); font-weight: 600; }

.bandeau { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--alerte);
  color: var(--alerte-encre); padding: 12px 16px; border-radius: 8px; }
.bouton { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 8px 14px;
  font: 600 14px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.bouton.clair { background: var(--accent-clair); color: var(--accent); }

.boite-mails { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--trait); border-left: 4px solid var(--accent); border-radius: 10px; color: var(--encre); text-decoration: none; }
.boite-mails > span:nth-child(2) { flex: 1; }
.boite-mails .icone { font-size: 26px; color: var(--accent); }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 16px; }
.carte h3 { margin: 0; font-size: 17px; }
.carte p { margin: 2px 0 12px; color: var(--doux); font-size: 13px; }
.carte.terne { opacity: .7; }
.liens { display: flex; gap: 8px; flex-wrap: wrap; }
.pastille { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--trait); color: var(--doux); }
.pastille.accepte { background: var(--accent-clair); color: var(--accent); }
.pastille.attente, .pastille.genant { background: var(--alerte); color: var(--alerte-encre); }
.pastille.refuse, .pastille.bloquant { background: var(--rouge-clair); color: var(--rouge); }
.pastille.idee { background: #e4ecf7; color: #2a4f80; }

.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tableau { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; }
.tableau td, .tableau th { padding: 8px 12px; border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.tableau th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--doux); }
.tableau tr.faite { opacity: .55; }
.tableau .texte { white-space: pre-wrap; max-width: 520px; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formulaire label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.formulaire .large { grid-column: 1 / -1; }
.formulaire select, .formulaire textarea { font: 15px Inter, sans-serif; padding: 8px; border: 1px solid var(--trait);
  border-radius: 6px; background: #fff; color: var(--encre); }
.formulaire .bouton { justify-self: start; }
.petit { font-size: 14px; margin: 24px 0 8px; }
.liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }

.seule { max-width: 520px; margin: 8vh auto; text-align: center; background: var(--surface); border: 1px solid var(--trait);
  border-radius: 14px; padding: 40px 36px; }
.seule h1 { font-size: 24px; margin: 0 0 10px; }
.seule p { color: var(--doux); }
.seule .g_id_signin { display: flex; justify-content: center; margin-top: 24px; }
.sablier { font-size: 40px; }

.ligne-compte { background: var(--surface); border: 1px solid var(--trait); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.ligne-compte.attente { border-color: #e7cf7d; }
.identite { display: flex; align-items: center; gap: 12px; }
.identite .avatar.lettre { background: var(--accent-clair); color: var(--accent); }
.actions { display: flex; gap: 8px; }
.acces { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px;
  padding-top: 10px; border-top: 1px dashed var(--trait); }

.barre-basse { display: flex; align-items: center; gap: 18px; padding: 8px 24px; font-size: 13px; color: var(--doux);
  background: var(--surface); border-top: 1px solid var(--trait); }
.barre-basse .signe i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

@media (max-width: 760px) {
  .deux, .formulaire { grid-template-columns: 1fr; }
  .qui { display: none; }
  .ligne-compte { grid-template-columns: 1fr; }
  .barre-basse span:first-child { display: none; }
}
.corps-mail { width: 100%; height: 75vh; border: 1px solid var(--trait); border-radius: 8px; background: #fff; }
.identifiants { margin-top: 12px; font-size: 13px; }
.identifiants summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.identifiants div { margin-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.identifiants code { font-family: "JetBrains Mono", monospace; background: var(--fond); padding: 2px 6px; border-radius: 4px; user-select: all; }
.apercu { background: #2a4f80; color: #fff; padding: 10px 24px; font-size: 14px; }
.apercu a { color: #fff; font-weight: 700; margin-left: 12px; }
.rouge { color: var(--rouge); font-weight: 600; }
.lien-parcours { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--trait); font-size: 14px; font-weight: 600; text-decoration: none; }
.progression { height: 8px; background: var(--trait); border-radius: 999px; overflow: hidden; margin: -12px 0 20px; }
.progression span { display: block; height: 100%; background: var(--accent); }
.entete-parcours p { color: var(--encre); font-size: 15px; margin: 0 0 12px; }
.entete-parcours .aide { margin-top: 12px; }
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0; display: grid; gap: 10px; }
.etape { counter-increment: etape; display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--trait); border-left: 4px solid var(--trait); border-radius: 10px; padding: 14px 16px; }
.etape h3 { margin: 0 0 4px; font-size: 16px; }
.etape h3::before { content: counter(etape) ". "; color: var(--doux); }
.etape p { margin: 0 0 6px; }
.etape .attendu { color: var(--doux); font-size: 14px; }
.etape.e-ok { border-left-color: var(--accent); }
.etape.e-probleme { border-left-color: #d9a400; }
.etape.e-bloque { border-left-color: var(--rouge); }
.etat-etape { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.choix { font: 600 13px Inter, sans-serif; padding: 6px 10px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--trait); background: #fff; color: var(--doux); }
.choix.ok.choisi { background: var(--accent); border-color: var(--accent); color: #fff; }
.choix.probleme.choisi { background: var(--alerte); border-color: #d9a400; color: var(--alerte-encre); }
.choix.bloque.choisi { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.choix.effacer { border-style: dashed; }
.etape-choisie { margin: 0; font-size: 14px; background: var(--accent-clair); padding: 8px 10px; border-radius: 6px; }
.formulaire input[type=file] { font: 14px Inter, sans-serif; }
.vignette { width: 72px; height: 48px; object-fit: cover; border: 1px solid var(--trait); border-radius: 4px; }
.defile { overflow-x: auto; }
.avancement td, .avancement th { white-space: nowrap; }
.avance { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .etape { grid-template-columns: 1fr; } .etat-etape { justify-content: flex-start; } }
