/* Archive Fav'idéo — palette issue du thème d'origine (skin "favideo") :
   bleu profond #255677 / #1c455f, bleu ciel #57c4ee, accent orange du logo #f0a223 */

@font-face {
  font-family: 'Bebas Neue';
  src: url('/fonts/BebasNeue-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bleu-fonce: #1c455f;
  --bleu: #255677;
  --bleu-ciel: #57c4ee;
  --orange: #f0a223;
  --texte: #2c3138;
  --texte-doux: #6a7380;
  --fond: #f4f6f8;
  --carte: #ffffff;
  --bord: #e1e6ec;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--texte);
  background: var(--fond);
  line-height: 1.65;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .site-tagline, .main-nav, .pagination, .video-type, .tag {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.3rem; color: var(--bleu-fonce); margin: 0.6em 0 0.4em; }
h2 { font-size: 1.6rem; color: var(--bleu); }
a { color: var(--bleu); }
a:hover { color: var(--bleu-ciel); }
img { max-width: 100%; height: auto; }

/* ---------- Header (noir + logo blanc, comme le site d'origine) ---------- */
.site-header { background: #111; border-bottom: 7px solid var(--bleu); }
.header-brand { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 14px; flex-wrap: wrap; gap: 12px; }
.site-logo img { display: block; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.site-tagline { color: #9aa6b0; font-size: 1.15rem; margin: 0; }
.search-form { display: flex; }
.search-form input {
  width: 240px; padding: 7px 12px; border: 1px solid #333; border-radius: 4px 0 0 4px;
  background: #1d1d1d; color: #eee; font-family: inherit;
}
.search-form input::placeholder { color: #777; }
.search-form button {
  padding: 7px 14px; border: 0; border-radius: 0 4px 4px 0; cursor: pointer;
  background: var(--bleu); color: #fff; font-family: 'Bebas Neue', sans-serif; font-size: 1rem;
}
.search-form button:hover { background: var(--bleu-ciel); }

.main-nav { background: var(--bleu); }
.main-nav ul { list-style: none; margin: 0 auto; padding: 0 10px; display: flex; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a, .main-nav span {
  display: block; padding: 11px 16px; color: #fff; text-decoration: none;
  font-size: 1.15rem; cursor: default;
}
.main-nav a { cursor: pointer; }
.main-nav li:hover > a, .main-nav li:hover > span { background: var(--bleu-fonce); color: var(--bleu-ciel); }
.main-nav li ul {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  background: var(--bleu-fonce); min-width: 230px; padding: 0; box-shadow: 0 6px 12px rgba(0,0,0,.25);
}
.main-nav li:hover > ul { display: block; }
.main-nav li ul a { font-size: 1.05rem; border-top: 1px solid rgba(255,255,255,.08); }
.main-nav .nav-random { margin-left: auto; }
.main-nav .nav-random a { background: var(--orange); }
.main-nav .nav-random a:hover { background: #d98d12; color: #fff; }

.search-hit { border-bottom: 1px solid var(--bord); padding: 8px 0; }
.search-hit h3 { margin: 4px 0; }

/* ---------- Bandeau archive ---------- */
.archive-banner {
  background: linear-gradient(90deg, var(--bleu) 0%, var(--bleu-fonce) 100%);
  color: #fff; padding: 10px 16px; border-radius: 6px; margin-top: 22px;
  border-left: 6px solid var(--orange); font-size: 0.95rem;
}

/* ---------- Cartes article ---------- */
.post-card {
  display: flex; gap: 18px; background: var(--carte); border: 1px solid var(--bord);
  border-radius: 8px; margin: 20px 0; overflow: hidden;
  transition: box-shadow .2s;
}
.post-card:hover { box-shadow: 0 4px 14px rgba(28,69,95,.15); }
.post-card .thumb { flex: 0 0 240px; align-self: stretch; background: var(--bleu-fonce); }
.post-card .thumb img { width: 240px; height: 100%; min-height: 150px; object-fit: cover; display: block; }
.post-card .card-body { padding: 14px 18px 14px 0; flex: 1; min-width: 0; }
.post-card h2 { margin: 0 0 4px; }
.post-card h2 a { text-decoration: none; color: var(--bleu-fonce); }
.post-card h2 a:hover { color: var(--bleu-ciel); }
.post-card p { margin: 6px 0; }
.meta { color: var(--texte-doux); font-size: 0.88rem; }
.meta a { color: var(--orange); text-decoration: none; }

/* ---------- Article ---------- */
.post { background: var(--carte); border: 1px solid var(--bord); border-radius: 8px; padding: 28px 34px; margin: 24px 0; }
.post .content { font-size: 1.04rem; }
.post-banner { width: 100%; border-radius: 6px; margin: 6px 0 14px; display: block; }
.post .content img { border-radius: 4px; margin: 4px; }
.post iframe, .video-embed iframe {
  width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; display: block; margin: 18px auto;
}
.tags { border-top: 1px solid var(--bord); padding-top: 14px; margin-top: 24px; }
.tag {
  display: inline-block; background: var(--fond); border: 1px solid var(--bord); border-radius: 4px;
  padding: 2px 10px; margin: 2px; text-decoration: none; font-size: 1rem; color: var(--bleu);
}
.tag:hover { background: var(--bleu); color: #fff; }

/* ---------- Vidéo non intégrable mais visible sur la plateforme ---------- */
.video-lien {
  background: #eef6fb; border: 1px solid var(--bleu-ciel); border-radius: 6px;
  padding: 14px 18px; margin: 18px 0;
}
.video-lien p { margin: 4px 0; }
.bouton-video {
  display: inline-block; background: var(--bleu); color: #fff; text-decoration: none;
  padding: 8px 18px; border-radius: 5px; margin-top: 6px;
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 1.1rem; letter-spacing: 0.5px;
}
.bouton-video:hover { background: var(--bleu-ciel); color: #fff; }

/* ---------- Embeds morts ---------- */
.embed-mort {
  background: #fdf3e3; border: 1px dashed var(--orange); border-radius: 6px;
  padding: 14px 18px; margin: 18px 0; color: #7a5b1e;
}
.embed-mort p { margin: 4px 0; }
.embed-mort .src { font-size: 0.85rem; overflow-wrap: anywhere; }

/* ---------- Commentaires (repliés par défaut) ---------- */
.comments { border-top: 1px solid var(--bord); margin-top: 28px; padding-top: 14px; }
.comments summary {
  cursor: pointer; font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 1.25rem;
  color: var(--bleu); list-style-position: outside;
}
.comments summary:hover { color: var(--bleu-ciel); }
.comment { background: var(--fond); border-radius: 6px; padding: 10px 16px; margin: 10px 0; }
.comment-meta { color: var(--texte-doux); font-size: 0.88rem; margin: 0 0 4px; }

/* ---------- Navigation article / pagination ---------- */
.post-nav, .pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0; }
.post-nav a, .pagination a {
  background: var(--bleu); color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 5px;
  max-width: 44%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-nav a:hover, .pagination a:hover { background: var(--bleu-ciel); color: #fff; }
.pagination { font-size: 1.15rem; }

/* ---------- Catalogue vidéo ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 24px 0; }
.video-card {
  background: var(--carte); border: 1px solid var(--bord); border-radius: 8px; overflow: hidden;
  text-decoration: none; color: var(--texte); display: flex; flex-direction: column;
  transition: box-shadow .2s;
}
.video-card:hover { box-shadow: 0 4px 14px rgba(28,69,95,.2); color: var(--bleu); }
.video-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.thumb-missing {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center;
  background: var(--bleu-fonce); color: var(--bleu-ciel); font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem;
}
.video-title { padding: 10px 14px 2px; font-weight: bold; }
.video-type { padding: 0 14px 12px; color: var(--orange); font-size: 1rem; }

.term-list { columns: 2; padding-left: 22px; }
.term-list li { margin: 4px 0; }

/* ---------- Archives par année ---------- */
.archive-years { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 20px; }
.archive-years a {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif; font-size: 1.1rem; text-decoration: none;
  background: var(--carte); border: 1px solid var(--bord); border-radius: 4px; padding: 4px 12px;
}
.archive-years a:hover { background: var(--bleu); color: #fff; }
.archive-years a.current { background: var(--bleu-fonce); color: var(--bleu-ciel); border-color: var(--bleu-fonce); }
.archive-list { list-style: none; padding: 0; background: var(--carte); border: 1px solid var(--bord); border-radius: 8px; }
.archive-list li { display: flex; align-items: baseline; gap: 14px; padding: 8px 18px; border-bottom: 1px solid var(--bord); }
.archive-list li:last-child { border-bottom: none; }
.archive-list time { color: var(--texte-doux); font-size: 0.85rem; flex: 0 0 90px; }
.archive-list a { text-decoration: none; }
.archive-list a:hover { text-decoration: underline; }
.archive-list .cat { color: var(--orange); font-size: 0.8rem; margin-left: auto; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bleu-fonce); color: #cdd9e2; margin-top: 40px;
  border-top: 4px solid var(--orange); padding: 18px 0; font-size: 0.9rem;
}
.site-footer p { margin: 4px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .post-card { flex-direction: column; }
  .post-card .thumb, .post-card .thumb img { width: 100%; flex-basis: auto; }
  .post-card .card-body { padding: 0 16px 14px; }
  .post { padding: 18px; }
  .term-list { columns: 1; }
  .header-brand { justify-content: center; text-align: center; }
}
