/* 1. BASE & RESET*/
   * , *::after, *::before{
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    line-height: 1.6;
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
}

/* 2. HEADER & NAVIGATION*/
header {
    background-color: black;
    padding: 1.5rem 0;
    border-bottom: 2px solid #00d2ff;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: 0 auto;
}

.logo { 
    font-size: 1.8rem; 
    font-weight: bold; 
    color: #f8fafc;
}

.logo span { 
    color: #00d2ff; 
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links > li { 
    margin-left: 30px; 
    position: relative; 
}

.nav-links a {
    text-decoration: none;
    color: #f8fafc;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active { 
    color: #00d2ff; 
}

/* --- DESIGN DU MENU DÉROULANT (DROPDOWN) --- */
.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #ffffff; 
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none; 
    position: absolute;
    top: 90%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px); 
    background-color: #1e293b; 
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown-menu li {
    margin-left: 0 !important; 
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    color: #cbd5e1;
    white-space: nowrap; 
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #00d2ff; 
    color: #0f172a;
}

.nav-links li.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0px); 
}

.nav-links li.dropdown:hover .arrow-down {
    transform: rotate(180deg);
}


/* 3. SECTION CONCEPT (PLEIN ÉCRAN)*/
   .concept {
    min-height: calc(100vh - 84px); 
    display: flex;
    align-items: center;       
    justify-content: center;    
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), 
                url('https://images.unsplash.com/photo-1511512578047-dfb367046420?q=80&w=2070') no-repeat center/cover;
    background-attachment: fixed; 
}

.concept h1 { 
    font-size: 4rem; 
    margin-bottom: 24px; 
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.concept p { 
    max-width: 1150px;
    margin: auto; 
    font-size: 1.35rem; 
    color: #cbd5e1;
    padding: 0 20px;
}
/* SECTION JEUX (GRID)*/
.latest-games { 
    padding: 50px 0; 
}

.latest-games h2 { 
    text-align: center; 
    margin-bottom: 40px; 
    font-size: 2.2rem; 
}

/* 4. GRILLE DU CATALOGUE & CARTES DE JEUX*/
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0 60px 0;
}

.game-card {
    background: #1e293b;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #00d2ff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.game-card img,
.game-card .card-image-wrapper {
    width: 100%;
    margin-bottom: 20px; 
}

.game-card img {
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.game-card .card-body {
    padding: 0 !important; 
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

h3 {
    margin: 0;
    color: #00d2ff;
    font-size: 1.3rem;
}

.date {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #334155;
}

.game-price {
    color: #4ade80;
    font-weight: bold;
    font-size: 1.2rem;
}

.btn-details {
    background: transparent;
    border: 1px solid #00d2ff;
    color: #00d2ff;
    padding: 7px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
}

.btn-details:hover {
    background: #00d2ff;
    color: #0f172a;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #94a3b8;
    font-size: 1.2rem;
}

/* BOUTONS "VOIR PLUS" CENTRÉ*/
.btn-voir-plus {
    display: block;
    width: max-content;       
    margin: 40px auto 20px auto; 
    padding: 12px 30px;
    background-color: transparent;
    color: #00d2ff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #00d2ff;
    border-radius: 30px;      
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-voir-plus:hover {
    background-color: #00d2ff;
    color: #0f172a;           
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5); 
    transform: scale(1.05);   
}

/* ESPACEMENT ET SÉPARATION DES CONTENEURS (SECTIONS)*/
.latest-games .container {
    margin-bottom: 90px; 
    position: relative;
    border-style: solid;
    border-color: #00d2ff;
    border-radius: 20px;
    padding: 20px;
}

.latest-games .container:last-child {
    margin-bottom: 0;
}
