@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}
body {
    font-family: Barlow;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 100vh;
    width:100%;
    background-image: url("https://image.api.playstation.com/vulcan/ap/rnd/202310/2502/1751043f9999ae22f2e6293fcf355e596f4183de063619da.png");
    background-position:top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    backdrop-filter:blur(2px);
    background-size:cover;
}
.navbar{
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    color: white;
    border-bottom: rgba(255, 255, 255) solid 3px;;
    text-indent: 10px;
    align-items:center;
    text-transform: uppercase;
    justify-content: space-between;
    left:0;
    top:0;
    
}
nav img{
	width:80px;
	height:auto;
}
.logo a{
    display: flex;
    align-items:center;
    color: white;
}
nav ul {
    display: flex;
    
}
.navbar .nav-links ul li{
    margin:0 25px;
    font-weight: 650;
}
.navbar .nav-links ul li a {
    text-decoration: none;
    color: white;
    font-size: 30px;
    transition: all 0.3s ease;
    display: inline-block
}

.navbar .nav-links ul li a:hover {
    transform: scale(1.1);
    color: #e83630;
    text-shadow: 0 0 10px rgba(232, 54, 48, 0.5);
}
.navbar .nav-links ul li a i{
    margin-right:10px
}

.navbar .nav-links ul li.active a{
    color: #e83630; 
    text-shadow: 0 0 10px rgba(232, 54, 48, 0.5);
}
/* Style du sélecteur de langue */
#language-selector {
    background-color: rgba(0,0, 0, 0);
    color: white;
    border: 2px solid white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: Barlow;
}

#language-selector:hover{
    transform: scale(1.1);
}

#language-selector option {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
}

.menu-icon {
    font-size: 30px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    user-select: none;
    display: none;
    font-weight: 700;
}

.menu-icon.open {
    font-size: 50px;
}

.menu-icon:hover {
    color: #e83630;
}


button{
    text-transform: uppercase;
    font-family: 'ARK-Regular' ;    
    background-color: #e83630;
    padding : 10px;
    border-radius:0.5rem;
    font-size: 20px;
    font-weight:400;
    color: white;
    cursor: pointer;
    border: none;
    margin-top:10px;
}
button:hover{
    background-color: #a82622 ;
}
.Box h2 i .fa-link{
    height: 20px;
    width:auto;
}
.Box li a{
    color:white;
}
.Box li a:hover{
    color:#a82622;
}
.d-none {
    display: none;
}
.community-container {
    display: flex;
    gap: 20%;
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    flex-wrap: wrap;
}

/* Colonne de gauche */
.left-column {
    flex: 1;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap:40px;
}

/* Colonne de droite (screenshots) */
.right-column {
    flex: 1;
    min-width: 400px;
}
.Box{
    color:white;
    text-transform: uppercase;
    font-family: 'ARK-Regular' ;
    font-size: 20px;
    display:flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
    padding:30px;
    border: rgba(255, 255, 255) solid 3px;
    border-radius: 1rem;
    min-width: 300px;
    max-width: 500px;
    transition: all 0.2s ease;
}
.Box p, .Box li{
    font-family: Barlow ;
    text-transform: none;
    font-size: 16px;
}
.Box a{
    text-align: center;
}
.Box h3, .Box ul,.Box h2{
    margin-bottom: 20px;
}
.links-box ul li {
    margin: 10px 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.links-box ul li a.link-full {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}
.links-box ul li:hover {
    background-color: rgba(232, 54, 48, 0.3);
    transform: translateX(10px);
}

.links-box ul li a.link-full:hover {
    color: white;  /* Garder le texte blanc au hover */
}

.servers-container {
            display: flex;
            gap: 20px;
            justify-content: center;
            flex-wrap: wrap;
        }
.Starter button{
    display: block;
}
.Box:hover {
    transform: translateY(-10px) scale(1.02);
    background-color: rgba(0, 0, 0, 0.85);
    border-color: #e83630;
    box-shadow: 0 10px 30px rgba(232, 54, 48, 0.5);
}
.Servers h2, .Servers p{
    color: rgb(255, 255, 255);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
}

/* Section Screenshots */
.screenshots-box {
    height: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 16/9;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: #e83630;
    box-shadow: 0 5px 20px rgba(232, 54, 48, 0.6);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.overlay p {
    color: white;
    font-size: 14px;
    margin: 0;
}

/* Lightbox pour voir les images en grand */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(232, 54, 48, 0.5);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox .close:hover {
    color: #e83630;
}

footer{
    font-size: 16px;
    padding:20px;
    text-align: center;
    width: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    border-top: rgba(255, 255, 255) solid 3px;
    margin-top:auto;
}

@font-face {
  font-family: 'ARK-Regular';
  src: url('../fonts/ARK-Regular.woff') format('truetype');
}

@media screen and (max-width: 1031px){

    .community-container{
        gap:40px;
    }
    footer{
        position: relative;
    }

    .left-column, .right-column {
        min-width: 100%;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    /* Réorganiser la navbar pour mobile */
    .navbar {
        flex-wrap: nowrap;
        position: relative;
    }
    
    .logo h1 {
        font-size: 1.2em;
    }
    
    /* Sélecteur de langue sur mobile - à côté du menu hamburger */
    #language-selector {
        position: static;
        font-size: 12px;
        padding: 5px 8px;
        margin:0 50px 0 10px;
        order: 2;
    }
    
    .menu-icon {
        display: block;
        order: 3;
        position: relative;
        z-index: 101;
    }
    
    .nav-links {
        top:0;
        left:0;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(7px);
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left:-100%;
        transition: all 0.5s ease-in-out;
        z-index: 100;
    }
    .nav-links.mobile-menu{
        margin-left:0;
    }
    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center; 
    }
    .navbar .nav-links ul li{
        margin:25px 0;
    }
    .navbar .nav-links ul li a {
        font-size: 30px;
    }
    
    .servers-container {
        flex-direction: column;
        align-items: center;
    }
    .Box{
        margin:0 5px 0 5px;
        max-width: 100%;
        min-width: 280px;
        padding: 20px;
    }
    
    .Servers h2 {
        font-size: 28px;
        padding: 10px 20px;
    }
    
    .Servers > p {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    body{
        background-size:400%;
    }
    nav img {
        width: 50px;
    }
    
}

/* Responsive pour très petits écrans */
@media screen and (max-width: 480px){
    .community-container{
        padding: 10px;
        
    }
    .logo h1 {
        font-size: 1em;
    }
    
    #language-selector {
        font-size: 11px;
        padding: 4px 6px;
        margin:0 10px 0 10px;
    }
    .Box {
        min-width: 250px;
        padding: 15px;
        margin: 5px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    nav img {
        width: 50px;
    }
    
    h2 {
        font-size: 18px !important;
    }
    
    h3 {
        font-size: 16px !important;
    }
    
    .Servers h2 {
        font-size: 22px;
        padding: 8px 15px;
    }
    
    .Servers > p {
        font-size: 12px;
    }
}