* {
    margin: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background: #000;
    color: #fff;
}

@font-face {
    font-family: "Formula1";
    src: url(https://www.formula1.com/etc/designs/fom-website/fonts/F1Regular/Formula1-Regular.ttf);
} nh        bh

/**************************VERSION PC *************************************/

nav {
    background-color: #000;
    color: #fff;
    text-align: center;
    align-items: center;
    padding: 8px 0px 0px 15px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
}


nav ul {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    font-family: "Formula1";
    margin-right: 20px;
}

nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a {
    font-family: "Formula1";
}

nav ul li a:hover {
    background-color: #272727;
    color: #f5f5f5;
}

.active {
    background-color: #434343; 
    color: white;
    text-decoration: none;
}

footer {
    height: 30px;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #000;
    color: #fff;
    text-align: center;
    width: 100%;
    justify-content: space-evenly;
    padding: 5px 0 5px 0;
    font-family: 'Quicksand', sans-serif;
    clear: both;
    cursor: pointer;
}

.paragraphe {
    text-align: center;
    color: #f5f5f5;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.paragraphe:hover {
    transform: scale(1.1);
}

#tableau {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h1 {
    font-family: "Formula1";
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    margin-top: 12vh;
    margin-bottom: 5%;
}

h1:hover {
    text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.logo img {
    max-width: 200px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.7;
}

.image-container {
    display: flex;
    width: 300px; 
    height: auto;
    margin: 10px;
}

#portfolio {
    color: white;
    text-decoration: none;
    transition: 1s;
    font-family: "Formula1";
}

#portfolio:hover {
    color: grey;
}

.image-container{
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
}

.vignette{
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
}

#vignette1{
    background-image: url(images/img1.jpeg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100px;
    height: 150px;
}
#vignette2{
    background-image: url(images/img2.jpeg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100px;
    height: 150px;
}
#vignette3{
    background-image: url(images/img3.jpeg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100px;
    height: 150px;
}

#video1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
    filter: blur(5px) brightness(0.5);
}

#video2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
    filter: blur(5px) brightness(0.5);
}

#video3 {
    background-size: contain;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
    filter: blur(5px) brightness(0.5);
}

#video4 {
    background-size: contain;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; 
    filter: blur(5px) brightness(0.5);
}

.card-container {
    /* grid-template-columns: repeat(3,1fr); */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 75vh;
    /* width: 50%; */
    margin: 0 auto;
    position: relative;
    margin-top: 3%;
}

.card-details-form {
    justify-content: center;
    align-items: center;
    display: block;
    text-align: center;
}

.card {
    width: 21%;
    height: 90vh;
    background-color: #56565696;
    border-radius: 10px;
    /* overflow: hidden;*/
    margin: 35px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: scale(1.05);
    filter: brightness(1.2); 
}



.card-image {
    width: 85%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
}

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

.card-content {
    padding: 15px;
    text-align: center;
    height: 50%;
    overflow: hidden;
    transition: filter 0.3s ease, background-color 0.3s ease;
}

.card-content p{
    color: white;
    font-size: small;
}

h2,
p {
    margin: 0;
    font-family: "Formula1";
    text-align: center;
}

.card:hover .card-content {
    filter: brightness(1.2);
}

.card-details {
    margin-top: 20px;
}

.card-details span {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90%;
    background: rgb(25 25 25 / 0%);
    z-index: 1;
}

.search-container {
    text-align: center;
    margin-top: 50px;
}

form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 20px auto;
    background-color: rgb(0 0 0 / 29%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgb(255 255 255 / 5%);
    text-align: center;
}

.search-form {
    max-width: 200px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    margin-bottom: 10%;
}

.search-form label {
    color: #fff;
    margin-bottom: 2px;
}

.search-form input[type="text"],
.search-form button {
    padding: 3px;
    margin-bottom: 3px;
    border: none;
    border-radius: 3px;
    text-align: center;
}

.search-form button {
    padding: 3px 6px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #45a049;
}

.btn-back-2{
    margin-top: 13%;
    text-align: center;
}

.btn-back-2 a{
    display: inline-block;
    position: relative;
    margin-bottom: 15%;
    background-color: #55555591;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-back-2 a:hover {
    background-color: #6c6c6cb9;
}

.search-form .btn-modifier,
.search-form .btn-supprimer {
    padding: 3px 6px;
    background-color: #008CBA;
    color: white;
    cursor: pointer;
    margin-top: 5px;
}

.search-form .btn-supprimer {
    background-color: #f44336;
}

.search-form .btn-modifier:hover{
    background-color: #0073e6;
}

.search-form .btn-supprimer:hover{
    background-color: #f56257;
}



label {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 16px;
}

input {
    color: #333;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #363636;
    border-radius: 8px;
    transition: border-color 0.3s;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #555;
}

button {
    padding: 15px;
    background-color: #3339;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 18px;
}

button:hover {
    background-color: #7a7a7a6d;
}


.menu-toggle{
    display: none;
}

.response-container {
    margin-top: 20px;
    text-align: center;
}

.response-message {
    font-family: "Formula1";
    font-size: 2em;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    margin-top: 10vh;
    margin: 0 auto;
}

strong {
    color: rgb(200 200 200 / 80%);
    text-transform: uppercase;
    font-family: "Formula1";
    transition: all 0.3s ease;
    cursor: pointer;
}

.response-message strong:hover{
    text-shadow: 1px 1px 3px rgba(190, 190, 190, 0.8);
    transform: scale(1,05);

}

/**************************VERSION MOBILE *************************************/



@media screen and (max-width: 480px) {
    nav {
        background-color: #000;
        color: #fff;
        text-align: center;
        display: flex;
        justify-content: center;
        padding: 8px 0px 0px 15px;
        width: 100%;
        position: relative;
        display: flex;
        justify-content: space-between;
    }

    
    nav ul {
        display: none; 
        flex-direction: column;
        width: 100%;
        list-style-type: none;
        margin: 0;
        padding: 0;
        background-color: #000;
        overflow: hidden;
        font-family: "Formula1";
    }
    
    nav a {
        display: block;
        color: white;
        text-align: center;
        padding: 10px;
        text-decoration: none;
        transition: background-color 0.3s, color 0.3s;
    }

    .menu-toggle {
        display: block;  
        background: none;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
        margin: 10px;
    }

    .menu-toggle:hover {
        color: #f5f5f5;
    }

    nav.active ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    nav ul li a {
        font-family: "Formula1";
    }
    
    nav ul li a:hover {
        background-color: #272727;
        color: #f5f5f5;
    }
    
    .active {
        background-color: #434343; 
        color: white;
        text-decoration: none;
    }
    
    footer {
        height: 30px;
        position: relative;
        bottom: 0;
        left: 0;
        background-color: #000;
        color: #fff;
        text-align: center;
        width: 100%;
        justify-content: space-evenly;
        padding: 5px 0 5px 0;
        font-family: 'Quicksand', sans-serif;
        clear: both;
        cursor: pointer;
    }
    
    .paragraphe {
        text-align: center;
        color: #f5f5f5;
        font-size: 18px;
        transition: transform 0.3s ease;
    }
    
    h1 {
        font-family: "Formula1";
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1em;
        cursor: pointer;
        color: #ffffff;
        transition: all 0.3s ease;
        margin-top: 10vh;
    }
    
    .logo img {
        max-width: 100px;
        opacity: 0.9;
        transition: opacity 0.3s ease;
    }
    
    .image-container {
        display: flex;
        width: 300px; 
        height: auto;
        margin: 10px;
    }
    
    #portfolio {
        color: white;
        text-decoration: none;
        transition: 1s;
        font-family: "Formula1";
    }
    
    #portfolio:hover {
        color: grey;
    }
    
    .image-container{
        width: fit-content;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        margin: 0 auto;
    }
    
    .vignette{
        width: 200px;
        height: 200px;
        display: flex;
        justify-content: center;
    }
    
    #vignette1{
        background-image: url(images/img1.jpeg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 100px;
        height: 150px;
    }
    #vignette2{
        background-image: url(images/img2.jpeg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 100px;
        height: 150px;
    }
    #vignette3{
        background-image: url(images/img3.jpeg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 100px;
        height: 150px;
    }
    
    .card-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
        grid-gap: 20px; 
        height: fit-content;
        width: 90%; 
        margin: 0 auto;
        margin-bottom: 15%;
    }
    
    
    .card {
        width: 100%;
        height: 65vh;
        background-color: rgb(105 105 105 / 30%);
        border-radius: 10px;
       /* overflow: hidden;*/
        margin: 10px;
        color: white;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
        position: relative;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .card:hover {
        transform: scale(1.05);
        filter: brightness(1.2); 
    }
    
    
    
    .card-image {
        margin-top: 10%;
        height: 45%;
        background-position: 50% 50%;
        background-size: cover;
        width: 85%;
        background-repeat: no-repeat;
        border-radius: 10px;
    }
    
    .card-content {
        padding: 15px;
        height: 50%;
        overflow: hidden;
        transition: filter 0.3s ease, background-color 0.3s ease;
    }
    
    .card-content p{
        color: white;
        font-size: large;
    }
    
    h2,
    p {
        margin: 0;
        font-family: "Formula1";
    }
    
    .card:hover .card-content {
        filter: brightness(1.2);
        /* background: rgba(45, 45, 45, 0.2);  */
    }
    
    .card-details {
        margin-top: 20px;
    }
    
    .card-details span {
        display: block;
        font-size: 12px;
        margin-bottom: 5px;
        opacity: 0.8;
    }
    
    .search-container {
        text-align: center;
        margin-top: 50px;
    }
    
    form {
        display: flex;
        flex-direction: column;
        max-width: 400px;
        margin: 20px auto;
        background-color: rgba(0, 0, 0, 0.8);
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    
    label {
        color: #ffffff;
        margin-bottom: 10px;
        font-size: 16px;
    }
    
    input {
        padding: 15px;
        margin-bottom: 20px;
        border: 1px solid #363636;
        border-radius: 8px;
        transition: border-color 0.3s;
        font-size: 16px;
    }
    
    input:focus {
        outline: none;
        border-color: #555;
    }
    
    button {
        padding: 15px;
        background-color: #33333363;
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s;
        font-size: 18px;
    }

    #video1,
    #video2,
    #video3,
    #video4 {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: -1; 
        filter: blur(5px) brightness(0.5);
    }
}

#accueil {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30vh;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-top: 8%;
    text-align: center;
}

.btn-back a {
    display: inline-block;
    position: relative;
    margin-bottom: 8%;
    background-color: #55555591;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-back a:hover {
    background-color: #6c6c6cb9;
}

h3 {
    display: flex;
    text-align: center;
    justify-content: center;
    margin-top: 50px;
}

#nom_pilote {
    text-align: center;
    margin-bottom: 7%;
}

#admin-bouton{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
