@font-face {
  font-family: metabadger;
  src: url(media/fonts/Metabadger-Font-2021.woff);
}

html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
}
html {
    cursor: url('#CHEMIN{/media/cursor/paw.png}'), auto !important;
}
a:hover, button:hover{cursor: url('#CHEMIN{/media/cursor/pointer.png}'), pointer !important;}

p::selection{
    color:purple;
    background-color: cyan;
}
h1::selection{
    color:purple;
    background-color: cyan;
}
h2::selection{
    color:purple;
    background-color: cyan;
}
strong::selection{
    color:purple;
    background-color: cyan;
}
i::selection{
    color:purple;
    background-color: cyan;
}
a::selection{
    color:white;
    background-color:blue;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: metabadger, sans-serif;
  background-image: url(media/backgrounds/bg.png);
  background-size: cover;
  background-attachment: fixed;
  background-position: top center;
  background-repeat: no-repeat;
}

/* Make main content expand to push footer down */
main {
  justify-content: center;
  padding: 10px;
  margin-top: 150px;

}

/* ===== HEADER ===== */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  justify-self: center;
  position: fixed;
  margin: auto;
  top: 0;
  width: 97%;
  height: 12vh;
  z-index: 100;
  background: none; /* transparent */
  padding: 0 10px;
}

/* Corner navs */
.corner-nav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 20px;
  padding: 0;
}

.corner-nav.left ul {
  justify-content: flex-start;
}

.corner-nav.right ul {
  justify-content: flex-end;
}

.corner-nav ul li img {
  width: 50px;
  height: auto;
  display: block;
}

/* Logo centré et responsive */
.site-logo {
  justify-self: center;
  width: 20vw;
  text-align: center;
  margin: auto;
  margin-top: 20px;
}

.site-logo img {
  width: 100%;
  height: auto;
  display: block;
}



/* ===== MAIN CONTENT ===== */

.content-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.article-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


.article-card a:hover img{
  transform: rotate(-2deg);
}


.article-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  max-width: 100%;
  transition: transform 0.2s ease-in-out;
}


.article-card h3 {
  font-size: 1em;
  margin: 10px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-image {
  position: relative;
  overflow: hidden;
}

.article-tags {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none; /* prevent blocking the link */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover {
    transform: scale(1);
}
.article-card:hover .article-tags {
  opacity: 1;
}

.tag-logo {
  position: absolute;
  width: 50px; /* match image_reduire size */
  height: auto;
}

.badge-new {
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 80;
}

.badge-new img {
  width: 120px;
  height: auto;
  overflow: visible;
}

/* ===== ARTICLE / PAGE CONTENT ===== */
.article-page {
  width: 100%;
  margin: auto;
  margin-top: 80px;
  text-align: center;
  justify-self: center;
}

.article-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: auto;
  margin-bottom: 80px;
  justify-self: center;
  max-width: 1000px;
}

.article-main h1 {
  text-align: left;
}

.article-main .texte {
  text-align: justify;
  padding: 10px;
  line-height: 1.3;
  max-width: 320px;
}
.article-main .texte h1 {
  margin-top: 0;
}

.article-logo img {
  max-height: 500px;
  width: auto;
  display: block;
  margin: auto;
  margin-right: 0;
}

.infolist {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
  font-size: 20px;
  margin: 1rem auto;
}

.infolist h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.infolist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.infolist li {
  text-align: center;
}

.infolist a {
  text-decoration: none;
  color: blue;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: ease 200ms;

}
.infolist a:hover {
  transform: rotate(-3deg);
  color: white;
  background-color: blue;
}

.infolist img {
  width: 20px;
  height: auto;
}

.blured{
    color: transparent !important;
    text-shadow: 0 0 7px blue;
    transition: 0.2s;
}
.blured:hover{
    color: transparent;
    text-shadow: 0 0 0cap white;
}


/* MEDIABOX PARAMETERS*/

/* Hide default × and replace with your own */
.lity .lity-close {
  width: 40px;
  height: 40px;
  background: url("media/icons/close.png") no-repeat center center !important;
  background-size: contain;
  color: transparent;
  font-size: 0;
  top: 10px;
  right: 10px;
}
.lity .lity-previous,
.lity .lity-next {
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: transparent;
  font-size: 0;
  opacity: 1 !important;
  transition: none !important;
}
.lity-previous b, .lity-next b, .lity-close b{
  display: none !important;
}

.lity .lity-previous {
  background: url("media/icons/prev.png") !important;
  left: 10px;
}

.lity .lity-next {
  background: url("media/icons/next.png") !important;
  right: 10px;
}

.lity-group-start-stop {
  display: none !important;
}

.box_mediabox.lity-image.lity-ready .lity-image-figure {
  background-color: transparent !important; 
}

.lity-next:hover {
  background: url("media/icons/next.png");
}
.lity-previous:hover {
  background: url("media/icons/prev.png");
}



/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8em;
  color: #666;
  background: transparent;
}

#random-gif {
  position: fixed;
  bottom: -200px;
  right: 2vw;
  width: 250px;
  height: 250px;
  background-size: cover;
  background-position: center;
  z-index: 100;
  display: block;
  opacity: 0;  
  transition: ease 400ms;
}
.site-logo:hover #random-gif{
  opacity: 1;
  bottom: 0px;
}



/* ===== Responsive breakpoints ===== */
@media (max-width: 850px) {
  .site-header {
    grid-template-columns: 1fr;
  }
  .site-logo {
    width: 90vw;
    max-width: 350px;
  }
  .corner-nav {
    position: absolute;
    z-index: 101;
  }
  .article-main {
    display: grid;
    grid-template-columns: 1fr;
  }
  .article-logo img {
    max-height: 500px;
    width: auto;
    display: block;
    margin: auto;
    margin-right: unset;
  }
  .article-page {
    width: 100%;
  }
}