@font-face {
    font-family: 'Caligraf';
    src: url('../assets/fonts/Caligraf.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #693800;
    color: #F0D9B5;
}

header {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo img {
    height: 40px;
}

.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    user-select: none;
}

.menu-toggle i {
    color: white;
}

nav {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    border-bottom: 1px solid #333;
}

nav ul li a {
    display: block;
    padding: 15px;
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    background: linear-gradient(to bottom, #f7e199 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transition: transform 0.3s ease;
}

nav ul li a i {
    margin-right: 10px;
}

nav ul li a:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px #ffd700, 0 0 15px #ffd700;
}

main {
    padding: 20px;
    text-align: center;
}

h2 {
    font-family: 'Caligraf', cursive;
    font-size: 2em;
    background: linear-gradient(to bottom, #f7e199 0%, #d4af37 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 20px;
}

footer {
    background-color: rgba(0,0,0,0.6);
    color: #F0D9B5;
    text-align: center;
    padding: 2px;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-weight: bold;
}

/* --- Version Tablette et Grands Smartphones --- */
@media screen and (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    nav {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        position: static;
        background-color: transparent;
    }

    nav ul {
        display: flex;
        justify-content: center;
    }

    nav ul li {
        border: none;
    }

    nav ul li a {
        color: inherit;
        padding: 10px 20px;
        background: none;
        font-size: 20px;
    }

    nav ul li a:hover {
        background-color: rgba(255, 215, 0, 0.1);
        border-radius: 5px;
    }
}

/* ----- Loader ----- */
#loader {
    position: fixed;
    z-index: 9999;
    background-color: #1a1a1a;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #555;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loaded #loader {
    display: none;
}
