/*text classes*/
.text {
    font-weight: 600;
}

.text-bold {
    font-weight: 700;
}

.text-thin {
    font-weight: 500;
}

.small-text {
    font-size: 0.7rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

/*global classes*/
.hidden {
    display: none !important;
}

body {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-style: normal;
    margin: 0;
}

main {
    padding-inline: 100px;
}

#bg-overlay {
    display: flex;
    position: fixed;
    flex-direction: column;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 8888;
}

/*Header*/

header {
    display: flex;
    position: sticky;
    top: 0px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    justify-content: space-between;
    align-items: center;
    padding-inline: 20px;
    height: 8vh;
    box-shadow: gray 0px 0px 5px;
    box-sizing: border-box;
}

header>div {
    display: flex;
    align-items: center;
    gap: 20px;
}

header img {
    height: 5vh;
    width: auto;
}

.small-header {
    display: none;
}

nav {
    display: flex;
    gap: 30px;
    font-weight: 600;
}

a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: #FFAE00;
    transition: 0.3s;
    cursor: pointer;
}

a:hover {
    color: #7C3A0B;
    transition: 0.3s;
}

nav a {
    display: flex;
    align-items: center;
    color: black;
    transition: 0.3s;
}

nav a:hover {
    color: #FFAE00;
    transition: 0.3s;
}

nav select {
    display: none;
}

button {
    cursor: pointer;
    border: none;
}

.affiche {
    aspect-ratio: 2/3;
    overflow: clip;
}

.affiche img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


p {
    font-size: 1rem;
    margin: 0;
}

input {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding-inline: 10px;
    margin: 0;
    background-color: #eaeaea;
    border: none;
    border-radius: 10px;
}

input::placeholder {
    font-weight: 500;
}

textarea {
    font-family: "Poppins", sans-serif;
    border-radius: 5px;
    padding: 10px;
    resize: none;
}

select {
    border-color: #dadada !important;
    border-radius: 5px !important;
    padding: 5px !important;
}

.affiches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/*Footer*/

footer {
    display: flex;
    position: relative;
    margin-top: 50px;
    width: 100%;
    height: 8vh;
    background-color: #eaeaea;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

/*pop-ups*/

.pop-up {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 300px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding-inline: 20px;
    gap: 30px;
}

.pop-up p {
    padding-top: 10px;
}

.pop-up div {
    display: flex;
    flex-direction: column;
    width: 100%;
}


.pop-up button {
    display: flex;
    width: 100%;
    padding: 10px;
    gap: 10px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    color: white;
    background-color: black;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
}

.pop-up button:hover {
    gap: 15px;
    transition: 0.3s;
}

.login-register {
    flex-direction: row !important;
    width: 100%;
    justify-content: center;
    border-top-style: solid;
    border-top-color: #eaeaea;
    border-top-width: 1px;
    padding: 20px;
}

.pop-up form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.pop-up a {
    display: inline;
}

/*Bouttons*/

.btn {
    display: flex;
    width: fit-content;
    padding-block: 5px;
    padding-inline: 10px;
    gap: 10px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    color: white;
    background-color: black;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
}

.btn:hover {
    color: white;
    padding-inline: 12px;
    transition: 0.3s;
}

.orange-btn {
    background-color: #FFAE00;
    color: white;
}

.orange-btn:hover {
    background-color: #FF8C00;
}

.brown-btn {
    background-color: #481D00;
    color: white;
}

.brown-btn:hover {
    background-color: #7C3A0B;
}

.big-btn {
    padding-block: 10px;
    padding-inline: 15px;
    border-radius: 10px;
}

.big-btn:hover {
    padding-inline: 17px;
}

.delete:hover {
    background-color: #FF0000 !important;
    color: white !important;
}

/*Etats*/

.disabled {
    pointer-events: none;
    opacity: 0.5;
    color: black;
}

.disabled-btn {
    pointer-events: none;
    opacity: 0.5;
    color: white;
    background-color: black !important;
}

/*Messages*/

.message {
    display: flex;
    z-index: 9999;
    position: fixed !important;
    visibility: hidden;
    width: fit-content;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    padding-block: 10px;
    padding-inline: 15px;
    border-radius: 10px;
    border: 1px solid;
    position: fixed;
    top: 4vh;
    left: 0;
    right: 0;
    margin: auto;
    animation-name: message;
    animation-duration: 4s;
}

.success {
    color: #015001;
    background-color: #acedac;
}

.error {
    color: #750101;
    background-color: #fdc2cb;
}

.info {
    color: #000059;
    background-color: lightblue;
}


/*Adaptative*/
@media (max-width: 1200px) {
    main {
        padding-inline: 50px;
    }

    .full-header {
        display: none;
    }

    .small-header {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        display: flex;
        width: 100%;
        position: fixed;
        padding-block: 10px;
        top: 8vh;
        left: 0;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
        background-color: white;
        border-bottom: 1px solid #dadada;
    }

    nav select {
        display: block;
    }
}

/*Animations*/
@keyframes message {
    0% {
        visibility: visible;
        filter: blur(5px);
        transform: translateY(-10vh);
    }
    20% {
        filter: blur(0px);
        transform: translateY(0);
    }
    80% {
        filter: blur(0px);
        transform: translateY(0);
    }
    100% {
        filter: blur(5px);
        transform: translateY(-10vh);
        visibility: hidden;
    }
}