body{
margin:0;
font-family:Arial;
background:#747f9b;
color:white;
}

/* HEADER */
.header {
    background: #020617;
    border-bottom: 2px solid #d4af37;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible; /* permet au logo de dépasser */
    box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    height: 70px; /* hauteur du header */
    position: relative;
}
/* ligne dorée améliorée */
.header::after {
    content: "";
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 65px; /* remonte le logo pour qu’il dépasse joliment */
}

.logo-header {
    height: 140px; /* nouveau logo plus grand */
    max-height: none;
    width: auto;
}
/* NAV */
/* ========================= */
/* NAV CLEAN + PREMIUM */
/* ========================= */

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

/* Boutons */
.nav a {
    position: relative;
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

/* Glow subtil */
.nav a::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    opacity: 0;
    filter: blur(6px);
    transition: 0.3s;
    z-index: -1;
}

/* Hover */
.nav a:hover {
    color: #fff;
    background: rgba(99,102,241,0.15);
    box-shadow:
        0 0 6px rgba(99,102,241,0.5),
        0 0 10px rgba(56,189,248,0.3);
    transform: translateY(-1px);
}

.nav a:hover::before {
    opacity: 0.5;
}

/* underline */
.nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    transition: 0.3s;
}

.nav a:hover::after {
    width: 60%;
}

/* ACTIVE */
.nav a.active {
    color: #fff;
    background: rgba(99,102,241,0.25);
}

/* ========================= */
/* DROPDOWN ULTRA FLUIDE */
/* ========================= */

.nav-item {
    position: relative;
    padding-bottom: 8px;
}

/* zone invisible anti "trou" */
.nav-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

/* Dropdown */
.nav-item .dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;

    display: flex;
    flex-direction: column;

    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);

    border-radius: 12px;
    overflow: hidden;

    border: 1px solid rgba(212,175,55,0.25);

    box-shadow: 
        0 20px 50px rgba(0,0,0,0.7),
        inset 0 0 25px rgba(99,102,241,0.12);

    padding: 8px 0;

    /* animation clean */
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.97);
    transition: all 0.25s ease;
}

/* apparition */
.nav-item:hover > .dropdown-content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Items */
.nav-item .dropdown-content a {
    padding: 12px 18px;
    color: #cbd5f5;
    font-size: 13px;
    transition: all 0.2s ease;
}

/* Hover items */
.nav-item .dropdown-content a:hover {
    background: linear-gradient(90deg, #6366f1, #38bdf8);
    color: white;
    padding-left: 24px;
}

/* Triangle stylé */
.nav-item .dropdown-content::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 22px;
    width: 12px;
    height: 12px;
    background: #1e293b;
    transform: rotate(45deg);
    border-left: 1px solid rgba(212,175,55,0.3);
    border-top: 1px solid rgba(212,175,55,0.3);
}
/* Garde le bouton actif quand dropdown ouvert */
.nav-item:hover > a {
    color: #fff;
    background: rgba(99,102,241,0.25);
    box-shadow:
        0 0 6px rgba(99,102,241,0.5),
        0 0 10px rgba(56,189,248,0.3);
}

.nav-item:hover > a::before {
    opacity: 0.5;
}

.nav-item:hover > a::after {
    width: 60%;
}
/* PLAY BUTTON */

.play-button {
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 0 12px rgba(99,102,241,0.6);
}

/* Hover magique */
.play-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 25px rgba(56,189,248,0.9);
}

.user-menu {
    position: relative;
    display: inline-block;
    padding-bottom: 10px; /* espace pour hover */
}
.user-menu::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 20px; /* pont invisible */
}
.user-btn {
    position: relative;
    background: rgba(99,102,241,0.15);
    color: #fff;
    border: 1px solid rgba(99,102,241,0.3);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: all 0.25s ease;
}

/* Glow */
.user-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    opacity: 0;
    filter: blur(6px);
    transition: 0.3s;
    z-index: -1;
}

/* Hover */
.user-menu:hover .user-btn {
    background: rgba(99,102,241,0.25);
    box-shadow:
        0 0 8px rgba(99,102,241,0.6),
        0 0 14px rgba(56,189,248,0.4);
    transform: translateY(-1px);
}

.user-menu:hover .user-btn::before {
    opacity: 0.6;
}

.menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

/* petit effet au hover */
.user-menu:hover .menu-icon span:nth-child(1) {
    transform: translateY(2px);
}
.user-menu:hover .menu-icon span:nth-child(3) {
    transform: translateY(-2px);
}
.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 180px;

    display: flex;
    flex-direction: column;

    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(14px);

    border-radius: 12px;
    overflow: hidden;

    border: 1px solid rgba(212,175,55,0.25);

    box-shadow: 
        0 20px 50px rgba(0,0,0,0.7),
        inset 0 0 25px rgba(99,102,241,0.12);

    padding: 8px 0;

    /* animation */
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.97);
    transition: all 0.25s ease;
}

/* apparition fluide */
.user-menu:hover .user-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.user-dropdown a {
    padding: 12px 18px;
    color: #cbd5f5;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

/* Hover stylé */
.user-dropdown a:hover {
    background: linear-gradient(90deg, #6366f1, #38bdf8);
    color: white;
    padding-left: 22px;
}
.user-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #1e293b;
    transform: rotate(45deg);
    border-left: 1px solid rgba(212,175,55,0.3);
    border-top: 1px solid rgba(212,175,55,0.3);
}
.user-dropdown a:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.user-dropdown a[href="/logout"]:hover {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}
/* HERO */

.hero{
position:relative;
height:85vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
background:url("../img/7.png") center/cover no-repeat;
}

.hero-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(rgba(2,6,23,0.8),rgba(2,6,23,0.9));
}

.hero-content{
position:relative;
z-index:2;
max-width:700px;
}

.hero h1{
font-size:64px;
margin-bottom:20px;
}

.hero p{
font-size:18px;
color:#ccc;
}

.hero-buttons{
margin-top:35px;
}

.btn{
padding:12px 30px;
border-radius:6px;
margin:10px;
text-decoration:none;
}

.primary{
background:#6366f1;
color:white;
}

.secondary{
border:1px solid white;
color:white;
}

/* LORE */

.lore{
padding:160px;
text-align:center;
background:#020617;
background:url("../img/3.png") center/cover no-repeat;
}

/* FEATURES */

.features{
padding:100px 60px;
text-align:center;
max-width:1200px;
margin: auto;
background:#949494;
}

.features-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:30px;
margin-top:40px;
}

.feature{
background:#1e293b;
padding:30px;
border-radius:10px;
}

/* NEWS */

.news{
padding:120px 60px;
max-width:1200px;
margin:auto;
background: #b5b5b5;
}

.section-title{
text-align:center;
font-size:36px;
margin-bottom:60px;
}

.news-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}

.news-card{
background:#1e293b;
border-radius:12px;
overflow:hidden;
transition:0.3s;
}

.news-card:hover{
transform:translateY(-6px);
}

.news-image{
position:relative;
}

.news-image img{
width:100%;
height:200px;
object-fit:cover;
display:block;
}

.news-tag{
position:absolute;
top:10px;
left:10px;
background:#d4af37;
color:black;
padding:4px 10px;
border-radius:4px;
font-size:12px;
}

.news-content{
padding:20px;
}

.news-content p{
color:#bbb;
}

.news-meta{
margin-top:15px;
display:flex;
justify-content:space-between;
font-size:13px;
color:#888;
}

.news-read{
color:#d4af37;
text-decoration:none;
}

/* FOOTER */

.footer{
background:#020617;
border-top:2px solid #d4af37;
margin-top:120px;
}

.footer-container{
max-width:1200px;
margin:auto;
padding:60px 40px;
}

.footer-grid{
display:grid;
grid-template-columns:2fr 1fr 1fr 1fr;
gap:40px;
}

.brand-logo{
display:flex;
align-items:center;
gap:10px;
margin-bottom:15px;
}

.star{
font-size:30px;
color:#d4af37;
}

.footer .subtitle{
font-size:13px;
color:#aaa;
}

.brand-desc{
color:#aaa;
max-width:400px;
}

.footer-links ul{
list-style:none;
padding:0;
}

.footer-links li{
margin-bottom:8px;
}

.footer-links a{
color:#aaa;
text-decoration:none;
}

.footer-links a:hover{
color:#d4af37;
}

.social-icons{
display:flex;
gap:10px;
}

.social-icons a{
width:35px;
height:35px;
display:flex;
align-items:center;
justify-content:center;
background:#1e293b;
border-radius:6px;
color:white;
text-decoration:none;
}

.social-icons a:hover{
background:#d4af37;
}

.footer-bottom{
border-top:1px solid #333;
margin-top:40px;
padding-top:20px;
display:flex;
justify-content:space-between;
align-items:center;
}

.language{
display:flex;
gap:10px;
align-items:center;
}

/* ========================= */
/* TABLETTE */
/* ========================= */

@media (max-width: 1024px){

.header-container{
flex-wrap:wrap;
gap:10px;
}

.nav{
gap:15px;
font-size:13px;
}

/* HERO */

.hero h1{
font-size:42px;
}

.hero{
height:70vh;
}

/* FEATURES */

.features-grid{
grid-template-columns:repeat(2,1fr);
}

/* NEWS */

.news-grid{
grid-template-columns:repeat(2,1fr);
}

/* FOOTER */

.footer-grid{
grid-template-columns:1fr 1fr;
}

}
/* ========================= */
/* TELEPHONE */
/* ========================= */

@media (max-width: 768px){

/* HEADER */

.header-container{
flex-direction:column;
align-items:center;
gap:15px;
}

.nav{
flex-wrap:wrap;
justify-content:center;
gap:12px;
}

/* HERO */

.hero{
height:60vh;
padding:20px;
}

.hero h1{
font-size:32px;
}

.hero p{
font-size:16px;
}

/* BUTTONS */

.hero-buttons{
display:flex;
flex-direction:column;
align-items:center;
}

/* LORE */

.lore{
padding:60px 20px;
}

/* FEATURES */

.features{
padding:60px 20px;
}

.features-grid{
grid-template-columns:1fr;
}

/* NEWS */

.news{
padding:60px 20px;
}

.news-grid{
grid-template-columns:1fr;
}

/* FOOTER */

.footer-container{
padding:40px 20px;
}

.footer-grid{
grid-template-columns:1fr;
text-align:center;
}

.brand-logo{
justify-content:center;
}

.social-icons{
justify-content:center;
}

.footer-bottom{
flex-direction:column;
gap:10px;
}

}

/* BURGER BUTTON */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* MOBILE / TABLETTE */
@media (max-width: 1024px) {
    
    .logo-header {
        height: 120px; /* réduit légèrement pour tenir dans le header */
        margin-top: 45px; /* recentre verticalement */
    }

    .header-container {
        height: auto; /* laisse le container s’adapter */
        padding: 15px 20px;
    }
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100% - 70px);
        background: #020617;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding-top: 20px;
    }

    .nav.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item .dropdown-content {
        position: static;
        display: none;
        flex-direction: column;
        background: #1e293b;
        box-shadow: none;
    }

    .nav-item.dropdown.active .dropdown-content {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }
}

/* TELEPHONE */
@media (max-width: 768px){
    .logo-header {
        height: 90px; /* plus petit pour les écrans petits */
        margin-top: 20px; /* recentre verticalement */
    }

    .header-container {
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 15px 10px;
    }

    .nav {
        margin-top: 10px; /* espace le menu du logo */
    }
}