/* Expédition de la semaine et rapports d'expédition : même ambiance que la page des niveaux (fond noir, Courier). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; background-color: #0a0908; color: #c8b89a;
             font-family: 'Courier New', Courier, monospace; }
body::before { content: ""; position: fixed; inset: 0; background: url('/static/images/grain.gif') repeat;
               background-size: 400px 300px; opacity: 0.06; pointer-events: none; z-index: 9999; }

.xp-wrap { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.xp-eyebrow { font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase; color: #6b5c44; margin: 0 0 10px; }
.xp-titre { font-size: 1.6rem; color: #e0cfa0; letter-spacing: 0.04em; margin: 0 0 6px; font-weight: normal; }
.xp-dates { font-size: 0.75rem; color: #6b5c44; margin: 0 0 22px; }
.xp-texte { font-size: 1rem; line-height: 1.7; margin: 0 0 22px; }

.xp-carte { border: 1px solid #3a3020; background: #12100c; padding: 20px 22px; margin-bottom: 28px; }
.xp-carte.reussie { border-color: #6b7a3a; box-shadow: 0 0 0 1px #3a4a1a inset; }
.xp-tampon { display: inline-block; padding: 4px 10px; border: 2px solid #8fa04a; color: #b8c870; font-size: 0.75rem;
             letter-spacing: 0.2em; text-transform: uppercase; transform: rotate(-2deg); margin-bottom: 12px; }
.xp-barre { height: 10px; background: #1e1a12; border: 1px solid #3a3020; margin: 10px 0 6px; }
.xp-barre > div { height: 100%; background: #c8a040; box-shadow: 0 0 8px rgba(200, 160, 64, 0.5); }
.xp-carte.reussie .xp-barre > div { background: #8fa04a; box-shadow: 0 0 8px rgba(143, 160, 74, 0.5); }
.xp-chiffres { font-size: 0.8rem; color: #8a7a5a; }

.xp-section { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: #5a4e3a;
              border-bottom: 1px solid #2a2218; padding-bottom: 8px; margin: 34px 0 14px; }
.xp-liste { list-style: none; margin: 0; padding: 0; }
.xp-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #221c14; font-size: 0.88rem; }
.xp-liste a { color: #d4c49a; text-decoration: none; }
.xp-liste a:hover { text-decoration: underline; }
.xp-liste .xp-rang { color: #6b5c44; min-width: 2.2em; display: inline-block; }
.xp-liste .xp-quand { color: #6b5c44; font-size: 0.78rem; white-space: nowrap; flex-shrink: 0; }
.xp-liste li > span:first-child { min-width: 0; }
.xp-liste li > span:first-child .xp-quand { white-space: normal; }
.xp-vide { color: #5a4e3a; font-style: italic; font-size: 0.88rem; }

.xp-btn { display: inline-block; padding: 10px 20px; border: 1px solid #6b5c44; background: #1a1510; color: #e0cfa0;
          font-family: inherit; font-size: 0.85rem; letter-spacing: 0.06em; text-decoration: none; cursor: pointer; }
.xp-btn:hover { background: #2a2218; color: #fff3c8; }
.xp-btn.secondaire { border-color: #2a2418; color: #8a7a5a; background: transparent; }
.xp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Rapport : une fiche dactylographiée */
.xp-rapport { background: #e8dcb8; color: #2a2010; padding: 26px 28px; border: 1px solid #8a7a50;
              box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5); white-space: pre-wrap; font-size: 0.95rem; line-height: 1.7;
              position: relative; overflow-wrap: anywhere; }
.xp-rapport::after { content: "CLASSÉ"; position: absolute; right: 18px; top: 16px; padding: 3px 10px; border: 3px solid #8b2020;
                     color: #8b2020; font-weight: bold; letter-spacing: 0.2em; transform: rotate(8deg); opacity: 0.75; }
.xp-mot { width: 100%; min-height: 80px; margin-top: 16px; background: #12100c; color: #e0cfa0; border: 1px solid #3a3020;
          font-family: inherit; font-size: 0.9rem; padding: 10px; }
.xp-mot-label { display: block; margin-top: 22px; font-size: 0.75rem; color: #8a7a5a; letter-spacing: 0.08em; }
.xp-flash { margin: 0 0 20px; }
