/* Thème public calqué sur xavierraboteur.fr (WordPress « Standard »).
   Tous les sélecteurs restent sous .site pour laisser l’administration intacte. */
.site {
  --page: 940px;
  --side: 300px;
  margin: 0;
  background: #efefef;
  color: #333;
  font: 13px/18px "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.site *,
.site *::before,
.site *::after { box-sizing: border-box; }
.site h1,
.site h2,
.site h3,
.site h4,
.site p,
.site a,
.site li,
.site input,
.site button,
.site time { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.site a { color: #4d8b97; text-decoration: none; }
.site a:hover { color: #005580; text-decoration: underline; }
.site a:focus-visible,
.site button:focus-visible,
.site input:focus-visible { outline: 2px solid #4d8b97; outline-offset: 2px; }

.site .frame {
  width: var(--page);
  max-width: calc(100% - 40px);
  margin-right: auto;
  margin-left: auto;
}

.site .topbar {
  background: linear-gradient(#202020, #1c1c1c);
  color: #999;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25), inset 0 -1px 0 rgba(0, 0, 0, .1);
}
.site .topbar-inner {
  display: flex;
  align-items: center;
  min-height: 38px;
}
.site .topbar a { color: #999; }
.site .topbar a:hover { color: #fff; text-decoration: none; }
.site .site-nav a { display: inline-block; padding: 10px 15px; }
.site .social {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.site .social a { display: block; padding: 8px 0; line-height: 0; }
.site .social img { width: 16px; height: 16px; display: block; }
.site .nav-toggle {
  display: none;
  width: 40px;
  height: 28px;
  margin: 0 6px 0 0;
  padding: 7px 10px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 4px;
  background: linear-gradient(#333, #222);
  cursor: pointer;
}
.site .nav-toggle span {
  display: block;
  height: 2px;
  margin-top: 3px;
  background: #fff;
}
.site .nav-toggle span:first-child { margin-top: 0; }

.site .banner { padding: 40px 0; }
.site .site-name,
.site .site-name a {
  margin: 0;
  color: #000;
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
}
.site .site-name a:hover { color: #000; text-decoration: none; }

.site .layout { display: flex; align-items: flex-start; gap: 20px; }
.site .main { flex: 1 1 auto; min-width: 0; }
.site .sidebar { flex: 0 0 var(--side); width: var(--side); }

.site .breadcrumb {
  margin: 0 0 18px;
  padding: 8px 17px;
  list-style: none;
  background: #fbfbfb;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
}
.site .breadcrumb li { display: inline; }
.site .breadcrumb .divider { padding: 0 4px; color: #999; }

.site .post {
  margin: 0 0 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.site .post-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
}
.site .post-header::after { content: ""; display: block; clear: both; }
.site .thumb {
  float: left;
  margin: 0 20px 0 0;
  padding: 4px;
  line-height: 0;
  background: #eee;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .075);
}
.site .thumb img { display: block; width: 80px; height: auto; }
.site .post-title {
  margin: 0 0 5px;
  color: #444;
  font-size: 32px;
  font-weight: 200;
  line-height: 38px;
  overflow-wrap: break-word;
}
.site .post-title a { color: #444; }
.site .post-title a:hover { color: #444; text-decoration: underline; }
.site .the-time { color: #999; font-size: 13px; }
.site .entry { padding: 0 20px 20px; overflow-wrap: break-word; }
.site .entry p { margin: 0 0 20px; }
.site .entry h1,
.site .entry h2 { margin: 0 0 10px; color: #444; font-size: 24px; font-weight: 700; line-height: 33.6px; }
.site .entry h3 { margin: 0 0 10px; color: #444; font-size: 18px; font-weight: 700; line-height: 24px; }
.site .entry h4 { margin: 0 0 10px; color: #444; font-size: 16px; font-weight: 700; line-height: 22px; }
.site .entry ul,
.site .entry ol { margin: 0 0 20px; padding-left: 24px; }
.site .entry li { margin: 0 0 4px; }
.site .entry blockquote { margin: 0 0 18px; padding: 0 0 0 15px; border-left: 5px solid #eee; }
.site .entry blockquote p { margin-bottom: 0; font-size: 16px; font-weight: 300; line-height: 22.5px; }
.site .entry code {
  padding: 2px 4px;
  color: #dd1144;
  font-family: Menlo, Monaco, "Courier New", monospace;
  font-size: 12px;
  background: #f7f7f9;
  border: 1px solid #e1e1e8;
  border-radius: 3px;
}
.site .entry pre {
  margin: 0 0 20px;
  padding: 0;
  overflow: auto;
  background: transparent;
  border: 0;
  white-space: pre;
}
.site .entry pre code {
  padding: 0;
  color: #333;
  font-size: 13px;
  line-height: 18.2px;
  background: transparent;
  border: 0;
}
.site .entry img { max-width: 100%; height: auto; }
.site .entry figure { margin: 0 0 13px; }
.site .entry figcaption { margin-top: 6px; color: #999; font-size: 12px; }
.site .entry table { width: 100%; margin: 0 0 20px; border-collapse: collapse; }
.site .entry th,
.site .entry td { padding: 8px; border-top: 1px solid #ddd; text-align: left; vertical-align: top; }
.site .entry th { font-weight: 700; }
.site .more { display: inline-block; margin-top: 2px; }
.site .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 20px;
  color: #888;
  font-size: 12px;
  border-top: 1px solid #eee;
}
.site .post-meta a { font-size: 12px; }
.site .tag-icon { margin-right: 3px; vertical-align: -1px; }
.site .permalink { margin-left: auto; line-height: 0; }
.site .permalink:hover { text-decoration: none; }
.site .status { margin: 0 0 20px; color: #333; }
.site .pager { margin: 0 0 24px; }
.site .pager a { margin-right: 8px; }
.site .index-list { margin: 0; padding-left: 18px; }
.site .index-list li { margin: 0 0 8px; }

.site .portrait { display: block; width: 100%; height: auto; margin: 0 0 20px; }
.site .widget { margin: 0 0 30px; }
.site .widget h2 {
  margin: 0 0 10px;
  padding: 0 0 10px;
  color: #444;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
  border-bottom: 1px solid #e0e0e0;
}
.site .widget ul { margin: 0; padding: 0; list-style: none; }
.site .widget li { margin: 0 0 8px; overflow-wrap: break-word; }
.site .search { margin: 0; }
.site .search input {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0 0 9px;
  padding: 4px;
  color: #555;
  font: inherit;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.site .site-footer { margin-top: 10px; padding: 28px 0 10px; background: #e0e0e0; }
.site .footer-grid { display: flex; gap: 20px; }
.site .footer-grid .widget { flex: 1 1 0; min-width: 0; }
.site .subfloor { padding: 16px 0; color: #bbb; background: #000; }
.site .subfloor a { color: #bbb; }
.site .subfloor a:hover { color: #fff; }
.site .subfloor .legal { display: inline; margin-left: 16px; }
.site .subfloor .legal a { margin-right: 12px; }
.site .byline { margin: 0 0 8px; color: #666; }

@media (max-width: 979px) and (min-width: 768px) {
  .site { --page: 724px; --side: 228px; }
}
@media (max-width: 767px) {
  .site { --page: 100%; --side: 100%; }
  .site .nav-toggle { display: inline-block; }
  .site .site-nav { display: none; flex-basis: 100%; }
  .site.nav-open .site-nav { display: block; }
  .site .topbar-inner { flex-wrap: wrap; padding-top: 5px; padding-bottom: 5px; }
  .site .banner { text-align: center; }
  .site .layout,
  .site .footer-grid { flex-direction: column; align-items: stretch; }
  .site .main,
  .site .sidebar { width: 100%; flex-basis: auto; }
  .site .post-title { font-size: 28px; line-height: 34px; }
}

.site .video-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 20px; }
.site .video-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.site .video-filters input { min-width: 10rem; padding: 6px 8px; border: 1px solid #ccc; }
.site .video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.site .video-card { margin: 0; }
.site .video-card h2 { margin: 8px 0 4px; font-size: 18px; line-height: 1.3; }
.site .video-card a { color: #444; text-decoration: none; }
.site .video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; }
.site .video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.site .video-length, .site .video-duration { color: #666; }
.site .video-length { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; color: #fff; background: rgb(0 0 0 / 72%); font-size: 12px; }
.site .video-meta { margin: 0; color: #777; font-size: 13px; }
.site .video-stage { margin: 0 0 16px; background: #111; }
.site .video-stage video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #111; }
.site .video-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 16px; }
.site .video-chapters button, .site .video-transcript button { background: none; border: 0; padding: 4px 0; color: #4d8b97; text-align: left; cursor: pointer; }
.site .video-chapters button[aria-current="true"], .site .video-transcript button[aria-current="true"] { font-weight: 700; }
.site .video-note { color: #666; }
.site .video-siblings { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) {
  .site .video-stage video { scroll-behavior: auto; }
}
