@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    background-color: black;
    word-wrap: break-word;
}



header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.header-contenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.titre {
    margin-right: auto;
    color: #fff;
    text-transform: uppercase;
    font-family: "Permanent Marker", cursive;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(4, 142, 255, 0.7);
}

header nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

header nav a {
    font-family: 'Montserrat', sans-serif;
    color: white;
    text-decoration: none;
    margin: 0 12px;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 1px;
    padding: 5px 0;
    position: relative;
}

header nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #64b5f6;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

header nav a:hover {
    color: #64b5f6;
}

header nav a:hover:after {
    width: 100%;
}

.recherche-header {
    position: relative;
    background: white;
    border-radius: 50px;
    padding: 1px 14px;
    border: 1px solid #e0e0e0;
    max-width: 250px;
}

.recherche-header input[type="text"] {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 1rem;
    outline: none;
    color: #333;
    width: 100%;
}

.recherche-header input::placeholder {
    color: #626569;
}

.section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-position: center;
    background-attachment: fixed;
    transition: filter 3s ease;
}

.contenu {
    position: relative;
    padding: 40px;
    color: white;
    max-width: 800px;
    margin: 50px auto 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease, transform 2s ease;
}

.contenu h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.contenu h3, .utilisateur h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.contenu p, .contenu li {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.parallax-bg.darkened {
    filter: brightness(0.2);
    transition: filter 1s ease;
}

.encyclopédie {
    background-color: #1a1a2e;
    padding: 100px 20px;
    text-align: center;
}

.encyclopédie h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 30px;
}

.encyclopédie a {
    position: relative;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    background-color: #111;
    border: 2px solid #64b5f6;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.encyclopédie a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #64b5f6;
    bottom: 10px;
    left: 15px;
    transition: width 0.3s ease;
}

.encyclopédie a:hover {
    color: #64b5f6;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(100, 181, 246, 0.4);
}

.encyclopédie a:hover::after {
    width: calc(100% - 30px);
}

#actualité {
    background-color: #1a1a2e;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    text-align: center;
    color: #fff;
}

.utilisateur-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 20px;
    background-color: #1a1a2e;
}

.utilisateur {
    background-color: #111;
    border: 2px solid #64b5f6;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.5);
    height: 300px;
}

.utilisateur img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

.utilisateur:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .header-contenu {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav {
        flex-direction: column;
        width: 100%;
    }

    header nav a {
        margin: 5px 0;
    }

    .recherche-header {
        width: 100%;
        max-width: none;
    }

    .section {
    flex-direction: column;
    padding-top: 80px;
    }

    .section img {
    height: 300px;
    object-fit: cover;
    position: static;
    width: 100%;
    }
    .contenu {
        padding: 20px;
    }

    .contenu h2 {
        font-size: 2.2rem;
    }

    .contenu p, .contenu li {
        font-size: 1.1rem;
    }
}

footer {
    text-align: center;
    color: #fff;
    padding: 20px 0;
}