/* ============================================================================
   TEPITECH — SELF-ASSESSMENT · ENTRAÎNEMENT (interface web desktop uniquement)
   Markup généré par js/tepitech.js dans #tpStage (hub → épreuve → récap).
   Palette brutaliste de l'app : paper #FFFEF7 · ink #0A0A0A · magenta #FF2E93,
   bordures 3px solides, ombres dures 6px 6px 0. Polices : Anton (titres),
   IBM Plex Mono (labels « _ »), DM Sans (texte) — toutes déjà dans fonts.css.
   L'entrée du hub (#hubTepitech) n'est révélée que si le gate de tepitech.js
   passe (≥1024px + hors TWA) : rien ne s'affiche sur téléphone ni dans l'app.
   ========================================================================== */

#sec-tepitech {
  padding: 0 !important;               /* le stage gère sa propre mise en page */
  background: #E8E8E8;
  background-image: radial-gradient(rgba(10, 10, 10, .13) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #0A0A0A;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
}
#sec-tepitech .tp-stage { min-height: 100dvh; }
#sec-tepitech .tp-lab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
}
#sec-tepitech h1, #sec-tepitech h2, #sec-tepitech h3,
#sec-tepitech .anton { font-family: Anton, sans-serif; font-weight: 400; letter-spacing: .5px; }

/* ---- HUB ------------------------------------------------------------------ */
#sec-tepitech .tp-hub { max-width: 1280px; margin: 0 auto; padding: 42px 36px 72px; }
#sec-tepitech .tp-hero { margin-bottom: 34px; }
#sec-tepitech .tp-hero .tp-lab { display: inline-block; background: #0A0A0A; color: #FFFEF7; padding: 5px 10px; margin-bottom: 14px; }
#sec-tepitech .tp-hero h1 { font-size: clamp(56px, 7vw, 96px); line-height: .95; text-transform: uppercase; margin: 0 0 8px; }
#sec-tepitech .tp-hero h1 em { font-style: normal; color: #FF2E93; }
#sec-tepitech .tp-hero .sub { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 1px; margin: 0 0 18px; }
#sec-tepitech .tp-statsbar { display: flex; flex-wrap: wrap; gap: 10px; }
#sec-tepitech .tp-statsbar .chip {
  border: 3px solid #0A0A0A; background: #FFFEF7; box-shadow: 4px 4px 0 #0A0A0A;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 1px;
  padding: 7px 12px; text-transform: uppercase;
}
#sec-tepitech .tp-statsbar .chip b { font-size: 15px; }
#sec-tepitech .tp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#sec-tepitech .tp-card {
  border: 3px solid #0A0A0A; background: #FFFEF7; box-shadow: 6px 6px 0 #0A0A0A;
  padding: 0; cursor: pointer; text-align: left; display: flex; flex-direction: column;
  transition: transform .12s, box-shadow .12s; font: inherit; color: inherit;
}
#sec-tepitech .tp-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #0A0A0A; }
#sec-tepitech .tp-card:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #0A0A0A; }
#sec-tepitech .tp-card .band { height: 10px; border-bottom: 3px solid #0A0A0A; }
#sec-tepitech .tp-card .bd { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
#sec-tepitech .tp-card h2 { font-size: 30px; text-transform: uppercase; margin: 0; display: flex; align-items: center; justify-content: space-between; }
#sec-tepitech .tp-card h2 .n { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 1px; border: 2px solid #0A0A0A; padding: 3px 8px; }
#sec-tepitech .tp-card .d { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .5px; opacity: .75; }
#sec-tepitech .tp-card .bar { height: 14px; border: 3px solid #0A0A0A; background: #FFFEF7; position: relative; }
#sec-tepitech .tp-card .bar i { position: absolute; inset: 0; background: #FF2E93; transform-origin: left; }
#sec-tepitech .tp-card .foot { display: flex; justify-content: space-between; align-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 1px; }
#sec-tepitech .tp-card .go {
  align-self: flex-start; margin-top: auto; font-family: Anton, sans-serif; font-size: 16px;
  letter-spacing: 1px; text-transform: uppercase; background: #FF2E93; color: #0A0A0A;
  border: 3px solid #0A0A0A; box-shadow: 4px 4px 0 #0A0A0A; padding: 9px 18px;
}
#sec-tepitech .tp-card.replay .go { background: #FFD600; }
#sec-tepitech .tp-hubnote {
  margin-top: 26px; border: 3px dashed #0A0A0A; background: #FFFEF7; padding: 12px 16px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .5px; opacity: .85;
}
/* ---- ÉPREUVE : LA FRAME 3 COLONNES ---------------------------------------- */
#sec-tepitech .tp-frame { display: grid; grid-template-columns: 250px 1fr 262px; min-height: 100dvh; }
#sec-tepitech .tp-side, #sec-tepitech .tp-nav {
  background: #FFFEF7; padding: 22px 18px; display: flex; flex-direction: column; gap: 16px;
}
#sec-tepitech .tp-side { border-right: 3px solid #0A0A0A; position: sticky; top: 0; align-self: start; min-height: 100dvh; }
#sec-tepitech .tp-nav  { border-left: 3px solid #0A0A0A; position: sticky; top: 0; align-self: start; min-height: 100dvh; }
#sec-tepitech .tp-back {
  font-family: Anton, sans-serif; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  background: #FFD600; border: 3px solid #0A0A0A; box-shadow: 4px 4px 0 #0A0A0A;
  padding: 9px 12px; cursor: pointer; color: #0A0A0A; text-align: left;
}
#sec-tepitech .tp-back:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #0A0A0A; }
#sec-tepitech .tp-timerbox { border: 3px solid #0A0A0A; box-shadow: 6px 6px 0 #0A0A0A; background: #FFFEF7; padding: 12px 14px; }
#sec-tepitech .tp-timerbox b { display: block; font-family: Anton, sans-serif; font-size: 44px; line-height: 1; margin-top: 6px; }
#sec-tepitech .tp-timerbox.hot { background: #FF2E93; }
#sec-tepitech .tp-timerbox.hot b, #sec-tepitech .tp-timerbox.hot .tp-lab { color: #FFFEF7; }
#sec-tepitech .tp-box { border: 3px solid #0A0A0A; background: #FFFEF7; padding: 12px 14px; }
#sec-tepitech .tp-box .kv { display: flex; justify-content: space-between; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 1px; padding: 4px 0; }
#sec-tepitech .tp-box .kv b { font-size: 14px; }
#sec-tepitech .tp-seclis { display: flex; flex-direction: column; gap: 8px; }
#sec-tepitech .tp-seclis .s {
  display: flex; justify-content: space-between; align-items: center;
  border: 3px solid #0A0A0A; padding: 8px 10px; font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: 1px; background: #FFFEF7;
}
#sec-tepitech .tp-seclis .s.on { background: #0A0A0A; color: #FFFEF7; }
#sec-tepitech .tp-seclis .s .dot { width: 10px; height: 10px; border: 2px solid currentColor; display: inline-block; margin-right: 8px; }
#sec-tepitech .tp-tip { border: 3px dashed #0A0A0A; padding: 12px 14px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 1.6; }
/* ---- ZONE QUESTION --------------------------------------------------------- */
#sec-tepitech .tp-main { padding: 34px 34px 60px; overflow: hidden; }
#sec-tepitech .tp-qcard { max-width: 900px; margin: 0 auto; border: 3px solid #0A0A0A; background: #FFFEF7; box-shadow: 6px 6px 0 #0A0A0A; padding: 24px 26px 28px; }
#sec-tepitech .tp-qmeta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
#sec-tepitech .tp-qmeta .chip { border: 2px solid #0A0A0A; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px; padding: 4px 9px; text-transform: uppercase; }
#sec-tepitech .tp-qmeta .chip.acc { background: #FF2E93; }
#sec-tepitech .tp-qtext { font-family: Anton, sans-serif; font-size: 26px; line-height: 1.25; margin: 0 0 18px; text-transform: none; }
#sec-tepitech .tp-flag { display: inline-block; margin-top: 14px; border: 2px dashed #0A0A0A; background: #FFD600; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px; padding: 6px 10px; }
/* lecteur audio : la barre noire de la maquette (play + onde + temps) — l'audio réel reste masqué */
#sec-tepitech .tp-audio { display: none; }
#sec-tepitech .tp-audiobar { display: flex; align-items: center; gap: 16px; background: #0E0E10; color: #FFFEF7; padding: 12px 16px; margin: 6px 0 18px; }
#sec-tepitech .tp-play { flex: none; width: 44px; height: 44px; border: 0; background: #FF2E93; color: #FFFEF7; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
#sec-tepitech .tp-play:hover { background: #FFD600; color: #0A0A0A; }
#sec-tepitech .tp-play::before { content: ''; width: 0; height: 0; margin-left: 3px; border-left: 15px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
#sec-tepitech .tp-play.on::before { margin-left: 0; width: 5px; height: 18px; border: 0; background: currentColor; }
#sec-tepitech .tp-play.on::after { content: ''; width: 5px; height: 18px; background: currentColor; }
#sec-tepitech .tp-wave { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 30px; }
#sec-tepitech .tp-wave i { flex: 1; background: #FF2E93; opacity: .3; }
#sec-tepitech .tp-wave i.on { opacity: .9; }
#sec-tepitech .tp-atime { flex: none; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px; color: #8B908C; text-align: right; }
#sec-tepitech .tp-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 6px 0 4px; }
#sec-tepitech .tp-imgs button, #sec-tepitech .tp-opt {
  border: 3px solid #0A0A0A; background: #FFFEF7; cursor: pointer; padding: 0;
  font: inherit; color: inherit; transition: transform .1s, box-shadow .1s; text-align: left;
}
#sec-tepitech .tp-imgs button { box-shadow: 4px 4px 0 #0A0A0A; }
#sec-tepitech .tp-imgs button img { display: block; width: 100%; height: 150px; object-fit: cover; }
#sec-tepitech .tp-imgs button span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px; padding: 6px 8px; border-top: 3px solid #0A0A0A; }
#sec-tepitech .tp-imgs button img.h { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #fff; }
#sec-tepitech .tp-opt { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-top: 10px; box-shadow: 4px 4px 0 #0A0A0A; }
#sec-tepitech .tp-opt:hover, #sec-tepitech .tp-imgs button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #0A0A0A; }
#sec-tepitech .tp-opt .l, #sec-tepitech .tp-imgs .l { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 3px solid #0A0A0A; font-family: Anton, sans-serif; font-size: 15px; background: #FFFEF7; }
#sec-tepitech .tp-imgs .l { width: 100%; border: 0; border-top: 3px solid #0A0A0A; justify-content: start; display: flex; align-items: center; gap: 8px; padding: 6px 8px; box-sizing: border-box; }
#sec-tepitech .tp-opt .t { font-size: 15px; line-height: 1.4; }
#sec-tepitech .tp-opt.picked, #sec-tepitech .tp-imgs button.picked { background: #0A0A0A; color: #FFFEF7; }
#sec-tepitech .tp-opt.picked .l, #sec-tepitech .tp-imgs button.picked .l { background: #FF2E93; color: #0A0A0A; }
#sec-tepitech .tp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; margin: 6px 0 4px; }
#sec-tepitech .tp-scan { border: 3px solid #0A0A0A; box-shadow: 4px 4px 0 #0A0A0A; max-height: 70dvh; overflow: auto; background: #fff; }
#sec-tepitech .tp-scan img { display: block; width: 100%; height: auto; }
#sec-tepitech .tp-opts { margin-top: 2px; }

/* ---- PANneau NAVIGATION ---------------------------------------------------- */
#sec-tepitech .tp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
#sec-tepitech .tp-grid button {
  aspect-ratio: 1; border: 3px solid #0A0A0A; background: #FFFEF7; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #0A0A0A; padding: 0;
}
#sec-tepitech .tp-grid button.done { background: #5BE885; }
#sec-tepitech .tp-grid button.cur { background: #FF2E93; box-shadow: 2px 2px 0 #0A0A0A; }
#sec-tepitech .tp-legend { display: flex; flex-direction: column; gap: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 1px; }
#sec-tepitech .tp-legend span { display: flex; align-items: center; gap: 8px; }
#sec-tepitech .tp-legend i { width: 14px; height: 14px; border: 2px solid #0A0A0A; display: inline-block; }
#sec-tepitech .tp-term {
  margin-top: auto; font-family: Anton, sans-serif; font-size: 15px; letter-spacing: 1px;
  text-transform: uppercase; background: #0A0A0A; color: #FFFEF7; border: 3px solid #0A0A0A;
  box-shadow: 4px 4px 0 #FF2E93; padding: 11px 14px; cursor: pointer;
}
#sec-tepitech .tp-term:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #FF2E93; }

/* ---- RÉCAP ----------------------------------------------------------------- */
#sec-tepitech .tp-recap { max-width: 760px; margin: 48px auto; padding: 0 36px; }
#sec-tepitech .tp-recap .tp-rcard { border: 3px solid #0A0A0A; background: #FFFEF7; box-shadow: 6px 6px 0 #0A0A0A; padding: 26px 28px; margin-bottom: 22px; }
#sec-tepitech .tp-recap h2 { font-size: 44px; text-transform: uppercase; margin: 0 0 4px; }
#sec-tepitech .tp-recap .tp-rscore { font-family: Anton, sans-serif; font-size: 64px; color: #FF2E93; }
#sec-tepitech .tp-recap .tp-rrow { display: flex; justify-content: space-between; align-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: 1px; padding: 9px 0; border-bottom: 2px dashed rgba(10,10,10,.3); }
#sec-tepitech .tp-recap .tp-rrow:last-child { border-bottom: 0; }
#sec-tepitech .tp-recap .tp-racts { display: flex; gap: 12px; flex-wrap: wrap; }
#sec-tepitech .tp-recap .tp-racts button {
  font-family: Anton, sans-serif; font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
  border: 3px solid #0A0A0A; box-shadow: 4px 4px 0 #0A0A0A; padding: 10px 16px; cursor: pointer; color: #0A0A0A;
}
#sec-tepitech .tp-recap .acts .tp-ragain { background: #FFD600; }
#sec-tepitech .tp-recap .acts .tp-rhome { background: #FFFEF7; }
/*__TPCSS5__*/