/* Réinitialisation de base */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    color: white;
}

/* Arrière-plan par défaut (hors page 403) */
body {
    background: url('/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Navbar fixée en haut */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Hauteur fixe de la navbar */
    z-index: 10;
    background: #111;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
}

nav a {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.access-denied-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 20px 40px;
    min-height: 100vh;
    box-sizing: border-box;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
}

/* ✅ Titre séparé au-dessus du GIF */
.access-denied-title {
    position: relative; /* plus d'absolute */
    z-index: 0;
    text-align: center;
    font-size: 2em;
    margin-top: 40px; /* espace sous la navbar */
    text-shadow: 2px 2px 8px black;
    color: white;
}

/* Image animée (GIF Jurassic Park) */
.gif-wrapper img {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.fullscreen-wrapper {
    position: relative;
    width: 100vw;
    height: auto; /* plus de fixed */
    overflow: hidden;
    z-index: 0;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fullscreen-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.fullscreen-wrapper h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3em;
    text-shadow: 2px 2px 8px black;
    z-index: 2;
    text-align: center;
}

/* ----------------------------------------------
   💻 Mise en page formulaire & autres composants
------------------------------------------------ */

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px 30px 50px 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    margin: 10vh auto;
}

.categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
}

.category-link {
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    width: 80%;
    max-width: 210px;
}

.category-link:hover {
    background-color: #555;
}

h1 {
    margin-bottom: 30px;
    font-size: 36px;
}

.actions a {
    display: block;
    margin: 10px auto;
    padding: 12px;
    width: 200px;
    text-decoration: none;
    background-color: #28a745;
    border-radius: 5px;
    color: white;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.actions a:hover {
    background-color: #1e7e34;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: white;
    margin-top: 20px;
}

label {
    text-align: left;
    font-weight: bold;
    font-size: 16px;
}

input[type="text"],
input[type="password"] {
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    width: 100%;
}

button[type="submit"] {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #1e7e34;
}

.error-message {
    color: red;
    margin-bottom: 15px;
}

/* 📱 Responsive tablette */
@media (max-width: 1024px) {
    .container {
        padding: 50px;
        font-size: 18px;
    }

    h1 {
        font-size: 42px;
    }

    .actions a {
        width: 90%;
        font-size: 20px;
        padding: 16px;
    }

    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        font-size: 20px;
        padding: 16px;
    }
}

/* 📱 Responsive mobile */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
        background: #111;
        padding: 10px;
        text-align: center;
    }

    nav a {
        color: white;
        margin: 0 10px;
        text-decoration: none;
        font-size: 18px;
        font-weight: bold;
        padding: 6px 10px;
    }

    .container {
        width: 90%;
        padding: 30px 20px 40px 20px;
        font-size: 18px;
    }

    h1 {
        font-size: 50px;
        margin-bottom: 30px;
    }

    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        font-size: 24px;
        padding: 12px 24px;
    }

    .button-like {
        display: inline-block;
        padding: 10px 20px;
        background-color: #3498db;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        font-weight: bold;
        text-align: center;
        border: none;
        transition: background-color 0.3s;
    }

    .button-like:hover {
        background-color: #2980b9;
    }

    .actions a {
        font-size: 20px;
        padding: 14px;
        width: 90%;
    }

    .category-link {
        font-size: 20px;
        padding: 12px 20px;
        width: 80%;
    }
}
