/* Twistedporn v2 : sombre, accent orange (cle tp_design_v2) */
:root {
  --tp-bg: #17171c;
  --tp-bg2: #1f1f25;
  --tp-card: #232329;
  --tp-line: #31313a;
  --tp-text: #ececf1;
  --tp-muted: #9a9aa8;
  --tp-or: #ff6a2e;
  --tp-or2: #ff8a4c;
  --tp-or3: #e8452c;
  --tp-radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html.tp-noscroll { overflow: hidden; }
body.tp {
  margin: 0;
  background: var(--tp-bg);
  color: var(--tp-text);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.tp a { color: inherit; text-decoration: none; }
body.tp img { max-width: 100%; }
.tp-wrap { width: 100%; max-width: 1640px; margin: 0 auto; padding: 0 20px; }

/* ---------- en-tete ---------- */
.tp-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 23, 28, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--tp-line);
}
.tp-header__row { display: flex; align-items: center; gap: 18px; height: 70px; }

.tp-logo { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.tp-logo__mark { width: 40px; height: 40px; filter: drop-shadow(0 6px 16px rgba(255, 106, 46, .45)); }
.tp-logo__txt { display: flex; flex-direction: column; line-height: 1; }
.tp-logo__word { font: 900 26px/1 Outfit, Inter, sans-serif; letter-spacing: -.6px; }
.tp-logo__a { color: #fff; }
.tp-logo__b { color: var(--tp-or2); }
.tp-logo__tag { margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--tp-muted); letter-spacing: .2px; }
.tp-logo--small .tp-logo__mark { width: 32px; height: 32px; }
.tp-logo--small .tp-logo__word { font-size: 21px; }

.tp .tp-header form.tp-search { position: relative; flex: 1 1 auto; max-width: 560px; margin: 0 0 0 auto; padding: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.tp .tp-search input {
  box-sizing: border-box; width: 100%; height: 42px; padding: 0 16px 0 42px; margin: 0;
  background: var(--tp-bg2); color: var(--tp-text);
  border: 1px solid var(--tp-line); border-radius: 999px;
  font: inherit; outline: none; transition: border-color .15s, background .15s;
}
.tp-search input::placeholder { color: #6f6f7c; }
.tp-search input:focus { border-color: var(--tp-or); background: #232329; }
.tp-search__icon { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; fill: #7c7c8a; pointer-events: none; }

.tp-nav { display: flex; align-items: center; gap: 8px; }
.tp-iconbtn, .tp-userbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--tp-bg2); border: 1px solid var(--tp-line); color: var(--tp-text);
  font: 600 14px/1 Inter, sans-serif; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.tp-iconbtn svg, .tp-userbtn svg { width: 18px; height: 18px; fill: currentColor; }
.tp-iconbtn:hover, .tp-userbtn:hover { background: #2a2a31; border-color: #34343e; }
.tp-iconbtn { width: 40px; padding: 0; }
.tp-search-toggle { display: none; }
.tp-userbtn--login { background: linear-gradient(135deg, var(--tp-or2), var(--tp-or3)); border-color: transparent; color: #fff; }
.tp-userbtn--login:hover { background: linear-gradient(135deg, #ff9a62, #f0553a); border-color: transparent; }
.tp-userbtn__av { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; border-radius: 50%; background: linear-gradient(135deg, var(--tp-or2), var(--tp-or3)); color: #fff; font-size: 13px; font-weight: 800; }

.tp-lang { display: inline-flex; height: 40px; padding: 3px; border-radius: 999px; background: var(--tp-bg2); border: 1px solid var(--tp-line); }
.tp-lang a { display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--tp-muted); }
.tp-lang a.is-on { background: #34343d; color: #fff; }

.tp-user-wrap { position: relative; }
.tp-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 280px; z-index: 60;
  background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6); padding: 12px;
}
.tp-panel[hidden] { display: none; }
.tp-panel > a { display: block; padding: 10px 11px; border-radius: 9px; font-weight: 600; }
.tp-panel > a:hover { background: #2c2c34; color: var(--tp-or2); }
.tp-panel--msg p { margin: 0 0 8px; font-size: 13.5px; color: var(--tp-muted); }
.tp-panel--msg a { color: var(--tp-or2) !important; }
.tp .tp-panel form.tp-login { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 4px; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.tp-login label { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 12.5px; font-weight: 600; color: var(--tp-muted); }
.tp .tp-login input[type=text], .tp .tp-login input[type=password] {
  height: 42px; padding: 0 13px; border-radius: 10px; width: 100%;
  background: var(--tp-bg2) !important; color: var(--tp-text) !important; border: 1px solid var(--tp-line) !important; font: 15px Inter, sans-serif; outline: none;
}
.tp-login input:focus { border-color: var(--tp-or) !important; }
.tp .tp-login .tp-login__check { flex-direction: row; align-items: center; gap: 7px; font-weight: 500; }
.tp-login__lost { align-self: center; font-size: 12.5px; color: var(--tp-muted); }
.tp-login__lost:hover { color: var(--tp-or2); }

.tp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 0;
  font: 700 15px/1 Inter, sans-serif; cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.tp-btn--primary { background: linear-gradient(135deg, var(--tp-or2), var(--tp-or3)); color: #fff !important; box-shadow: 0 8px 22px rgba(255, 106, 46, .3); }
.tp-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255, 106, 46, .4); }
.tp-btn--ghost { background: #2c2c34; color: var(--tp-muted) !important; }

/* barre des categories : passe a la ligne plutot que de deborder */
.tp-cats { border-bottom: 1px solid var(--tp-line); background: var(--tp-bg); }
.tp-cats__row { display: flex; flex-wrap: wrap; gap: 2px; row-gap: 4px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.tp-cats__item {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--tp-muted); white-space: nowrap;
  transition: color .15s, background .15s;
}
.tp-cats__item:hover { color: #fff; background: #26262d; }
.tp-cats__item.is-on { color: #fff; background: var(--tp-or); }

/* ---------- liste ---------- */
.tp-main { padding-top: 24px; padding-bottom: 40px; min-height: 60vh; }
.tp-list__title { margin: 0 0 20px; font: 800 26px/1.2 Outfit, Inter, sans-serif; letter-spacing: -.3px; color: #fff; }
.tp-list__title::after { content: ""; display: block; width: 44px; height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--tp-or2), var(--tp-or3)); }
h2.tp-list__title { font-size: 22px; }
.tp-empty { color: var(--tp-muted); }

.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px 16px; }

.tp-card { min-width: 0; display: flex; flex-direction: column; }
.tp-card__media {
  position: relative; display: block; aspect-ratio: 330 / 240; overflow: hidden;
  border-radius: var(--tp-radius); background: #26262d;
}
.tp-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tp-card__media img.is-broken { opacity: 0; }
.tp-card:hover .tp-card__media img { transform: scale(1.045); }
.tp-card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; transition: box-shadow .2s; }
.tp-card:hover .tp-card__media::after { box-shadow: inset 0 0 0 2px var(--tp-or); }
.tp-badge {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px;
  background: rgba(0, 0, 0, .78); color: #fff; font-size: 12px; font-weight: 600;
}
.tp-flag {
  position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px;
  background: #2a2a33; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.tp-flag--premium { background: var(--tp-or); }
.tp-flag--live { background: #e8202f; }
.tp-flag--live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #fff; vertical-align: 1px; }

.tp-card__title { margin: 10px 0 0; font: 600 15px/1.35 Inter, sans-serif; color: #fff; }
.tp-card__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-card__title a:hover { color: var(--tp-or2); }
.tp-card__meta { margin: 5px 0 0; font-size: 12.5px; color: #6f6f7c; }
.tp-card__meta::first-letter { text-transform: uppercase; }

/* pagination CI */
.tp-pager { margin-top: 34px; }
.tp-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tp-pager li { list-style: none; }
.tp-pager a, .tp-pager strong, .tp-pager li > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
  background: var(--tp-card); border: 1px solid var(--tp-line); color: var(--tp-text);
  font-weight: 700; font-size: 14px;
}
.tp-pager a:hover { border-color: var(--tp-or); color: #fff; }
.tp-pager strong, .tp-pager .active a, .tp-pager .active span { background: var(--tp-or); border-color: var(--tp-or); color: #fff; }

/* ---------- pied de page ---------- */
.tp-footer { border-top: 1px solid var(--tp-line); background: #111115; padding: 28px 0 34px; }
.tp-footer__row { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.tp-footer__links { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13.5px; }
.tp-footer__links a { color: var(--tp-muted); }
.tp-footer__links a:hover { color: var(--tp-or2); }
.tp-footer__links b a { color: var(--tp-text); }
.tp-footer__copy { margin: 0; font-size: 12.5px; color: #6f6f7c; }
.tp-footer__copy a { color: var(--tp-muted); }

/* ---------- avertissement d'age ---------- */
.tp-age { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 7, .96); backdrop-filter: blur(6px); }
.tp-age[hidden] { display: none; }
.tp-age__box { width: 100%; max-width: 500px; padding: 32px 28px 26px; border-radius: 20px; text-align: center; background: var(--tp-card); border: 1px solid var(--tp-line); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.tp-age__18 { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--tp-or2), var(--tp-or3)); color: #fff; font: 800 21px/1 Outfit, Inter, sans-serif; box-shadow: 0 10px 26px rgba(255, 106, 46, .4); }
.tp-age h2 { margin: 0 0 10px; font: 800 26px/1.15 Outfit, Inter, sans-serif; color: #fff; }
.tp-age p { margin: 0 0 8px; color: #c4c4ce; }
.tp-age .tp-age__small { font-size: 13px; color: var(--tp-muted); }
.tp-age__small a { color: var(--tp-or2) !important; }
.tp-age__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ---------- pages pas encore refaites (Bootstrap 3) ---------- */
body.tp--legacy .tp-legacy-wrap { color: var(--tp-text); }
body.tp--legacy .tp-legacy-wrap h1, body.tp--legacy .tp-legacy-wrap h2, body.tp--legacy .tp-legacy-wrap h3, body.tp--legacy .tp-legacy-wrap h4 { color: #fff; }
body.tp--legacy .tp-legacy-wrap a { color: var(--tp-or2); }
body.tp--legacy .tp-legacy-wrap .form-control { background: var(--tp-bg2); color: var(--tp-text); border-color: var(--tp-line); }
body.tp--legacy .tp-legacy-wrap .btn-primary, body.tp--legacy .tp-legacy-wrap .btn-success { background: var(--tp-or); border-color: var(--tp-or); color: #fff; }
body.tp--legacy .tp-legacy-wrap .panel, body.tp--legacy .tp-legacy-wrap .card, body.tp--legacy .tp-legacy-wrap .well { background: var(--tp-card); border-color: var(--tp-line); color: var(--tp-text); }
body.tp--legacy .tp-legacy-wrap .text-info { color: var(--tp-or2); }
body.tp--legacy .tp-header .tp-search input { line-height: normal; }
body.tp--legacy .tp-logo, body.tp--legacy .tp-cats__item { text-decoration: none; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .tp-logo__tag { display: none; }
  .tp-header__row { gap: 10px; }
  .tp .tp-header form.tp-search { display: none; position: absolute; left: 12px; right: 12px; top: 64px; max-width: none; margin: 0; }
  .tp .tp-header form.tp-search.is-open { display: block; }
  .tp-search-toggle { display: inline-flex; }
  .tp-nav { margin-left: auto; }
}
@media (max-width: 600px) {
  .tp-wrap { padding: 0 12px; }
  .tp-header__row { height: 62px; }
  .tp .tp-header form.tp-search { top: 58px; }
  .tp-logo__mark { width: 34px; height: 34px; }
  .tp-logo__word { font-size: 21px; }
  .tp-userbtn__txt { display: none; }
  .tp-userbtn { width: 40px; padding: 0; }
  .tp-userbtn__av { margin: 0; }
  .tp-lang a { padding: 0 8px; }
  .tp-cats__row { gap: 4px; }
  .tp-cats__item { padding: 6px 10px; font-size: 12.5px; }
  .tp-main { padding-top: 16px; }
  .tp-list__title { font-size: 21px; }
  h2.tp-list__title { font-size: 18px; }
  .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .tp-card__title { font-size: 13.5px; }
  .tp-card__meta { font-size: 11.5px; }
  .tp-flag { font-size: 10.5px; padding: 3px 7px; }
}

/* ---------- article ---------- */
.tp-art { max-width: 1100px; margin: 0 auto; }
.tp-art__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.tp-art__back {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px 0 8px; margin-top: 2px;
  border-radius: 999px; background: var(--tp-bg2); border: 1px solid var(--tp-line); font-size: 13.5px; font-weight: 600; color: var(--tp-muted);
}
.tp-art__back svg { width: 20px; height: 20px; fill: currentColor; }
.tp-art__back:hover { color: #fff; border-color: var(--tp-or); }
.tp-art__title { margin: 0; font: 800 28px/1.2 Outfit, Inter, sans-serif; letter-spacing: -.3px; color: #fff; }
.tp-art__admin { display: flex; gap: 16px; margin: 0 0 12px; font-size: 13px; }
.tp-art__admin a { color: var(--tp-or2) !important; }
.tp-art-preview { padding: 10px 14px; border-radius: 10px; background: rgba(255, 106, 46, .15); color: var(--tp-or2); font-weight: 600; }
.tp-art-missing { padding: 40px 0; text-align: center; }
.tp-art-missing h1 { font: 800 24px/1.3 Outfit, Inter, sans-serif; color: #fff; }
.tp-art-missing a { color: var(--tp-or2) !important; }
.tp-art__media { display: flex; flex-direction: column; gap: 16px; }
.tp-art__media .video-js { width: 100%; height: auto; border-radius: 14px; overflow: hidden; background: #000; }
.tp-art__media .video-js .vjs-big-play-button { border-radius: 50%; width: 2em; height: 2em; line-height: 2em; margin-left: -1em; margin-top: -1em; border: 0; background: rgba(255, 106, 46, .9); }
.tp-art__embed { border-radius: 14px; overflow: hidden; background: #000; }
.tp-art__embed iframe { display: block; width: 100%; border: 0; }
.tp-art__embed > iframe:not([style*=height]) { aspect-ratio: 16 / 9; height: auto; }
.tp-art__images { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.tp-art__images li { position: relative; }
.tp-art__images img { display: block; max-width: 100%; border-radius: 12px; }
.tp-art__num { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); font-size: 12px; font-weight: 700; }
.tp-art__sponsor { margin: 0; text-align: center; font: 700 18px/1.3 Inter, sans-serif; }
.tp-art__sponsor a { color: var(--tp-or2) !important; }
.tp-art__desc { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--tp-card); border: 1px solid var(--tp-line); color: #c4c4ce; }

/* integration iframe a la demande (memes regles que l'ancien en-tete) */
.video-wrapper { width: 100%; height: 0; padding-bottom: 56%; overflow: hidden; position: relative; cursor: pointer; border-radius: 14px; background: #000; }
.video-thumbnail { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.play-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 64px; text-shadow: 2px 2px 8px rgba(0, 0, 0, .8); pointer-events: none; z-index: 10; opacity: .9; transition: all .3s; }
.video-wrapper:hover .play-hint { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.video-wrapper.loaded .video-thumbnail, .video-wrapper.loaded .play-hint { display: none; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* extrait VIP */
.tp-vip { padding: 20px; border-radius: 16px; background: var(--tp-card); border: 1px solid rgba(255, 106, 46, .5); }
.tp-vip__title { margin: 0 0 14px; text-align: center; font: 800 20px/1.3 Outfit, Inter, sans-serif; color: #fff; }
.tp-vip__teaser { position: relative; max-width: 720px; margin: 0 auto; cursor: pointer; border-radius: 12px; overflow: hidden; }
.tp-vip__teaser img { display: block; width: 100%; }
.tp-vip__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; color: #fff; background: rgba(255, 106, 46, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); pointer-events: none; }
.tp-vip__lock { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; text-align: center; font-size: 17px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .75); }
.tp-vip__form { max-width: 520px; margin: 20px auto 0; }
.tp-vip__form h4 { margin: 0 0 12px; text-align: center; font: 800 18px/1.3 Outfit, Inter, sans-serif; color: #fff; }
.tp-vip__member { text-align: center; padding: 10px; border-radius: 10px; background: var(--tp-bg2); }
.tp-vip__member a { margin-left: 8px; font-weight: 700; color: var(--tp-or2) !important; }
.tp-vip__form form { display: flex; flex-direction: column; gap: 12px; }
.tp-vip__form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tp-muted); }
.tp-vip__form input, .tp-vip__form select { height: 42px; padding: 0 12px; border-radius: 10px; background: var(--tp-bg2); color: var(--tp-text); border: 1px solid var(--tp-line); font: 15px Inter, sans-serif; }

/* videos similaires + partenaires */
.tp-related { margin-top: 36px; }
.tp-grid--rel { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 14px; }
.tp-grid--rel .tp-card__title { font-size: 14px; }
.tp-plugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; }
.tp-plug { position: relative; display: block; aspect-ratio: 330 / 240; overflow: hidden; border-radius: var(--tp-radius); background: #26262d; }
.tp-plug img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.tp-plug img.is-broken { opacity: 0; }
.tp-plug:hover img { transform: scale(1.045); }
.tp-plug__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-plug__t:empty { display: none; }

@media (max-width: 600px) {
  .tp-art__head { gap: 10px; }
  .tp-art__back span { display: none; }
  .tp-art__back { width: 38px; padding: 0; justify-content: center; }
  .tp-art__title { font-size: 20px; }
  .tp-grid--rel, .tp-plugs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .tp-grid--rel .tp-card__title { font-size: 13px; }
  .tp-vip { padding: 14px; }
}

/* petite resolution : barre des categories masquee */
@media (max-width: 760px) { .tp-cats { display: none; } }

/* bouton et panneau des categories (PC et mobile) */
.tp .tp-categbtn { width: auto; padding: 0 14px; gap: 8px; }
.tp-categbtn.is-on { border-color: var(--tp-or); color: var(--tp-or2); }
.tp-categ { border-top: 1px solid var(--tp-line); background: var(--tp-card); box-shadow: 0 20px 34px rgba(0, 0, 0, .45); max-height: calc(100vh - 70px); overflow: auto; }
.tp-categ[hidden] { display: none; }
.tp-categ__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; padding-top: 16px; padding-bottom: 18px; }
.tp-categ__item { display: block; padding: 11px 14px; border-radius: 10px; background: var(--tp-bg2); border: 1px solid var(--tp-line); font-size: 14px; font-weight: 600; color: var(--tp-text); }
.tp-categ__item:hover { border-color: var(--tp-or); color: var(--tp-or2); }
.tp-categ__item.is-on { background: var(--tp-or); border-color: var(--tp-or); color: #fff; }
@media (max-width: 760px) {
  .tp .tp-categbtn { width: 40px; padding: 0; }
  .tp-categbtn__label { display: none; }
  .tp-categ__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 12px; padding-bottom: 14px; }
  .tp-categ__item { padding: 10px 12px; font-size: 13.5px; }
}
@media (max-width: 600px) {
  .tp-header__row { gap: 6px; }
  .tp-nav { gap: 5px; }
  .tp-logo { gap: 8px; }
  .tp-logo__mark { width: 32px; height: 32px; }
  .tp-logo__word { font-size: 19px; }
  .tp-iconbtn, .tp .tp-categbtn, .tp-userbtn { width: 36px; height: 36px; }
  .tp-lang { height: 36px; }
  .tp-lang a { padding: 0 7px; font-size: 12px; }
}
@media (max-width: 360px) { .tp-logo__txt { display: none; } }

/* ---------- pages d'origine habillees (formulaires Bootstrap 3) ---------- */
.tp--legacy .tp-legacy-wrap label { color: var(--tp-text); font-weight: 600; font-size: 14px; }
.tp--legacy .tp-legacy-wrap .form-control,
.tp--legacy .tp-legacy-wrap input[type=text], .tp--legacy .tp-legacy-wrap input[type=email],
.tp--legacy .tp-legacy-wrap input[type=password], .tp--legacy .tp-legacy-wrap textarea, .tp--legacy .tp-legacy-wrap select {
  background: var(--tp-bg2) !important; color: var(--tp-text) !important;
  border: 1px solid var(--tp-line) !important; border-radius: 10px !important;
  height: auto; min-height: 44px; padding: 10px 13px !important; box-shadow: none !important; font-size: 15px;
}
.tp--legacy .tp-legacy-wrap textarea { min-height: 140px; }
.tp--legacy .tp-legacy-wrap .form-control:focus, .tp--legacy .tp-legacy-wrap input:focus, .tp--legacy .tp-legacy-wrap textarea:focus { border-color: var(--tp-or) !important; outline: none; }
.tp--legacy .tp-legacy-wrap input[type=checkbox] { accent-color: var(--tp-or); width: 17px !important; height: 17px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; display: inline-block; vertical-align: middle; box-shadow: none !important; }
.tp--legacy .tp-legacy-wrap .btn-primary, .tp--legacy .tp-legacy-wrap .btn-success, .tp--legacy .tp-legacy-wrap button[type=submit], .tp--legacy .tp-legacy-wrap input[type=submit] {
  background: linear-gradient(135deg, var(--tp-or2), var(--tp-or3)) !important; border: 0 !important; color: #fff !important;
  border-radius: 12px !important; min-height: 46px; padding: 0 22px !important; font-weight: 700 !important; font-size: 15px !important;
  box-shadow: 0 8px 22px rgba(255, 106, 46, .3); cursor: pointer;
}
.tp--legacy .tp-legacy-wrap .input-group-addon { background: var(--tp-card); border-color: var(--tp-line); color: var(--tp-muted); border-radius: 10px 0 0 10px; }
.tp--legacy .tp-legacy-wrap .input-group .form-control { border-radius: 0 10px 10px 0 !important; }
.tp--legacy .tp-legacy-wrap .help-block, .tp--legacy .tp-legacy-wrap .text-muted { color: var(--tp-muted); }
.tp--legacy .tp-legacy-wrap .alert { border-radius: 12px; }
.tp--legacy .tp-legacy-wrap .table { color: var(--tp-text); }
.tp--legacy .tp-legacy-wrap .table td, .tp--legacy .tp-legacy-wrap .table th { border-color: var(--tp-line); }
.tp--legacy .tp-legacy-wrap .nav-tabs { border-color: var(--tp-line); }
.tp--legacy .tp-legacy-wrap .nav-tabs > li.active > a { background: var(--tp-card); color: #fff; border-color: var(--tp-line) var(--tp-line) transparent; }
.tp--legacy .tp-legacy-wrap .panel-heading { background: rgba(255, 255, 255, .03); border-color: var(--tp-line); color: #fff; }

/* connexion, inscription, mot de passe : carte centree avec titre */
.tp-page-auth .tp-legacy-wrap { max-width: 480px; margin: 10px auto 0; padding: 26px 26px 28px; background: var(--tp-card); border: 1px solid var(--tp-line); border-radius: 20px; }
.tp-page-auth .tp-legacy-wrap [class*=col-] { width: 100%; float: none; padding-left: 0; padding-right: 0; }
.tp-page-auth .tp-legacy-wrap .row { margin: 0; }
.tp-page-auth .tp-legacy-wrap .container-fluid { padding: 0; }
.tp-auth__title { margin: 0 0 18px; font: 800 26px/1.15 Outfit, Inter, sans-serif; color: #fff; }
.tp-auth__title::after { content: ""; display: block; width: 40px; height: 4px; margin-top: 10px; border-radius: 4px; background: linear-gradient(90deg, var(--tp-or2), var(--tp-or3)); }
.tp-page-auth .tp-legacy-wrap table, .tp-page-auth .tp-legacy-wrap tbody { display: block; width: 100%; }
.tp-page-auth .tp-legacy-wrap tr { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tp-page-auth .tp-legacy-wrap tr:has(input[type=checkbox]) { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 9px; }
.tp-page-auth .tp-legacy-wrap tr:has(input[type=checkbox]) label { margin: 0; font-weight: 500; color: var(--tp-muted); }
.tp-page-auth .tp-legacy-wrap td { display: block; padding: 0; }
.tp-page-auth .tp-legacy-wrap td:empty { display: none; }
.tp-page-auth .tp-legacy-wrap h2, .tp-page-auth .tp-legacy-wrap h3 { font: 700 16px/1.3 Inter, sans-serif; margin: 10px 0 0; }
.tp-page-auth .tp-legacy-wrap br + br { display: none; }
.tp-page-auth .tp-legacy-wrap .btn, .tp-page-auth .tp-legacy-wrap button[type=submit], .tp-page-auth .tp-legacy-wrap input[type=submit] { width: 100%; }
.tp-page-auth .tp-legacy-wrap a, .tp-page-auth .tp-legacy-wrap a:visited { color: var(--tp-or2) !important; font-weight: 600; text-decoration: none; }

/* contact */
.tp-page-contact .tp-legacy-wrap .headline h4, .tp-page-contact .tp-legacy-wrap > h4:first-child { font: 800 26px/1.15 Outfit, Inter, sans-serif; color: #fff; margin: 4px 0 16px; }
.tp-page-contact .tp-legacy-wrap form { max-width: none !important; margin: 18px 0 !important; background: var(--tp-card) !important; border: 1px solid var(--tp-line); border-radius: 18px; padding: 22px !important; }
.tp-page-contact .tp-legacy-wrap h1, .tp-page-contact .tp-legacy-wrap h2, .tp-page-contact .tp-legacy-wrap h3 { font-size: 18px; margin-top: 22px; }
.tp-page-contact .tp-legacy-wrap p { color: #c4c4ce; line-height: 1.65; }

/* VIP / premium (article/vip, pages exceeded) */
.tp--legacy.tp-page-article .tp-legacy-wrap { max-width: 760px; margin: 10px auto 0; padding: 28px 28px 30px; background: var(--tp-card); border: 1px solid rgba(255, 106, 46, .45); border-radius: 20px; }
.tp--legacy.tp-page-article .tp-legacy-wrap .row { margin: 0; }
.tp--legacy.tp-page-article .tp-legacy-wrap .container-fluid { padding: 0; }
.tp--legacy.tp-page-article .tp-legacy-wrap .subscribe { color: var(--tp-or2); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.tp--legacy.tp-page-article .tp-legacy-wrap h3 { font: 800 26px/1.2 Outfit, Inter, sans-serif; margin: 6px 0 18px; }
.tp--legacy.tp-page-article #advantages { color: var(--tp-muted) !important; margin: 0 0 8px; font-weight: 600; }
.tp--legacy.tp-page-article #advantage_list { list-style: none; display: inline-flex; flex-direction: column; gap: 8px; margin: 0 auto 22px; padding: 0; text-align: left; }
.tp--legacy.tp-page-article #advantage_list li { position: relative; padding-left: 28px; color: var(--tp-text); font-size: 15.5px; }
.tp--legacy.tp-page-article #advantage_list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--tp-or); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.tp--legacy.tp-page-article .tp-legacy-wrap .panel-body { padding: 0; }
.tp--legacy.tp-page-article .tp-legacy-wrap .form-group { margin-left: 0; margin-right: 0; }
.tp--legacy.tp-page-article .tp-legacy-wrap .control-label { text-align: left; padding-top: 0; margin-bottom: 6px; }
.tp--legacy.tp-page-article .tp-legacy-wrap .form-horizontal [class*=col-md-] { width: 100%; float: none; padding: 0; }
.tp--legacy.tp-page-article .tp-legacy-wrap .input-group { width: 100%; margin-bottom: 8px; }
.tp--legacy.tp-page-article .tp-legacy-wrap .center { text-align: center; }
.tp--legacy.tp-page-article .tp-legacy-wrap button[type=submit] { min-width: 220px; }
.tp--legacy.tp-page-article .tp-legacy-wrap > p, .tp--legacy.tp-page-article .tp-legacy-wrap .container-fluid ~ p { color: var(--tp-muted); font-size: 13.5px; text-align: center; }

@media (max-width: 760px) {
  .tp-page-auth .tp-legacy-wrap, .tp--legacy.tp-page-article .tp-legacy-wrap { padding: 20px 16px 22px; }
  .tp--legacy.tp-page-article .tp-legacy-wrap h3 { font-size: 21px; }
}
/* retouches : icones Font Awesome absentes, liens de compte, sous-titre VIP */
.tp--legacy .tp-legacy-wrap .input-group-icon .input-group-addon { display: none; }
.tp--legacy .tp-legacy-wrap .input-group-icon .form-control { border-radius: 10px !important; }
.tp-page-auth .tp-legacy-wrap a h3, .tp-page-auth .tp-legacy-wrap a h2 { color: var(--tp-or2); }
.tp-page-auth .tp-legacy-wrap a:hover h3 { color: #fff; }
.tp--legacy.tp-page-article .tp-legacy-wrap .subscribe { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
/* grille des listes : colonnes qui divisent 24 (2, 3, 4, 6) pour ne pas laisser de trous en bas */
.tp-grid:not(.tp-grid--rel) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1199px) { .tp-grid:not(.tp-grid--rel) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) { .tp-grid:not(.tp-grid--rel) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tp-grid:not(.tp-grid--rel) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* formulaire DMCA commun : couleurs de twistedporn */
.tp .dm--sombre { --dm-card: var(--tp-card); --dm-line: var(--tp-line); --dm-text: var(--tp-text); --dm-muted: var(--tp-muted); --dm-field: var(--tp-bg2); --dm-accent: var(--tp-or3); }
.tp .dm--sombre .dm-btn { background: linear-gradient(135deg, var(--tp-or2), var(--tp-or3)) !important; box-shadow: 0 8px 22px rgba(255, 106, 46, .3) !important; }
.tp .dm--sombre h1::after, .tp .dm--sombre .dm-title::after { background: linear-gradient(90deg, var(--tp-or2), var(--tp-or3)) !important; }

/* ---------- video verticale (classe posee par le script de l'article) : video a gauche, similaires a droite sur PC ---------- */
.tp-artzone.is-vert .tp-art__media .video-js.vjs-16-9 { padding-top: calc(100% / var(--tp-r, .5625)); }
@media (min-width: 992px) {
  .tp-artzone.is-vert { display: grid; grid-template-columns: max(320px, calc((100vh - 200px) * var(--tp-r, .5625))) minmax(0, 1fr); gap: 28px; align-items: start; }
  .tp-artzone.is-vert .tp-art { order: 1; max-width: none; margin: 0; min-width: 0; }
  .tp-artzone.is-vert .tp-art__title { font-size: 22px; }
  .tp-artzone.is-vert .tp-related { order: 2; margin-top: 0; }
  .tp-artzone.is-vert .tp-grid--rel, .tp-artzone.is-vert .tp-plugs { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media (max-width: 991px) {
  .tp-artzone.is-vert .tp-art__media .video-js { max-width: calc(78vh * var(--tp-r, .5625)); margin: 0 auto; }
}
@media (max-width: 991px) {
  .tp-artzone.is-vert .tp-art__embed { max-width: calc(78vh * var(--tp-r, .5625)); margin: 0 auto; width: 100%; }
}
.tp-artzone.is-vert .tp-art__embed iframe:not([style*="position"]) { width: 100%; height: auto; aspect-ratio: var(--tp-r, .5625); }
