
/* ------------------ CSS RESET ---------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  height: auto;
  max-width: 100%;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
}

html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6 {
  margin: 0;
  padding: 0;
}

h1,h2,h3,h4,h5,h6 {
  font-size: 100%;
  font-weight: normal;
}

input,button,textarea,select {
  font: inherit;
  margin: 0;
}

iframe {
  border: 0;
}

::-moz-selection {
  /* Code for Firefox */
  color: var(--backgroundcolor);
  background: var(--fontcolor);
}

::selection {
  color: var(--backgroundcolor);
  background: var(--fontcolor);
}

html {
  width: 100%; height: 100%;
  scroll-behavior: smooth;
  box-sizing: border-box;
  --spacing:1rem;
  --spacingsmall: 0.5rem ;
  --backgroundcolor: #330707 ;
  --maincolor: #a10220;
  --secondcolor: #707ecd ; 
  --fontcolor: #16dbfe ;
}

body{
    background-color: var(--backgroundcolor);
    color: var(--fontcolor);
    font-family: 'MBA';
}

@font-face {
    font-family: 'MBA';
    src: url(fonts/mba.otf);
}

section{
    margin: var(--spacing);
}

.laptop{
    display: none;
}

/* --------------------------------------------------------------------------------------------------------------------- */
/* |                                                INDEX PAGE                                                          |
/* --------------------------------------------------------------------------------------------------------------------- */

#background-image{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -2;
    background-image: url(media/);
    background-repeat: repeat;
    background-size: 30vw;
    filter: blur(0.7px);
    opacity: 20%;
}

h1{font-size: 60px;}

h2{font-size: 8vw;}

h3{font-size: 30px;margin:0;}

p{
font-size: 4vw;
max-width: 65ch;
line-break:strict;}

a{
    color: var(--secondcolor);
    text-decoration: none;
}

a:hover{
    text-decoration: underline;
    transition: 0.2s;
}

#header{
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin-left: 0;
    margin-right: 0;
}

#links{
    margin-top: calc(var(--spacing));
    display: flex;
    flex-direction: row;
    gap: var(--spacing);
    justify-content: space-around;
}

#data{
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
    overflow-y: scroll;
    width: 100%;
    height: 100%;
    contain: size;
}

.artist-photo{
box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-webkit-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-moz-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
margin: 0.5%;
}

.releasedescription p {
    margin-bottom: var(--spacing);
}


.box{
    background: #2b2b2b;
    background: linear-gradient(rgb(82, 82, 82) 0%,rgb(24, 24, 24) 80%, rgb(62, 62, 62) 100%);
    border: solid 4px var(--maincolor);
    border-radius: 15px;
    padding-top: var(--spacingsmall);
    padding-bottom: var(--spacingsmall);
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.35);
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.35);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.35);
}



/* ----------------- POP UP LINKS ------------------ */

.hidden{
    display: none;
}

path{
    width: 20px;
    height: 20px;
}

.link-name{
    display: flex;
    flex-direction: row;
    gap: var(--spacingsmall);
    cursor: pointer;
    background: radial-gradient(circle, hsl(from var(--maincolor) h s calc(l + 40)) 0%, var(--maincolor) 80%);
    background-position: -10px -10px;
    background-size: 110%;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.35);
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.35);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.35);
}

.icon{
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background: var(--backgroundcolor);
    background-position: center;
    mask-position: center;
    mask-repeat: no-repeat;
}

.icontext{
    color: var(--backgroundcolor);
}

.link-social{
    margin-bottom: var(--spacing);
}

.link-name:hover{
   background: radial-gradient(circle, hsl(from var(--maincolor) h s calc(l + 60)) 0%, hsl(from var(--maincolor) h s calc(l + 30)) 80%);
}



#share {
    mask-image: url(../img/copy.svg);
}
#socials {
    mask-image: url(../img/share.svg);
}
#about {
    mask-image: url(../img/about.svg);
}
#tips {
    mask-image: url(../img/tips.svg);
}

.popup{
    position: fixed;
    border-radius: 25px;
    top: 15%;
    bottom: 15%;
    left: 5%;
    right: 5%;
    padding: 2rem;
    z-index: 999;
    overflow-y: scroll;
}

.splashscreen{
  position: fixed;
  top: 0%;
  bottom: 0%;
  left: 0%;
  right: 0%;
  opacity: 50%;
  z-index: 998;
  background-color: var(--backgroundcolor);
  cursor:pointer;
}

/* ----------------- RELEASE LIST ------------------ */

.releaselist{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: calc( var(--spacing)*3);
    margin-bottom: calc( var(--spacing)*3);
}

.releasecover:hover{filter:brightness(120%) drop-shadow(0 0 80px rgba(0, 0, 0, 0.5));}

.releasecover{
transition: filter 0.25s;
box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-webkit-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
-moz-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.12);
}

.release{
    display: flex;
    flex-direction: column;
    gap: var(--spacingsmall);
}

.releasetitle{
    max-width: 90%;
    margin-top: 2%;
    margin-left: 5%;
    padding: var(--spacingsmall) var(--spacingsmall) var(--spacingsmall);
}

/* ----------------- FRIENDS LIST ------------------ */

.friendlist{
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
    padding-bottom: calc(var(--spacing)*4);
}



#ascii-title{
    font-family: "DejaVu Sans Mono", Consolas, "Courier New", monospace;
    font-size: 1vw;   /* s'adapte à la largeur de l'écran */
    overflow: hidden;
    user-select: none;
    text-align: center;
    padding: 10vw;
    color: black;
    line-height: 1;
    margin: 0;
    white-space: pre;
        letter-spacing: -0.08em;
}




/* verrouille le défilement tant qu'on n'a pas cliqué sur la flèche
   (la classe est ajoutée par le script ; supprime-la pour garder le défilement libre) */
html.locked{ touch-action: none; overscroll-behavior: none; }

/* ---------- plein écran ---------- */
#hero{
    position: relative;
    height: 100vh;
    height: 100svh;                 /* hauteur réelle sur mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding-bottom: 90px;           /* laisse la place à la flèche */
    overflow: hidden;
}

#ascii-title{
    font-family: "DejaVu Sans Mono", Consolas, "Courier New", monospace;
    font-size: min(1.3vw, 2.6vh);   /* tient en largeur ET en hauteur */
    line-height: 1;
    letter-spacing: -0.08em;
    white-space: pre;
    text-align: center;
    color: black;
    margin: 0;
    user-select: none;
}

/* ---------- flèche en bas ---------- */
#down-arrow{
    position: absolute;
    left: 50%;
    bottom: 3vh;
    transform: translateX(-50%);
    color: rgb(176, 172, 172);
    text-decoration: none;
    animation: arrow-bounce 1.6s ease-in-out infinite;
}
#down-arrow pre{
    margin: 0;
    font-family: "DejaVu Sans Mono", Consolas, "Courier New", monospace;
    font-size: 18px;
    line-height: 1.05;
    text-align: left;
}
#down-arrow:hover, #down-arrow:focus{ opacity: .7; }

@keyframes arrow-bounce{
    0%, 100%{ transform: translateX(-50%) translateY(0); }
    50%     { transform: translateX(-50%) translateY(10px); }
}


/* ---------- BROUILLARD SOMBRE : couvre l'écran, s'efface en descendant ---------- */

#fog{
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;                 /* ne gêne aucun clic */
    overflow: hidden;
    opacity: var(--fog, 1);    /* garde un léger assombrissement après la disparition du brouillard */
    background: radial-gradient(ellipse at 50% 55%,
                rgba(6, 3, 12, 0.161) 0%, rgba(6, 3, 12, 0.539) 65%, rgba(0, 0, 0, 0.835) 100%);   /* obscurité sur les bords */
}
 
#fog span{
    position: absolute;
    left: 0;
    width: calc(100% + 1200px);
    will-change: transform;
}
/* deux nappes de fumée qui dérivent lentement, l'une dans un sens, l'autre dans l'autre */
#fog span:nth-child(1){
    top: -10%; height: 120%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='1200'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.007' numOctaves='5' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.09  0 0 0 0 0.16  0 0 0 2.3 -0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E") 0 0 / 1200px 1200px repeat;
    opacity: 0.07;
    animation: fog-a 80s linear infinite;
}
#fog span:nth-child(2){
    top: -20%; height: 140%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='1200'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.007' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.09  0 0 0 0 0.16  0 0 0 2.3 -0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E") 0 0 / 800px 800px repeat;
    opacity: 0.07;
    animation: fog-b 55s linear infinite;
}

@keyframes fog-a{ from{ transform: translateX(0); }      to{ transform: translateX(-1200px); } }
@keyframes fog-b{ from{ transform: translateX(-800px); } to{ transform: translateX(0); } }

/* la flèche reste au-dessus du brouillard */
#down-arrow{ z-index: 60; }

/* le dessin lui-même se précise quand le brouillard se dissipe */
#ascii-title{
    filter: blur(calc(var(--fog, 1) * 1.3px)) brightness(calc(1 - var(--fog, 1) * 0.3));
}

@media (prefers-reduced-motion: reduce){
    #fog span{ animation: none; }
}

/* ----------------- MEDIA QUERIES ------------------ */

/* On est mobile first ici donc les media queries sont utilisées pour les laptops */

@media screen and (min-width:600px) {
p{
font-size: 2vw;
}

section{
    margin: calc(var(--spacing) * 2);
}

.laptop{
    display: block;
}

.link-name {
width: auto;
height: auto;
border-radius: 20px;
padding: var(--spacing);
}

.random-img{
    max-width: 20%;
}

}




@media screen and (min-width:1000px) {

h1{font-size: 50px;}

h2{font-size:40px;}

h3{font-size: 30px;margin:0;}

p{
font-size: 20px;
line-break:strict;}


/* LAPTOP LAYOUT */

.laptop{
    display: block;
}

#background-image{
    background-size: 10vw;
}

#page{
    display: grid;
    grid-template-columns: 1fr 2fr;
    overflow: hidden;
}

#release{
    display: flex;
    flex-direction: column;
    height: 50vh;
}

#header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#data{
    gap: calc(var(--spacing)*2);
    contain: unset;
}

.releasecover{
    max-width: 100%;
}

.artist-photo{
    max-width: 250px;
}


}

@media screen and (min-width:1300px) {

.releaselist{
    grid-template-columns: auto auto auto auto;
    justify-content: stretch;

}

}
