@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Medula+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

/* Header principal */
header {
    position: relative;
    background-color: #233d7a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 3em;
    height: 80px;
    z-index: 1000;
}

header a {
    text-decoration: none;
    color: #f9f0d4;
    transition: color 0.3s ease;
}

/* Burger menu */
.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1100;
}

.burger-menu span {
    height: 3px;
    width: 25px;
    background-color: #f9f0d4;
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
transform: translateY(-9px) rotate(-45deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #233d7a;
    padding: 10px 15px;
    background-color: #f9f0d4;
    border-radius: 20px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #f9f0d4;
    color: #233d7a;
}

.menu-mobile {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #233d7a;
    text-align: center;
    padding: 20px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}

.menu-mobile.show {
    display: block;
}

.menu-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-mobile ul li {
    margin: 15px 0;
}

.menu-mobile ul li a {
    color: #f9f0d4;
    font-size: 1.2em;
    text-decoration: none;
    padding: 10px;
    display: inline-block;
    transition: background 0.3s, color 0.3s;
}

.menu-mobile ul li a:hover {
    background-color: #f9f0d4;
    color: #233d7a;
}

.liensnav {
    display: flex;
    gap: 15px;
}

.liensnav a {
    color: #f9f0d4;
    transition: color 0.3s ease;
}

.liensnav a:hover {
    color: #f9f0d4;
    text-decoration: underline;
}

.liensnav a img {
    opacity: 1;
    transition: 0.4s;
}

.liensnav a img:hover {
    opacity: 0.75;
}

@media (min-width: 769px) {
    .burger-menu {
        display: none;
    }
    .menu-mobile {
        display: none;
    }
}
@media (max-width: 768px) {
    nav {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    .menu-mobile {
        display: none;
    }
    .menu-mobile.show {
        display: block;
    }
}

/* Principal */
main {
    width: 80%;
    margin: 30px auto;
}

h1 {
    text-align: center;
    font-size: 42px;
}

h2 {
    font-size: 28px;
    margin-top: 20px;
}

.action-btn {
    background: none !important;
    border: none !important;
    margin: 0;
    cursor: pointer;
}

/* Tableaux */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    text-align: left;
    background-color: #f9f9f9;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

th {
    background-color: #233d7a;
    color: #f9f0d4;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e1e8f0;
}

caption {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 1.2em;
    color: #233d7a;
}

@media (max-width: 768px) {
    th, td {
        white-space: nowrap;
    }
}

/* Formulaires */
form {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    width: 50%;
    margin-bottom: 30px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

input::placeholder {
    color: #aaa;
    font-style: italic;
}

select {
    appearance: none;
    background-color: white;
}

select:focus,
input:focus {
    border-color: #233d7a;
    outline: none;
    box-shadow: 0 0 5px rgba(35, 61, 122, 0.5);
}

form button {
    background-color: #233d7a;
    color: #f9f0d4;
    border: none;
    padding: 10px 20px;
    margin: 10px 0;
    font-size: 1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover {
    background-color: #1c315e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.btnsupprimer {
    background-color: #c6241e;
}

.btnsupprimer:hover {
    background-color: #a1201c;
}

@media (max-width: 768px) {
    form {
        width: 100%;
    }
}

/* Page login */
body.login {
    background-color: #233d7a;
    color: white;
    padding-top: 5em;
}

.login form {
    margin: 30px auto;
    width: 40%;
}

.login button {
    background-color: white;
    color: black;
}

.login button:hover {
    background-color: rgb(209, 209, 209);
}