@font-face {
  font-family: metabadger;
  src: url(media/fonts/Metabadger-Font-2021.woff);
}
@font-face {
  font-family: Helv Punk;
  src: url(media/fonts/HelveticaPunk.woff);
}
@font-face {
  font-family: Helv Bit;
  src: url(media/fonts/HelveticaBit.woff);
}
@font-face {
  font-family: Not Comic;
  src: url(media/fonts/NOTCOMIC.woff);
}
@font-face {
  font-family: Garabosse;
  src: url(media/fonts/Garabosse-Perle.woff);
}

/* GLOBAL ------------------------------------------------------ */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}

html {
  cursor: url('#CHEMIN{/media/cursor/paw.png}'), auto !important;
}

a:hover, button:hover {
  cursor: url('#CHEMIN{/media/cursor/pointer.png}'), pointer !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: metabadger;
  font-weight: 600;
  margin-top: 0;
}
h3 {
  color: white;
  font-size: medium;
  text-align: center;
  transition: ease 200ms;
}
.rubrique-site-item:hover .article-title{
  color: black;
}
p {
    font-family: Not Comic;
    font-weight: 500;
}

body {
  background-color: #000;
  background-repeat: repeat;
  background-attachment: fixed;
  background: linear-gradient(-45deg, #24c715, #fdf909, #d41818, #df0fa1, #760da3, #1828d4, #0ba7d2), url('media/backgrounds/galaxy-bg.gif');
  background-size: 200% 200%;
  background-attachment: fixed;
  animation: gradientBG 200s ease infinite;
  background-blend-mode:screen;
  color: #fff;
}
@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Dynamic rubrique background override */
body.rubrique-#ID_RUBRIQUE {
  background-image: url(media/backgrounds/bg-#ID_RUBRIQUE.png);
}

main {
	display: grid;
	margin-left: 17%;
	margin-right: 17%;
  margin-bottom: 150px;
	padding-top: 100px;
  padding-bottom: 100px;
	gap: 2rem;
  justify-items: center;
	opacity: 0;
	transition: opacity .5s ease;
}
main.rubrique-content {
	grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
}
/* main#id-rubrique-8 {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))!important;
} */
main .sommaire-content {
	grid-template-columns: 1fr;
  gap: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
main.article-content {
	grid-template-columns: 2fr 1.3fr;
  padding-top: 120px;
}
main#id-article-12 .article-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
main.auteur {
  grid-template-columns: 1fr;
}
.bio {
  max-width: 600px;
  margin: 0 auto;
}
.addwall {
  max-width: 650px;
}
.add {
  display: block;
  margin: 1rem 0;
  border-radius: 10px;
  box-shadow:#2e2e2e 0px 0px 5px 2px;
  transition: ease 300ms;
}
.add img{
  border-radius: 10px;
}
.add:hover{
  transform: scale(1.01);
}

main:not(.is-loading) {
  opacity: 1;
}

/* HEADER ------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  height: 100px;
  width: 100%;
  z-index: 2000;
  background-color: transparent;
  /* background-image: url(media/backgrounds/stars.gif); */
  box-shadow: 0 0 30px 30px transparent;
  display: block;
  justify-content: center;
  align-items: center;
}

/* centered logo */
.site-header .site-title {
  position: absolute;
  transform-origin: left;
  padding: 20px;
  left: 0;
  top: 2%;
  transform:  rotate(-5deg);
  /* transform: translate(-50%, -50%); */
}
.site-header .site-title img{
  display: block;
  height: 200px;
  width: auto;
  transition: ease 300ms;
}

/* nav hidden by default on desktop except when you need it */
.site-header nav.main-nav {
  display: none;
}

    @keyframes shake {
      0% { transform: rotate(0deg); }
      25% { transform: rotate(3deg); }
      50% { transform: rotate(0deg); }
      75% { transform: rotate(-3deg); }
      100% { transform: rotate(0deg); }
    }
.site-header .site-title img:hover{
        animation: shake 0.15s ease-in-out;
    }
  
  #mouse-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 4000;
  }

/* SOMMAIRE ------------------------------------------------------ */

.sommaire-item {
	text-align: center;
	color: white;
	margin-bottom: 2rem;
  position: relative;
}

.sommaire-item a {
	text-decoration: none;
	color: white;
  transition: 500ms ease;
}
.sommaire-item img {
  margin: auto;
  transition: 300ms ease;
}
.sommaire-item:hover img{
	transform: rotate(-3deg);
}
.sommaire-item h2 {
  font-size: 3.5vmax;
	margin: 0;
}

/* Both pseudo-elements start invisible */
.sommaire-item h2::before,
.sommaire-item h2::after {
    content: "";
    position: absolute;
    top: 40%;
    width: 80px;   /* adjust based on your icon size */
    height: 40px;  /* adjust based on your icon size */
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-size: contain;
    background-repeat: no-repeat;
}

/* LEFT pictogram */
.sommaire-item h2::before {
    left: -80px;  /* adjust spacing */
    background-image: url("media/icones/lefthand.png");
}

/* RIGHT pictogram */
.sommaire-item h2::after {
    right: -90px; /* adjust spacing */
    background-image: url("media/icones/righthand.png");
}

/* On hover: show and slightly nudge inward for effect */
.sommaire-item h2:hover::before,
.sommaire-item h2:hover::after {
    opacity: 1;
}

.sommaire-item h2:hover::before {
    transform: translate(-3px, -50%);
}

.sommaire-item h2:hover::after {
    transform: translate(3px, -50%);
}

/* RUBRIQUE ------------------------------------------------------ */


.rubrique-row {
  width: 100%;
  border-bottom: 1px solid white;
  overflow: hidden;
  height: 50px;
  margin: 0;
  padding: 0;
  font-size: 2.5vmin;
  font-family: "Not Comic";
}

.rubrique-row-link {
  display: flex;
  flex-direction: row;
  align-items: center;     /* center everything vertically */
  gap: 1.5em;
  text-decoration: none;
  color: white;
  width: 100%;
  height: 100%;            /* so logo aligns perfectly */
  /* transition: 200ms ease; */
}

.rubrique-row-link:hover {
  color: black;
  mix-blend-mode: screen;
  background-color: white;
}

/* --- columns --------------------------------------------------- */

.rubrique-col {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-family: "Not Comic";
}

/* Title */
.rubrique-col.title {
  font-family: metabadger;
  flex: 2;
  text-transform: uppercase;
  font-weight: 500;
}

.rubrique-col.logo {
  max-width: 50px;
  height: auto;
  margin: 0;
  padding: 0;
}
.rubrique-col.logo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}



/* .logo-mask {
  display: block;
  height: 100%;
  width: auto;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.logo-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
} */

.rubrique-col.tag {
  flex: 1;
  font-size: 0.80em;
  opacity: 0.85;
  justify-content: right;
  text-align: center;
}

.rubrique-col.date {
  flex: 1;
  font-size: 0.85em;
  text-align: right;
  justify-content: flex-end;
  margin-right: 1em;
}
.rubrique-col.url {
  flex: 1;
  color: blue;
  font-size: 0.85em;
  text-align: center;
  justify-content: center;
  margin-right: 1em;
}



/* ARTICLE LAYOUT --------------------------------------------------- */

/* Left column */
.article-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;        /* ensure it stretches to the grid column */
  min-width: 0;       /* prevents flex shrink issues */
}

.article-images img {
  width: 100%;
  border-radius: 2px;
  object-fit: cover;
}

.article-images iframe {
  width: 100%;       /* fill parent width */
  aspect-ratio: 16 / 9;  /* modern browsers */
  max-width: 100%;   /* prevent overflow */
  border-radius: 10px;
  display: block;
}

/* Right column sticky */
.article-infos {
  grid-column: 2/3;
  position: sticky;
  top: calc(120px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Comic bubbles */
.info-bubble {
  background: white;
  color: black;
  padding: 1rem 1.5rem;
  border-radius: 30px;
  border: solid 2px black;
  position: relative;
  font-family: sans-serif;
  line-height: 1.5;
}

.tag, .date {
  font-family: Not Comic;
  font-size: 0.80em;
  opacity: 0.85;
  justify-content: right;
  text-align: center;
}

#title-bubble h1 {
  margin: 0;
  font-size: 1.5rem;
}

#text-bubble {
  position: relative;
}

/* --------------------------
Talker Image
--------------------------- */
#talker {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
}

#talker img {
  background-image: url('media/icones/badger-ico13.gif');
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --------------------------
Responsive tweaks
--------------------------- */
@media (max-width: 1400px) {
  main {
    margin-left: 10%;
    margin-right: 10%;
  }
  .site-header .site-title img{
    height: 160px;
  }
}
@media (max-width: 1200px) {
  main {
    margin-left: 5%;
    margin-right: 5%;
  }
  .site-header .site-title img{
    height: 130px;
  }
}

@media (max-width: 900px) {

  .site-header .site-title img{
    height: 130px;
  }

  main{
    grid-template-columns: 1fr !important;
    margin-left: 0%;
    margin-right: 0%;
    margin: 3em;
  }

  .article-content {
    grid-template-columns: 1fr; /* single column on small screens */
  }

  .article-infos {
    grid-column: auto;
    position: relative;
    top: auto;
    max-height: none;
  }
  .rubrique-col.url {
    display: none;
  }
  .rubrique-col.tag {
    display: none;
  }
  .rubrique-col.title {
margin: 0;
  }
}

/* FOOTER -------------------------------------------------------- */

.links {
  display: flex;
  justify-content: center;
}
.links img {
  width: 130px;
  height: auto;
  transition: ease 300ms;
}
.links a:hover img {
  scale: 1.08;
}

.site-footer {
  display: block;
  text-align: center;
  padding: 2rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.5);
}



/* RUBRIQUE 19 - BLOG - SPECIFIC LAYOUT -------------------------------------------------------- */


.page-rubrique #id-rubrique-19 .blog-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Left column (image) */
.page-rubrique #id-rubrique-19 .blog-image {
  flex: 0 0 auto; /* do not stretch */
}

.page-rubrique #id-rubrique-19 .blog-image img {
  height: auto;
  width: auto;        /* true image size */
  max-width: 100%;    /* prevents overflow */
  display: block;
}

/* Right column (content) */
.page-rubrique #id-rubrique-19 .blog-content {
  flex: 1 1 auto;
  min-width: 0; /* prevents flex overflow */
}

/* Title spacing */
.page-rubrique #id-rubrique-19 .blog-title {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Optional: responsive stacking */
@media (max-width: 900px) {
  .page-rubrique #id-rubrique-19 .blog-row {
    flex-direction: column;
  }
}
