/* --- TYPOGRAPHIE --- */
@font-face {
    font-family: 'TitleFont';
    src: url('Roman SD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- HEADER --- */
header {
    background-image: url("pictures/header.png");
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    font-family: 'TitleFont', sans-serif;
    position: relative; /* Important pour le positionnement de la langue */
    aspect-ratio:1800/420;
    width: 100%;
    overflow: hidden; 
    box-sizing: border-box;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- SELECTEUR DE LANGUE --- */
.lang-select {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

.lang-select button {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.lang-select button:hover {
    background-color: rgba(0,0,0,0.8);
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0,0,0,0.9);
    border-radius: 5px;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    min-width: 100px;
}

.lang-select.active .lang-menu {
    display: block;
}

.lang-menu li a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
}

/* --- NAVIGATION --- */
nav {
    position: sticky;
    top: 0;
    padding: 10px 0;
    z-index: 9999;
    background: #1a1a1a;
    border-bottom: 2px solid #000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    max-width: 800px;
    margin: 0 auto; /* ➜ Centre horizontalement le menu */
}

nav a {
    text-decoration: none;
    color: lightgrey;
    font-weight: bold;
    transition: all 0.3s;
    padding: 5px 15px;
}

nav a:hover {
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.8);
    transform: scale(1.05);
    color: #fff;
}

/* Page active */
nav ul li a.active {
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
    pointer-events: none;
}