/* À Nouveau · espace client (étude de création).
   Une application web pour les clients du bureau : ordinateur (1280 × 800) et téléphone (390 × 844).
   Source Serif 4 pour les titres et les chiffres qui comptent, Source Sans 3 pour l'interface,
   chiffres tabulaires partout. Le côté est à l'encre, la page au papier. Le carmin ne marque que
   ce qui attend une action du client (une pièce à déposer, une question) et la marge. */
@font-face { font-family: "Source Serif 4"; src: url("../../fonts/SourceSerif4-opsz-wght.woff2") format("woff2"); font-weight: 200 900; font-display: block; }
@font-face { font-family: "Source Sans 3"; src: url("../../fonts/SourceSans3-wght.woff2") format("woff2"); font-weight: 200 900; font-display: block; }

:root {
  --encre: #1C2430;
  --encre-2: #2A3444;
  --grege: #BDB3A5;
  --grege-pale: #ECE7DF;
  --papier: #F7F4EE;
  --blanc: #FFFFFF;
  --carmin: #A3283D;
  --carmin-pale: #F6E3E5;
  --rose: #E8A3A9;
  --ardoise: #555E6C;
  --ligne: #D3DAE1;
  --filet: rgba(28, 36, 48, .13);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #7D7A75; font-family: var(--sans); color: var(--encre); font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.planche { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; padding: 40px; }
ol, ul { list-style: none; }
b { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ecran { width: 1280px; height: 800px; background: var(--papier); overflow: hidden; display: grid; grid-template-columns: 248px minmax(0, 1fr); flex: none; }
.sur { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--carmin); }
h1 { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.08; letter-spacing: -.012em; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; }
.sous { margin-top: 8px; font-size: 16px; color: var(--ardoise); }
.bouton { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 2px; background: var(--encre); color: var(--papier); font-weight: 600; font-size: 15px; white-space: nowrap; }
.bouton--trait { background: var(--blanc); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--encre); }
.lien { font-weight: 600; font-size: 14px; color: var(--encre); text-decoration: underline; text-decoration-color: var(--carmin); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.mini { margin-left: auto; height: 32px; padding: 0 12px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--carmin); color: var(--carmin); font-weight: 600; font-size: 13px; white-space: nowrap; }
.pastille { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grege); color: var(--encre); font-family: var(--serif); font-weight: 600; font-size: 15px; }
.pastille--clair { background: var(--grege-pale); box-shadow: inset 0 0 0 1.5px var(--grege); }
.etat { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.etat--classee { background: #E3E8EC; color: var(--encre); }
.etat--recue { background: var(--grege-pale); color: #4A4239; }
.etat--question { background: var(--carmin-pale); color: #8A1F31; }
.etat--envoi { background: var(--blanc); color: var(--ardoise); box-shadow: inset 0 0 0 1px var(--ligne); }

/* Le côté, à l'encre */
.cote { background: var(--encre); color: #D8D2C8; display: flex; flex-direction: column; padding: 22px 16px 22px; }
.cote__marque { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; border-bottom: 1px solid rgba(247, 244, 238, .14); }
.cote__marque img { width: 34px; height: auto; }
.cote__marque span { font-size: 13px; line-height: 1.25; color: var(--grege); }
.cote__marque b { display: block; font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--papier); }
.cote__dossier { display: flex; align-items: center; gap: 12px; margin: 20px 0 18px; padding: 0 8px; font-size: 13px; line-height: 1.3; color: var(--grege); }
.cote__dossier b { display: block; font-size: 14.5px; color: var(--papier); }
.cote nav { display: grid; gap: 2px; }
.cote nav button { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 2px; color: #D8D2C8; font-size: 15.5px; position: relative; }
.cote nav button.actif { background: rgba(247, 244, 238, .1); color: var(--papier); font-weight: 600; }
.cote nav button.actif::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; background: var(--rose); }
.cote nav i { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 11px; background: var(--rose); color: var(--encre); font-style: normal; font-size: 12.5px; font-weight: 700; }
.cote__aide { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(247, 244, 238, .14); font-size: 13.5px; color: var(--grege); }
.cote__aide b { color: var(--papier); font-size: 15px; }

/* La page */
.principal { padding: 34px 40px 30px 48px; display: flex; flex-direction: column; min-height: 0; position: relative; }
.principal::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: var(--carmin); opacity: .9; }
.entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 24px; }
.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.carte { background: var(--blanc); padding: 18px 20px 18px; box-shadow: 0 0 0 1px var(--filet); display: flex; flex-direction: column; }
.carte__t { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ardoise); }
.chiffre { margin-top: 8px; font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1; letter-spacing: -.01em; }
.chiffre small { font-size: 18px; color: var(--ardoise); letter-spacing: 0; }
.carte__p { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--ardoise); }
.carte__p b { display: block; font-size: 15px; color: var(--encre); }
.carte__p b.nb { display: inline; }
.jauge { margin-top: 16px; height: 8px; background: var(--grege-pale); }
.jauge i { display: block; height: 100%; background: var(--encre); }
.barres { margin-top: 14px; height: 40px; display: flex; align-items: flex-end; gap: 5px; border-bottom: 1px solid var(--encre); }
.barres i { flex: 1; background: var(--grege); }
.barres i.der { background: var(--encre); }

.bas { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; min-height: 0; flex: 1; }
.bloc { background: var(--blanc); padding: 18px 22px 8px; box-shadow: 0 0 0 1px var(--filet); }
.bloc__t { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 6px; }
.bloc__t--2 { margin-top: 14px; }
.echeances li { display: flex; align-items: center; gap: 16px; padding: 9px 0; border-top: 1px solid var(--ligne); }
.ech__d { width: 46px; flex: none; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ardoise); line-height: 1.1; }
.ech__d b { display: block; font-family: var(--serif); font-size: 24px; letter-spacing: 0; color: var(--encre); }
.ech__l { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ardoise); }
.ech__l b { display: block; font-size: 15px; color: var(--encre); }
.ech__m { font-weight: 600; white-space: nowrap; }
.ech--fait .ech__d b, .ech--fait .ech__l b { color: var(--ardoise); }
.ech--adeposer { position: relative; }
.ech--adeposer .mini { margin-left: 0; }
.msg-apercu { display: flex; gap: 14px; padding: 12px 0 14px; border-top: 1px solid var(--ligne); font-size: 14.5px; }
.msg-apercu .qui { font-size: 13px; font-weight: 600; color: var(--ardoise); margin-bottom: 3px; }
.joint { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 2px; background: var(--papier); box-shadow: inset 0 0 0 1px var(--ligne); font-size: 13.5px; font-weight: 600; }
.joint .ic { width: 16px; height: 16px; color: var(--carmin); }
.bulle--moi .joint { background: var(--encre-2); color: var(--papier); box-shadow: inset 0 0 0 1px rgba(247, 244, 238, .2); }
.bulle--moi .joint .ic { color: var(--rose); }
.docs li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ligne); font-size: 14px; }
.docs span { color: var(--ardoise); white-space: nowrap; }

/* Les pièces */
.mois { display: flex; gap: 4px; padding: 4px; background: var(--grege-pale); border-radius: 2px; }
.mois button { height: 36px; padding: 0 16px; border-radius: 2px; font-size: 14.5px; color: var(--ardoise); }
.mois button[aria-selected="true"] { background: var(--blanc); color: var(--encre); font-weight: 600; box-shadow: 0 0 0 1px var(--filet); }
.pieces { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
.depot { display: flex; align-items: center; gap: 18px; padding: 20px 22px; background: var(--blanc); border: 1.5px dashed #8E97A3; cursor: pointer; }
.depot.survol { border-color: var(--carmin); background: var(--carmin-pale); }
.depot > .ic { width: 34px; height: 34px; color: var(--carmin); }
.depot span:not(.bouton) { flex: 1; font-size: 14px; color: var(--ardoise); }
.depot b { display: block; font-size: 16px; color: var(--encre); }
.tableau { margin-top: 16px; width: 100%; border-collapse: collapse; background: var(--blanc); box-shadow: 0 0 0 1px var(--filet); font-size: 14.5px; }
.tableau th { padding: 11px 14px; border-bottom: 1.5px solid var(--encre); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: left; color: var(--ardoise); }
.tableau td { padding: 10px 14px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tableau td b { font-weight: 600; }
.tableau .date { color: var(--ardoise); white-space: nowrap; }
.tableau .n { text-align: right; white-space: nowrap; }
.tableau .note { display: block; font-size: 13px; font-weight: 600; color: #8A1F31; }
.tableau tfoot td { padding: 9px 14px; border-bottom: 0; font-weight: 600; }
.tableau tfoot tr:first-child td { border-top: 1.5px solid var(--encre); }
.tableau tfoot tr:last-child td.n { border-bottom: 4px double var(--encre); }
.tableau .vide { padding: 30px 14px; text-align: center; color: var(--ardoise); }
.manque { background: var(--encre); color: #D8D2C8; padding: 20px 22px; }
.manque h2 { color: var(--papier); }
.manque > p { margin-top: 4px; font-size: 14px; color: var(--grege); }
.manque ul { margin-top: 14px; }
.manque li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid rgba(247, 244, 238, .14); font-size: 14.5px; color: var(--papier); }
.manque li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 2px; background: var(--rose); }
.manque__pied { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(247, 244, 238, .14); font-size: 13.5px; }
.echeances--pleine { background: var(--blanc); padding: 0 22px; box-shadow: 0 0 0 1px var(--filet); }
.docs--pleine { background: var(--blanc); padding: 0 22px; box-shadow: 0 0 0 1px var(--filet); }

/* Le téléphone */
.ecran--tel { width: 390px; height: 844px; display: flex; flex-direction: column; }
.t-barre { flex: none; display: flex; align-items: center; gap: 12px; height: 104px; padding: 46px 18px 0; background: var(--encre); color: var(--papier); }
.t-barre img { width: 30px; height: auto; }
.t-barre > b { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.t-barre div { font-size: 12.5px; line-height: 1.3; color: var(--grege); }
.t-barre div b { display: block; font-size: 16px; color: var(--papier); }
.t-qui { margin-left: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--grege); color: var(--encre); font-family: var(--serif); font-weight: 600; font-size: 14px; }
.t-retour { width: 30px; height: 30px; display: grid; place-items: center; color: var(--papier); }
.t-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--grege); color: var(--encre); font-family: var(--serif); font-weight: 600; font-size: 14px; }
.t-corps { flex: 1; min-height: 0; overflow: hidden; padding: 22px 18px 16px; display: flex; flex-direction: column; }
.t-corps .entete { display: block; padding-bottom: 16px; }
.t-corps .entete .bouton { margin-top: 16px; width: 100%; justify-content: center; }
.t-corps h1 { font-size: 30px; }
.t-corps .sous { font-size: 15px; }
.t-corps .cartes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.t-corps .carte { padding: 14px 16px; }
.t-corps .carte:nth-child(3) { display: none; }
.t-corps .chiffre { font-size: 30px; }
.t-corps .bas { display: none; }
.t-corps--messages { padding: 16px 14px 12px; background: var(--papier); }
.fil { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden; }
.fil .jour { align-self: center; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ardoise); }
.bulle { max-width: 86%; padding: 12px 14px 13px; font-size: 15px; line-height: 1.42; }
.bulle--anne { align-self: flex-start; background: var(--blanc); box-shadow: 0 0 0 1px var(--filet); border-left: 3px solid var(--carmin); }
.bulle--moi { align-self: flex-end; background: var(--encre); color: var(--papier); }
.bulle .quand { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ardoise); }
.bulle--moi .quand { color: var(--grege); }
.composer { flex: none; margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 6px; background: var(--blanc); box-shadow: 0 0 0 1px var(--filet); }
.composer .joindre { width: 40px; height: 40px; display: grid; place-items: center; color: var(--carmin); cursor: pointer; }
.composer input[type=text] { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: 400 15px var(--sans); color: var(--encre); }
.composer input::placeholder { color: #69717D; }
.composer button { width: 40px; height: 40px; display: grid; place-items: center; background: var(--encre); color: var(--papier); border-radius: 2px; }
.t-onglets { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); height: 82px; padding: 8px 6px 22px; background: var(--blanc); border-top: 1px solid var(--filet); }
.t-onglets button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--ardoise); text-align: center; }
.t-onglets button.actif { color: var(--encre); font-weight: 600; }
.t-onglets button.actif .ic { color: var(--carmin); }
