/* =========================================================
   THE 4TH DIMENSION — feuille de style unique
   Référence : le blog archivé en mars 2016 (« la bible »).
   Pour changer une couleur ou une taille : modifier la
   variable ci-dessous, une seule fois.
   ========================================================= */

:root {
  /* --- Couleurs --- */
  --fond: #000000;          /* fond de page, panneaux, colonne droite */
  --filet: #262626;         /* bords des articles et des cadres */
  --fond-cadre: #090909;    /* cadre des réseaux */
  --texte: #999999;         /* texte des articles */
  --texte-clair: #ffffff;   /* texte blanc des articles plus anciens (2008-2013) */
  --souligne-rouge: #94281e; /* soulignement rouge de certains liens */
  --cadre-vide: #9a9a9a;    /* contour des images disparues, quand la capture le montre */
  --date: #a5a5a5;          /* date dans l'onglet */
  --lien: #666666;          /* liens, titres de l'index, « Posted by » */
  --lien-survol: #bebebe;
  --lien-visite: #606060;
  --auteur: #cccccc;        /* nom après « Posted by » */
  --legende: #868686;
  --defilant: #f5b867;      /* texte défilant du bandeau */
  --etoile-dim: #e26241;
  --etoile-jack: #475e00;
  --etoile-woody: #f8d353;
  --etoile-tendo: #9f528e;
  --jaune-2008: #ffff54;     /* titres jaunes de 2008 */

  /* --- Polices --- */
  --police: Arial, Helvetica, sans-serif;
  --police-etroite: "Arial Narrow", "Archivo Narrow", "Roboto Condensed", Arial, sans-serif;
  --police-titres-index: Times, "Times New Roman", serif;

  /* --- Grille (ordinateur) --- */
  --largeur-page: 1120px;
  --col-gauche: 270px;
  --col-droite: 220px;
  --largeur-article: 608px;     /* + 2 filets = 610 px */
  --texte-etroit: 300px;
  --texte-normal: 440px;
  --texte-large: 500px;
  --haut-contenu: 238px;  /* distance entre le haut de la fenêtre et le premier article (valeur de 2016) */
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { background: var(--fond) url("../images/theme/texture.jpg") repeat center top; background-size: 593px 996px; }
body { margin: 0; font-family: var(--police); font-size: 10px; line-height: 15px; color: var(--texte); }
img { border: 0; vertical-align: top; }
a { color: var(--lien); text-decoration: none; font-size: 11px; }
a:visited { color: var(--lien-visite); }
a:hover, a:focus-visible { color: var(--lien-survol); }
a img { font-size: 0; }

/* Zone noire à droite de la page, jusqu'au bord de la fenêtre */
.fond-droit { position: fixed; top: 0; bottom: 0; left: calc(50% + 340px); right: 0; background: var(--fond); border-left: 1px solid var(--filet); z-index: 0; }

/* ---------- Bandeau du haut (fixe) ---------- */
.bandeau { position: fixed; top: 0; left: 0; right: 0; height: 58px; z-index: 10; pointer-events: none; }
.bandeau > * { pointer-events: auto; }
.bandeau-fond { position: absolute; left: -100px; top: -265px; z-index: 1; }
.bandeau-1 { position: absolute; left: -5px; top: -2px; width: 2500px; height: 58px; z-index: 1; }
.bandeau-2 { position: absolute; left: 0; top: -2px; width: 2500px; height: 56px; z-index: 2; }
.menu { position: absolute; top: -2px; left: 220px; display: flex; z-index: 3; margin: 0; padding: 0; list-style: none; }
.menu li { width: 100px; }
.menu a { display: block; width: 73px; height: 40px; background: no-repeat 0 0 / 73px 40px; }
.menu img { width: 73px; height: 40px; }
.menu a:hover img, .menu a:focus-visible img { opacity: 0; }
.menu .about:hover, .menu .about:focus-visible { background-image: url("../images/theme/btn-about-survol.png"); }
.menu .merch:hover, .menu .merch:focus-visible { background-image: url("../images/theme/btn-merch-survol.png"); }
.menu .tv:hover, .menu .tv:focus-visible { background-image: url("../images/theme/btn-tv-survol.png"); }
.menu .blog:hover, .menu .blog:focus-visible { background-image: url("../images/theme/btn-blog-survol.png"); }
.separateur { position: absolute; left: 620px; top: -1px; width: 13px; height: 39px; z-index: 4; }
.defilant { margin: 0; position: absolute; left: 629px; top: 8px; width: 273px; height: 18px; overflow: hidden; z-index: 3; }
.defilant span { display: inline-block; white-space: nowrap; padding-left: 100%; font-family: var(--police-etroite); font-size: 10px; line-height: 18px; color: var(--defilant); animation: defile var(--duree-defilement, 40s) linear infinite; }
.defilant:hover span { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-100%); } }
.cache-bandeau { position: absolute; left: 872px; top: -1px; height: 36px; z-index: 4; }
.terre { position: absolute; left: 922px; top: -1px; height: 36px; z-index: 3; }

/* ---------- Page en trois colonnes ---------- */
.page { position: relative; z-index: 1; width: var(--largeur-page); margin: 0 auto; display: grid;
  grid-template-columns: var(--col-gauche) 1fr var(--col-droite);
  grid-template-areas: "gauche articles droite" "gauche pager droite"; grid-template-rows: auto 1fr; }

/* Colonne gauche : crâne + Since 2008 */
.colonne-gauche { grid-area: gauche; position: relative; }
.crane { position: absolute; left: 38px; top: calc(var(--haut-contenu) - 5px); width: 103px; height: 288px; }
.crane > img { display: block; }
.crane > img.masque { display: none; }
.halloween .crane > img.masque { display: block; }
.pupille { position: absolute; width: 15px; height: 15px; z-index: 2; }
.masque { position: absolute; left: -8px; top: -10px; width: 121px; height: 308px; z-index: 3; pointer-events: none; }
.since { position: absolute; left: 51px; top: calc(var(--haut-contenu) + 359px); width: 72px; height: 17px; }
.logo-4th { display: none; }   /* utilisé seulement sur téléphone (voir plus bas) */

/* Colonne centrale : articles */
.articles { grid-area: articles; padding-top: var(--haut-contenu); margin-left: calc(261px - var(--col-gauche)); }

/* ---------- Un article ---------- */
.article { position: relative; width: calc(var(--largeur-article) + 2px); background: var(--fond); border-left: 1px solid var(--filet); border-right: 1px solid var(--filet); text-align: center; margin-bottom: 108px; padding-top: 30px; padding-bottom: 45px; }
.onglet { position: absolute; left: -25px; top: 15px; width: 28px; height: 125px; z-index: 2; }
.onglet img { width: 28px; height: 125px; }
.onglet time { position: absolute; left: 0; top: 0; width: 24px; height: 125px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-style: italic; color: var(--date); }
.article img.photo { padding: 3px; max-width: 100%; height: auto; }
svg.trou { display: inline-block; vertical-align: top; max-width: 100%; height: auto; background: var(--fond); }  /* image disparue : le vide reste */
.article p { margin-top: 0; margin-bottom: 0; }
.texte { margin: 0 auto; text-align: justify; }
.texte-etroit { width: var(--texte-etroit); }
.texte-normal { width: var(--texte-normal); }
.texte-large  { width: var(--texte-large); }
.centre { text-align: center; }
.lettrine { font-size: 12px; font-weight: bold; font-style: italic; }
.signature-texte { display: block; text-align: right; color: #ffffff; text-decoration: underline; }
.titre-vagues { font-size: 10px; font-weight: bold; color: var(--texte); text-align: center; }
.titre-souligne { font-size: 11px; font-weight: bold; text-decoration: underline; color: var(--texte); text-align: center; }

/* Pied d'article : frise, ∞, Posted by, bas arrondi */
.pied { position: relative; width: 537px; margin: 0 0 0 35px; text-align: left; }
.pied::before { content: ""; position: absolute; left: 1px; top: -27px; width: 535px; height: 19px; background: url("../images/theme/frise.png") no-repeat 0 0 / 535px 19px; }
.pied .infini { display: inline-block; margin-left: 22px; }
.pied .infini img { width: 28px; height: 15px; }
.pied .posted { display: block; text-align: right; font-size: 10px; color: var(--lien); padding-right: 3px; }
.pied .posted i { color: var(--lien); }
.pied .posted span { color: var(--auteur); }
.bas-article { position: absolute; left: -1px; bottom: -64px; width: 612px; height: 64px; }

/* Pagination */
.pager { grid-area: pager; margin-left: calc(261px - var(--col-gauche)); width: calc(var(--largeur-article) + 2px); display: flex; justify-content: space-between; padding-bottom: 60px; }
.pager a { font-family: var(--police-etroite); font-size: 12.5px; color: var(--lien); display: inline-flex; align-items: center; gap: 4px; }
.pager .new img { transform: scaleX(-1); }

/* ---------- Colonne droite ---------- */
.colonne-droite { grid-area: droite; position: relative; padding-top: calc(var(--haut-contenu) - 30px); padding-left: 25px; }
.tele { position: relative; width: 200px; height: 207px; }
.tele .ecran { position: absolute; left: 0; top: 12px; width: 200px; height: 190px; background: #050505; }
.tele .haut { position: absolute; left: 0; top: 0; width: 200px; z-index: 2; }
.tele .bas { position: absolute; left: 0; top: 162px; width: 200px; z-index: 2; }
.tele .bulle { position: absolute; left: 179px; top: 173px; z-index: 3; }
.tele .bulle img { width: 23px; height: 22px; }
.bloc-fixe { position: sticky; top: 210px; width: 200px; padding-top: 30px; }
.bloc-fixe .feed img { width: 200px; height: auto; }
.reseaux { margin: 45px 0 0 5px; max-width: 195px; padding: 16px 0; text-align: center; background: var(--fond-cadre); border: 1px solid var(--filet); }
.reseaux a { display: inline-block; margin: 0 4px; }
.reseaux img { width: 16px; height: 16px; opacity: .85; }
.reseaux a:hover img { opacity: 1; }
.btn-index { display: block; width: 119px; margin: 57px auto 0; }

/* ---------- Bas de l'écran (fixe) ---------- */
.bas-ecran a, .bas-ecran span { position: fixed; bottom: 0; background: var(--fond); border: 5px solid var(--fond); border-radius: 4px; z-index: 20; }
.bas-ecran .home { right: 288px; }
.bas-ecran .home img { width: 42px; height: 20px; }
.bas-ecran .blog { right: 231px; }
.bas-ecran .blog img { width: 39px; height: 20px; }
.bas-ecran .sep { right: 278px; bottom: -1px; border-radius: 0; border-width: 4px 5px 5px; }
.bas-ecran .sep img { width: 3px; height: 22px; }
.retour-haut { position: fixed; right: 10px; bottom: 10px; padding: 5px; z-index: 20; }

/* ---------- Accessibilité ---------- */
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .defilant span { animation: none; padding-left: 0; }
  html { scroll-behavior: auto; }
}
html { scroll-behavior: smooth; }

/* =========================================================
   VERSION TÉLÉPHONE (écrans étroits)
   ========================================================= */
@media (max-width: 820px) {
  html { background-size: 297px 498px; }
  .fond-droit { display: none; }
  body { padding-top: 64px; }
  .bandeau { height: 64px; background: #1e1e1e; }
  .bandeau-fond, .bandeau-1, .bandeau-2, .separateur, .cache-bandeau, .terre { display: none; }
  .menu { position: static; justify-content: space-around; width: 100%; padding-top: 2px; }
  .menu li { width: auto; }
  .defilant { left: 0; top: 44px; width: 100%; height: 20px; background: #000; }
  html, body { overflow-x: hidden; }   /* rien ne doit dépasser à droite de l'écran */
  .page { width: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "gauche" "articles" "pager" "droite"; }
  /* En-tête : crâne calé à gauche, logo 4TH + Since 2008 calés à droite */
  .colonne-gauche { height: 226px; }
  .crane { left: 14px; top: 8px; height: 165px; overflow: hidden; transform: scale(1.3); transform-origin: top left; }
  .logo-4th { display: block; position: absolute; right: 22px; top: 36px; width: 134px; height: 159px; }
  .since { left: auto; right: 34px; top: 200px; width: 101px; height: 24px; }
  .articles { margin-left: 0; padding: 0 8px 0 22px; }
  .article { width: 100%; margin-bottom: 72px; padding-top: 20px; }
  .onglet { left: -19px; top: 10px; transform: scale(.8); transform-origin: top left; }
  .texte-etroit, .texte-normal, .texte-large { width: auto; padding: 0 12px; }
  .texte { font-size: 12px; line-height: 17px; }
  .pied { width: auto; margin: 0 12px; }
  .pied::before { width: 100%; background-size: 100% 19px; left: 0; }
  .bas-article { width: calc(100% + 2px); }
  .colonne-droite { padding: 10px 0 90px; display: flex; flex-direction: column; align-items: center; }
  .bloc-fixe { position: static; }
  .articles, .colonne-droite { min-width: 0; }
  svg.trou { width: 100%; height: auto; }
  .article img, .article svg { max-width: 100%; }
  .pager { margin-left: 0; width: auto; padding: 0 16px 20px 22px; }
  .pager a { font-size: 15px; padding: 10px 0; }
  body { padding-bottom: 50px; }
  .bas-ecran { position: fixed; left: 0; right: 0; bottom: 0; height: 46px; z-index: 20; display: flex; align-items: center; gap: 10px; padding-left: 14px; background: var(--fond); border-top: 1px solid var(--filet); }
  .bas-ecran a, .bas-ecran span { position: static; border: 0; padding: 6px 4px; }
  .bas-ecran .home img { width: 59px; height: 28px; }
  .bas-ecran .blog img { width: 55px; height: 28px; }
  .bas-ecran .sep img { width: 4px; height: 26px; }
  .retour-haut { right: 10px; bottom: 4px; padding: 10px; z-index: 21; }
}

/* Position de départ des pupilles (avant le premier mouvement) */
.pupille-g { left: 20px; top: 77px; }
.pupille-d { left: 66px; top: 77px; }

/* Collage du téléphone Nokia (article « Lost in The Fourth Dimension ») */
.collage { position: relative; display: inline-block; }
.collage-nokia { position: absolute; left: 282px; top: 218px; z-index: 2; }
.collage-ecran { position: absolute; left: 303px; top: 315px; width: 139px; height: 119px; overflow: auto; z-index: 3; }
.collage-btn { position: absolute; top: 437px; width: 70px; height: 20px; z-index: 4; }
.collage-btn-1 { left: 306px; }
.collage-btn-2 { left: 376px; }
/* Sur téléphone, le collage garde ses proportions et le téléphone reste
   en surimpression sur la photo, calé à droite (règle valable pour
   tout élément en surimpression dans un article). */
@media (max-width: 820px) {
  .collage { width: 100%; max-width: 406px; }
  .collage .photo { width: 100%; height: auto; }
  .collage-nokia { left: auto; right: 0; top: 40.7%; width: 46%; height: auto; }
  .collage-ecran { left: 59.1%; top: 58.8%; width: 34.2%; height: 22.2%; }
  .collage-ecran img { width: 87%; height: auto; }
  .collage-btn { top: 81.5%; width: 17.2%; height: 3.7%; }
  .collage-btn-1 { left: 59.9%; }
  .collage-btn-2 { left: 77.1%; }
}

/* Éléments utilisés dans les articles plus anciens */
.texte-clair { color: var(--texte-clair); font-size: 11px; line-height: 16px; }
.texte-ancien { font-size: 11px; line-height: 16px; }   /* texte gris (#999) des premiers articles (2008) */
.lien-souligne-rouge { font-style: italic; border-bottom: 1px solid var(--souligne-rouge); }
.titre-image { max-width: 100%; height: auto; }
.separateur-article { max-width: 100%; height: auto; margin: 3px 0; }
.photo-moitie { margin: 0 4px; }
.alt-perdu { color: var(--lien); font-size: 10px; text-align: center; }   /* texte de remplacement d'une image disparue, tel qu'il apparaît */
.liens-times { font-family: var(--police-titres-index); font-size: 10px; text-align: center; color: var(--lien); }
.liens-times a { font-size: 10px; }
svg.trou-cadre { border: 1px solid var(--cadre-vide); }

/* Icône d'image cassée, gardée comme trace (telle qu'on la voit sur les captures) */
.icone-cassee { width: 24px; height: 24px; margin: 3px 0; }
/* « Posted by » quand l'auteur est inconnu */
.pied .posted .inconnu { color: var(--lien); font-style: italic; }

/* Éléments des articles de fin 2008 (lot 2) */
.texte-argent { color: #c0c0c0; }                     /* texte gris clair en italique (« Ésotérisme… ») */
.italique { font-style: italic; }
.blanc { color: #ffffff; }
.titre-jaune { font-size: 18px; line-height: 22px; font-weight: bold; color: var(--jaune-2008); text-align: center; }
.citation-jaune { font-family: var(--police-titres-index); font-size: 14px; line-height: 16px; color: var(--jaune-2008); text-align: center; }
.legende-times { font-family: var(--police-titres-index); font-size: 10px; color: #ffffff; text-align: center; }
.titre-blanc-etroit { font-family: var(--police-etroite); font-size: 15px; line-height: 18px; font-weight: bold; color: #ffffff; text-align: center; }
.titre-gris { font-size: 14px; line-height: 18px; color: var(--texte); }
.droite { text-align: right; }
hr.filet-article { width: var(--texte-normal); max-width: 100%; margin: 0 auto; border: 0; border-top: 1px solid #797979; }
/* Image disparue dont la capture montre le cadre ET l'icône d'image cassée en haut à gauche */
.trou-icone { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.trou-icone svg.trou { display: block; }
.trou-icone .icone-cassee { position: absolute; left: 5px; top: 3px; }
.pied .posted .posted-gris { color: var(--lien); }   /* « and approved by » : même gris que « Posted by », sans italique */
/* Lot 3 (fin 2008 - début 2009) */
.titre-blanc { font-size: 14px; line-height: 18px; color: #ffffff; text-align: center; }
.legende-times-italique { font-family: var(--police-titres-index); font-size: 13px; line-height: 16px; font-style: italic; color: #ffffff; text-align: center; }
a.lien-clair { color: #c0c0c0; font-size: 12px; }
/* Lot 4 (début 2009) */
a.lien-rouge-sombre { color: #5d0e07; font-size: 11px; }
a.lien-commande { color: #5b5f5f; font-size: 12px; font-weight: bold; }
/* Lot 6 (2009) */
.texte-times-blanc { font-family: var(--police-titres-index); font-size: 13px; line-height: 16px; color: #ffffff; text-align: center; }
.titre-rouge { font-size: 13px; line-height: 18px; font-weight: bold; text-align: center; }
a.lien-rouge { color: #ea3323; font-size: 13px; }
a.lien-boutique { color: #bb261a; font-size: 14px; line-height: 15px; font-weight: bold; }
a.lien-blanc { color: #ffffff; font-size: 11px; }
a.video-miniature { display: inline-block; }
/* Vidéo dont le lecteur Flash a disparu : le cadre ouvre la vidéo sur YouTube */
a.video-vide { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
a.video-vide svg.trou { display: block; }
.bouton-lecture { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #e62117; opacity: .85; }
.bouton-lecture::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #ffffff; }
a.video-vide:hover .bouton-lecture, a.video-vide:focus-visible .bouton-lecture { opacity: 1; }
/* Lot 7 (fin 2009 - début 2010) */
a.lien-jaune { color: #fcfb7d; font-size: 12px; }
.oi { font-family: var(--police-titres-index); font-size: 15px; font-weight: bold; color: #999999; }
/* Lot 8 (2010) */
.jaune-italique { color: #d8d55a; font-style: italic; font-size: 12px; }
/* Lot 10 (2011) */
.clair-12 { color: #cccccc; font-size: 12px; }
a.lien-souligne { text-decoration: underline; font-size: 11px; }

/* Page Index */
.index-4th{padding:10px 20px 30px;color:#ccc;font:11px/17px Arial,Helvetica,sans-serif}
.index-titre{font:bold 22px Georgia,serif;letter-spacing:4px;color:#fff;text-align:center;margin:10px 0 2px}
.index-intro{text-align:center;color:#777;margin:0 0 14px}
.index-annee{font:bold 15px Georgia,serif;color:#ffff54;border-bottom:1px solid #444;margin:18px 0 6px;padding-bottom:3px}
.index-liste{list-style:none;margin:0;padding:0}
.index-liste li{padding:2px 0}
.index-date{display:inline-block;width:64px;color:#777}
.index-liste a{color:#fff;text-decoration:none}
.index-liste a:hover{text-decoration:underline;color:#ffff54}
.index-auteur{color:#777;font-style:italic}
.index-etoiles{margin-left:4px;letter-spacing:1px}
.etoile{font-size:12px;text-shadow:0 0 2px #000}
.index-legende{text-align:center;margin:0 0 10px;color:#aaa}
.index-legende .etoile{margin-left:10px}
.index-liste li.disparu{color:#555}
.index-vide{color:#555;font-style:italic;font-size:10px}
