@font-face {
    font-family: 'Borel';
    src: url('fonts/Borel-Regular.ttf');
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.ttf');
}

@font-face {
    font-family: 'Geist';
    src: url('fonts/Geist-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'Helvetica';
    src: url('fonts/HelveticaNeue_thin.ttf');
}

* { cursor: url('3D/main.png') 16 16, auto; }

body {
    
    font-family: 'Borel', sans-serif;
    font-size: 1.5rem;
    color: #F5F5F5;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color:#CBCDCB;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Borel', sans-serif;
    
}


header {
    background-color: rgba(0, 0, 0, 0);
    color: #F5F5F5;
    padding: 10px;
    text-align: center;
}

#logo-title {
    width: 300px;       
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

#logo-title:hover {
    transform: scale(1.05);
    
}

header h1 {
    margin: 20px;
    padding: 0;
    line-height: 1;
}

header h1 a {
    display: inline-block;
}


.music-controls {
  position: fixed;
  bottom: 6%;
  left: 5%;
  z-index: 999;

}

.music-button {
  background-color: #ACAFAC;
  color: #F5F5F5;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.music-button:hover {
  background-color: #ACAFAC;
  transform: scale(1.1);
}

.music-icon {
  font-size: 18px;
}


.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background-color:#F87625;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); 
    max-width: 475px;
    width: 70%;
    padding: 30px;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    z-index: 10000; 
    
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-content h2 {
    margin-top: 0;
    color: #F5F5F5;
    font-family: 'Borel', sans-serif;
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #F5F5F5;
    font-family:'Helvetica', sans-serif;
}

.popup-content p {
    margin-bottom: 20px;
    color: #F5F5F5;
    font-family: 'Helvetica', sans-serif;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #F5F5F5;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    transition: color 0.3s ease ;
    z-index: 10001;
   
}

.close-popup:hover {
    color: #ED6007;
   
}

.popup-button {
    display: inline-block;
    background-color: #FB8C4B ;
    color: #F5F5F5;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Helvetica', sans-serif;
    transition: background-color 0.3s;
    
}

.popup-button:hover {
    background-color: #ED6007;
}


#about-btn {
    position: fixed;
    top: 6%;
    right: 5%;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    padding: 10px;
    z-index: 1000;
    
    display: inline-block;
    
}

#about-btn img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
    
}

#about-btn:hover img {
    transform: scale(1.2);
    
}



.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}


.image-container {
    flex-grow: 1;
    position: relative; 
    min-height: 50vh; 
}

.caption {
    display: block;
    margin-top: 0px;
    text-align: center;
    font-family: 'Borel', sans-serif;
    color: #F5F5F5;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.random-link {
    position: absolute; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none; 
}


.random-link.atelier {
    width: 325px;
    top: 15%;
    left: 37%;
}

.random-link.graphiques {
    width: 200px;
    top: 45%;
    left: 75%;
}

.random-link.contact {
    width: 150px;
    top: -15%;
    left: 70%;
}

.random-link.liens {
    width: 200px;
    top: 5%;
    left: 8%;
}

.random-link.print {
    width: 200px;
    top: 70%;
    left: 15%;
}

.random-link.radio {
    width: 200px;
    top: 90%;
    left: 55%;
}


.random-link img {
    width: 100%;
    position: static; 
    transition: transform 0.3s ease;
}

.random-link:hover img {
    transform: scale(1.1);
    
}



footer {
    font-family: 'Borel', sans-serif;
    color: #F5F5F5;
    text-align: center;
    padding-top: 10px;
    height: 10vh;
    font-size: 1rem;
    margin-top: auto; 
    width: 100%;
}


@media (max-width: 768px) {
    
    .music-controls {
    display: none;
    }
  
    .popup-container {
        padding: 20px;
    }
    
    .popup-content h2 {
        font-size: 1.5rem;
    }
    
    .popup-content p {
        font-size: 1rem;
    }
}


@media (max-width: 768px) {
    .popup-container {
        padding: 20px;
    }
    
    .popup-content h2 {
        font-size: 1.5rem;
    }
    
    .popup-content p {
        font-size: 1rem;
    }
}


@media (max-width: 600px) {
    
    .random-link.graphiques {
        display: none;
    }
   
    header {
    flex-shrink: 0;
    width: 100%;
    text-align: center; 
    padding: 10px 0; 
    font-size: 1.5rem;
    }
    
    #about-btn {
    position: fixed;
    top: 82%;
    right: 8%;
    }

    body::before {
        width: 300px; 
        height: 300px; 
        background-size: contain; 
    }

    .popup-container {
        padding: 20px 15px;
        width: 80%;
        max-height: 80vh; 
        overflow-y: auto; 
    }
    
    .popup-content h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .popup-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .popup-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .image-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px 0;
        gap: 20px ;
    }
    
    .popup-button {
        padding: 10px 20px;
        font-size: 1.2rem;
        width: 80%; 
        margin: 5px auto 5px;
    }
    
    .random-link {
        position: static ;
        width: 100% ;
        max-width: 250px ;
        margin: 15px 0;
    }

   .random-link img {
        width: 100%;
    }

    .caption {
        font-size: 1.5rem;
        margin-top: 5px;
    }
    
   footer {
        font-size: 0.85rem; 
        text-align: center; 
        white-space: normal;
        line-height: 1.4; 
        margin-top: auto ;
        width: 100%;
        flex-shrink: 0;
        height: 10vh;
        padding: 0;
    }

}
