/* =========================================================================
   CaptainWeb — feuille de style statique
   Reconstruite d'après le thème d'origine "dilectio" (Design Disease)
   ========================================================================= */

* { box-sizing: border-box; }

body {
  background: #150f0f url(images/bp.png) no-repeat center top;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 13px;
  margin: 0; padding: 0;
  color: #35383d;
}

a { color: #cc0000; text-decoration: none; }
a:hover { color: #ff6600; text-decoration: underline; }

img { border: none; }

/* ---- Conteneur général --------------------------------------------------- */
#wrap { width: 1005px; margin: 0 auto; }

/* ---- Header -------------------------------------------------------------- */
.Header { position: relative; min-height: 150px; }

.Logo { text-align: right; padding-top: 44px; padding-right: 205px; }
.Logo .LogoText {
  font-size: 56px; line-height: 56px; letter-spacing: -3px; font-weight: bold;
  color: #fff; display: inline-block;
  text-shadow: 2px 2px 0 rgba(0,0,0,.4);
}
.Logo .LogoText a { color: #fff; }
.Logo .Desc {
  color: #cc0000; font-size: 14px; font-weight: bold; margin-top: 4px;
  padding-right: 6px;
}

.Captain {
  position: absolute; top: 3px; right: 0;
  width: 188px; height: 127px;
  background: url(images/captainweb.png) no-repeat;
}

/* ---- Menu ---------------------------------------------------------------- */
.Menu { position: absolute; top: 108px; left: 20px; }
.Menu ul { list-style: none; margin: 0; padding: 0; }
.Menu li { display: inline-block; margin-right: 6px; }
.Menu li a {
  display: inline-block;
  padding: 5px 14px;
  font-size: 14px; font-weight: bold; color: #cc0000;
  background: #2a1d1d; border-radius: 3px 3px 0 0;
}
.Menu li a:hover { color: #ffff99; background: #4a2d2d; text-decoration: none; }
.Menu li.current a { color: #ffff99; background: #cc0000; }

/* ---- Boîte de contenu blanche ------------------------------------------- */
.CON {
  background: #fff; border: solid 1px #e1dfd0;
  padding: 14px; overflow: hidden;
}

/* ---- Colonne centrale (articles) ---------------------------------------- */
.SC { width: 555px; float: left; padding: 0 20px 0 15px; }

.pagetitle {
  font-size: 24px; font-weight: bold; letter-spacing: -1px;
  border-bottom: solid 1px #d0c1c1; padding: 10px 0 15px; margin: 0 0 10px;
  color: #000066;
}

/* ---- Article ------------------------------------------------------------- */
.Post { padding: 18px 0; position: relative; clear: left; border-bottom: 1px dotted #cbb; }
.Post:last-child { border-bottom: none; }

.PostHead { margin-left: 60px; }
.PostHead h2 { font-size: 22px; line-height: 24px; letter-spacing: -1px; margin: 0 0 2px; }
.PostHead h2 a { color: #cc0000; }
.PostHead h2 a:hover { color: #000; text-decoration: none; }

.PostMeta { font-size: 11px; font-weight: bold; }
.PostAuthor { color: #999; }
.PostCat, .PostCat a { color: #ff6600; }

/* Badge date (ruban bleu) */
.PostTime {
  position: absolute; left: 0; top: 4px;
  width: 50px; text-align: center; color: #fff;
  background: #109dd0; border-radius: 4px;
  padding-bottom: 5px;
  box-shadow: 0 2px 3px rgba(0,0,0,.25);
}
.PostTime .day   { font-size: 20px; font-weight: bold; display: block; padding: 6px 0 2px; }
.PostTime .month { font-size: 11px; text-transform: lowercase; display: block; }
.PostTime .year  { font-size: 10px; display: block; background: #0c7da8;
                   border-radius: 0 0 4px 4px; padding: 2px 0; }

.PostContent { padding-top: 10px; font-size: 13px; line-height: 1.5em; color: #5a4f56; }
.PostContent p { text-align: justify; margin: 0 0 12px; }
.PostContent a { color: #cc0000; }
.PostContent img { max-width: 100%; height: auto; }
.PostContent img.alignleft  { float: left;  margin: 3px 12px 8px 0; border: solid 1px #495b6b; }
.PostContent img.alignright { float: right; margin: 3px 0 8px 12px; border: solid 1px #495b6b; }
.PostContent ul { padding: 5px 0 5px 4px; margin: 0; }
.PostContent ul li { padding: 2px 0 2px 16px; list-style: none;
  background: url(images/PostContentLiIco.png) no-repeat left 4px; }
.PostContent blockquote { padding: 10px; margin: 0 0 12px; color: #993366; background: #eaf7ff; }

.more { display: inline-block; margin-top: 6px; font-weight: bold; color: #ff6600; }

/* ---- Lecteur podcast ----------------------------------------------------- */
.podcast {
  background: #1d1410; color: #f4e7d8; border: solid 1px #3a2a20;
  border-radius: 6px; padding: 12px; margin: 0 0 14px;
  overflow: hidden;
}
.podcast .cover {
  float: left; width: 96px; height: 96px; margin: 0 12px 0 0;
  border-radius: 4px; border: solid 2px #cc0000; background: #000;
}
.podcast .pc-body { overflow: hidden; }
.podcast .pc-title { font-weight: bold; color: #ffb070; font-size: 14px; margin-bottom: 8px; }
.podcast audio { width: 100%; display: block; margin-bottom: 8px; }
.podcast .dl {
  display: inline-block; background: #cc0000; color: #fff; font-weight: bold;
  padding: 5px 12px; border-radius: 4px; font-size: 12px;
}
.podcast .dl:hover { background: #ff6600; text-decoration: none; }

/* ---- Pagination ---------------------------------------------------------- */
.Nav { font-size: 12px; padding: 16px 0 4px; color: #666; clear: left; }
.Nav a, .Nav span { padding: 3px 9px; border: solid 1px #ddd; margin-right: 4px; border-radius: 3px; }
.Nav .on { background: #cc0000; color: #fff; border-color: #cc0000; }

/* ---- Sidebar ------------------------------------------------------------- */
.SR { width: 400px; float: right; }

.widget { margin-bottom: 14px; }
.widget h2 {
  color: #660000; font-size: 16px; letter-spacing: -1px;
  border-bottom: solid 1px #eeede4; padding: 5px 0; margin: 0 0 8px;
}

/* Encart de bienvenue (vert) */
.welcome {
  background: #6f8f2f; color: #f4ffe0; padding: 14px;
  border-radius: 4px; box-shadow: inset 0 0 0 2px #5e7a26;
}
.welcome h2 { color: #fff; border-bottom-color: #88a84a; }
.welcome p { line-height: 1.5em; margin: 0 0 8px; }
.welcome .social a {
  display: inline-block; background: #ff6600; color: #fff;
  padding: 3px 10px; border-radius: 3px; margin: 4px 6px 0 0; font-weight: bold;
}
.welcome .social a:hover { background: #cc0000; text-decoration: none; }

/* Liste catégories / articles récents */
.widget.list ul { margin: 0; padding: 0; list-style: none; }
.widget.list li { padding: 4px 0; border-bottom: solid 1px #eeede4; font-size: 13px; }
.widget.list li a { color: #cc0000; }
.widget.list li .count { color: #999; font-size: 11px; }

/* Bannière boutique / podcast */
.banner { background: #b8202a; color: #ffd; text-align: center; padding: 14px;
  border-radius: 4px; font-weight: bold; font-size: 16px; margin-bottom: 14px; }
.banner small { display: block; font-weight: normal; font-size: 12px; opacity: .85; }

/* ---- Bannière BOUTIQUE bien vulgos & voyante --------------------------- */
@keyframes sb-rainbow {
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes sb-pulse  { 0%,100% { transform: scale(1) rotate(-1deg); } 50% { transform: scale(1.06) rotate(1deg); } }
@keyframes sb-blink  { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes sb-shake  { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.shop-banner {
  display: block; text-align: center; text-decoration: none;
  margin: 0 0 16px; padding: 16px 10px;
  border: 4px dashed #fff000;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff009d, #ff6a00, #ffe600, #00e0ff, #b400ff, #ff009d);
  background-size: 200% 100%;
  animation: sb-rainbow 4s linear infinite, sb-pulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 3px #000, 0 0 18px 4px rgba(255,0,157,.8);
  color: #fff;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
  overflow: hidden;
}
.shop-banner:hover { animation-play-state: paused; box-shadow: 0 0 0 3px #000, 0 0 28px 8px #ffe600; text-decoration: none; }
.shop-banner .sb-flag  { display: inline-block; background: #000; color: #ffe600; font-weight: bold;
  font-size: 12px; padding: 2px 8px; border-radius: 20px; animation: sb-blink .8s steps(1) infinite; }
.shop-banner .sb-title { display: block; font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -1px;
  margin: 8px 0 6px; font-family: "Trebuchet MS", Impact, sans-serif; -webkit-text-stroke: 1px #000; }
.shop-banner .sb-cta   { display: block; background: #000; color: #fff000; font-weight: bold; font-size: 15px;
  padding: 5px 6px; border-radius: 4px; margin: 6px 0; animation: sb-shake .5s ease-in-out infinite; }
.shop-banner .sb-sub   { display: block; font-size: 12px; color: #fff; font-weight: bold; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .shop-banner, .shop-banner .sb-flag, .shop-banner .sb-cta { animation: none; }
}

/* ---- Bannière PATREON : encore plus violente ---------------------------- */
@keyframes pb-strobe {
  0%,100% { box-shadow: 0 0 0 3px #000, 0 0 22px 6px #ff424d; }
  50%     { box-shadow: 0 0 0 3px #fff, 0 0 40px 14px #ffe600; }
}
@keyframes pb-jolt {
  0%,100% { transform: scale(1.04) rotate(-2deg); }
  20%     { transform: scale(1.12) rotate(2deg); }
  40%     { transform: scale(1.0)  rotate(-3deg); }
  60%     { transform: scale(1.1)  rotate(3deg); }
  80%     { transform: scale(1.06) rotate(-1deg); }
}
@keyframes pb-flash { 0%,49% { color:#fff000; } 50%,100% { color:#ff0000; } }

.patreon-banner {
  display: block; text-align: center; text-decoration: none;
  margin: 0 0 16px; padding: 18px 10px;
  border: 5px double #fff;
  border-radius: 8px;
  background: linear-gradient(90deg,#ff424d,#ff0000,#ff8a00,#ff424d,#e0003c,#ff424d);
  background-size: 250% 100%;
  color: #fff; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
  animation: sb-rainbow 2.2s linear infinite, pb-jolt .7s ease-in-out infinite, pb-strobe .5s steps(1) infinite;
  overflow: hidden;
}
.patreon-banner:hover { animation-play-state: paused; }
.patreon-banner .pb-flag  { display: block; font-size: 12px; font-weight: bold; background:#000; color:#ffe600;
  padding: 3px; border-radius: 3px; animation: sb-blink .4s steps(1) infinite; }
.patreon-banner .pb-title { display: block; font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: -2px;
  margin: 6px 0; font-family: Impact, "Trebuchet MS", sans-serif; -webkit-text-stroke: 2px #000; }
.patreon-banner .pb-cta   { display: block; background:#000; font-weight: bold; font-size: 16px;
  padding: 6px 4px; border-radius: 4px; animation: sb-shake .3s ease-in-out infinite, pb-flash .6s steps(1) infinite; }
.patreon-banner .pb-sub   { display: block; font-size: 12px; font-weight: bold; margin-top: 6px; font-style: italic; }

/* ---- Bannière TWITCH ----------------------------------------------------- */
@keyframes tw-glow { 0%,100% { box-shadow: 0 0 0 3px #000, 0 0 16px 3px #9146ff; } 50% { box-shadow: 0 0 0 3px #000, 0 0 28px 9px #b388ff; } }
@keyframes tw-blink { 0%,100% { opacity: 1; } 50% { opacity: .15; } }

.twitch-banner {
  display: block; text-align: center; text-decoration: none;
  margin: 0 0 16px; padding: 16px 10px;
  border: 4px solid #fff;
  border-radius: 8px;
  background: linear-gradient(135deg,#9146ff 0%,#6441a5 60%,#772ce8 100%);
  color: #fff; text-shadow: 1px 1px 0 #000;
  animation: sb-pulse 1.6s ease-in-out infinite, tw-glow 1.2s ease-in-out infinite;
}
.twitch-banner:hover { animation-play-state: paused; text-decoration: none; }
.twitch-banner .tw-live { display: inline-block; background:#000; color:#fff; font-weight: bold; font-size: 12px;
  padding: 3px 10px 3px 8px; border-radius: 20px; }
.twitch-banner .tw-dot  { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background:#ff0000;
  margin-right: 4px; vertical-align: middle; animation: tw-blink .7s steps(1) infinite; }
.twitch-banner .tw-title { display: block; font-size: 28px; font-weight: 900; letter-spacing: -1px; margin: 8px 0 4px;
  font-family: "Trebuchet MS", Impact, sans-serif; -webkit-text-stroke: 1px #000; }
.twitch-banner .tw-cta  { display: block; font-weight: bold; font-size: 14px; }
.twitch-banner .tw-sub  { display: block; font-size: 12px; font-weight: bold; margin-top: 4px; opacity: .9; }

/* ---- Badge Claude (sobre, volontairement) ------------------------------- */
.claude-badge {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  margin: 6px 0 4px; padding: 12px;
  background: #1f1d1b; border: solid 1px #3a3531; border-radius: 8px;
  color: #e9e4dd; transition: border-color .2s, background .2s;
}
.claude-badge:hover { background: #262320; border-color: #d97757; text-decoration: none; }
.claude-badge .cb-spark { font-size: 22px; color: #d97757; flex: 0 0 auto; }
.claude-badge .cb-body strong { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }
.claude-badge .cb-body small { display: block; font-size: 11px; line-height: 1.4; color: #b8b0a8; }

@media (prefers-reduced-motion: reduce) {
  .patreon-banner, .patreon-banner *, .twitch-banner, .twitch-banner * { animation: none !important; }
}

/* ---- Footer -------------------------------------------------------------- */
#footer { color: #cfc9c9; font-size: 12px; padding: 16px 6px 4px; }
#footer a { color: #ff8a4d; }
#credits { color: #8a8080; font-size: 11px; padding: 6px; text-align: center; }

/* ---- Article seul -------------------------------------------------------- */
.single .SC { width: 100%; float: none; padding: 0 10px; }
.single .PostContent { font-size: 14px; }
.backlink { display: inline-block; margin: 10px 0; font-weight: bold; }

/* ---- Responsive (léger) -------------------------------------------------- */
@media (max-width: 1020px) {
  #wrap { width: 100%; }
  .CON { padding: 10px; }
  .SC, .SR { width: 100%; float: none; padding: 0; }
  .Captain { display: none; }
  .Logo { text-align: center; }
  .Menu { position: static; margin: 10px 0; text-align: center; }
}
