body {
    background-image: url(../IMG/fondflou.jpg);
    margin: 0;
    width: 100vw;
    font-family: Arial, Helvetica, sans-serif;
}
img{
    width: 10vw;
}
nav {
    background-color: #000091;
    width: 100%;
    height: 15vmin;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#Site {
    font-size: 4vmin;
}

#icone {
    width: 7vmin;
    height: 7vmin;
    display: none;
}

a {
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    background-color: rgb(157, 167, 233);
}
ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}
li {
    margin: 0 2vmin;
    position: relative;
    overflow: hidden;
    padding: 10px;
    border-radius: 10px;
    background-color: rgb(157, 167, 233);
}

li::before,
li::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgb(231, 225, 255);
    left: 0;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

li::before {
    top: 0;
    transform-origin: left;
}

li::after {
    bottom: 0;
    transform-origin: right;
}

li:hover::before,
li:hover::after {
    transform: scaleX(1);
}

@media only screen and (max-width: 768px) {
    ul {
        display: none;
    }

    #menu-burger {
        display: block;
        cursor: pointer;
    }
   
    #menu-burger .bar1,
    #menu-burger .bar2,
    #menu-burger .bar3 {
        width: 32px;
        height: 5px; 
        background-color: white;
        margin: 6px 0; 
        transition: 0.4s;
    }

    #menu-burger.clicked .bar1 {
        transform: rotate(-45deg) translate(-9px, 6px);
    }
    #menu-burger.clicked .bar2 {
        opacity: 0;
    }
    #menu-burger.clicked .bar3 {
        transform: rotate(45deg) translate(-8px, -8px);
    }

    #menu {
        position: fixed;
        z-index: 9999;
        left: -100%;
        top: 0;
        background: #e74c3c;
        width: 75%;
        height: 100%;
        box-shadow: 1px 0 1px #9A2519;
        transition: left 0.3s ease;
    }

    #menu.visible {
        left: 0;
    }

    #menu ul {
        display: block;
        padding: 4em 2em;
    }

    #menu ul li {
        margin-bottom: 1em;
    }

    #menu ul li a {
        display: block;
        color: #fff;
        background: #2c3e50;
        padding: 1em;
        text-align: center;
        transition: background 0.5s;
    }

    #menu ul li a:hover {
        background: #f1c40f;
    }
}

th, td {
    border: 1px solid #0000b4;
    text-align: left;
    padding: 8px;
    transition: 0.3s;
}

th {
    color: white;
    background-color: #000091;
}

.delete_ligne {
    color: white;
    background-color: #0000c5;
    border: none;
    padding: 7.5px 15px;
    transition: 0.5s;
    border-radius: 10px;
}

.delete_ligne:hover {
    background-color: #000091;
    cursor: pointer;
}

#submit {
    color: white;
    background-color: rgb(89, 48, 250);
    border: none;
    padding: 1vh 2vw;
    width: 20vw;
    transition: 0.5s;
    border-radius: 10px;
    margin-top: 1vh;
}

#submit:hover {
    background-color: rgb(164, 163, 253);
    cursor: pointer;
}

td:hover {
    color: white;
    background-color: #000091;
}

input {
    color: white;
    background-color: #023872;
    border: none;
    padding: 1vh 2vw;
    transition: 0.5s;
    border-radius: 10px;
    font-size: 1vw;
    margin-top: 0.5vh;
}

input::placeholder {
    color: #7979a5;
}

input:hover {
    background-color: #000066;
}

table {
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    margin-top: 5%;
    width: 90%;
}

#form_ligne {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    margin-top: 1vh;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    background-color: rgb(157, 167, 233);
}

.grid-item {
    background-color: #000091;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 20px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.grid-item:hover {
    transform: scale(1.05);
    background-color: #000066;
    z-index: 1;
}

.grid-item:hover ~ .grid-item {
    transform: scale(0.95);
}

.grid-container:hover .grid-item:not(:hover) {
    transform: scale(0.95);
}