body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    height: 100%;
    overflow: hidden;
    background: #1a1a1a;
}

#background {                                                                       /* CSS section 1 */
    position: absolute;
    display: grid;
    padding: 1%;
    margin-left: -0.2%;
    margin-top: 0.2%;
    gap: 0.5vw;
    z-index: 0;
}
.square {
    background: #2c3e50;
    border-radius: 0.5vw;
    transition: background-color 0.3s ease;
}
.square:hover {
    background: #3498db;
    transition: background-color 0s ease;
}
#background::before {  
    content: '';
    position: absolute;
    top: -140%;
    left: -1%;
    width: 110%;
    height: 150%;
    background: linear-gradient(180deg, transparent, #3498db, transparent);
    animation: flow 15s linear infinite;
    z-index: -1; /* Met le flux sous les carrés */
}
@keyframes flow {              /* Animation du flux */
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(190%);
    }
}

.form-container {                                                                    /* CSS section 2*/
    position: absolute;
    top: 0.9%;
    left: 0.5%;
    width: 75%; /* Augmenter la taille du formulaire */
    padding: 1.4% 5%;
    height: calc(100% - 7.5%);
    background: linear-gradient(to top right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('https://www.example.com/vague.svg'); /* Fond avec effet de vagues */
    background-size: cover;
    clip-path: polygon(0% 100%, 50% 100%, 100% 0, 0% 0); /* Forme trapèze */
    border-radius: 0.5rem; /* Coins arrondis, optionnel */
    text-align: center;
    transition: transform 1s ease-in-out; /* Animation fluide */
    z-index: 2; /* Le formulaire se place au-dessus du fond interactif */
    pointer-events: none;
}
.form {
    font-size: 1vw;
    position: relative;
    left: 0;
    width: 80%;
    margin-left: -10%;
    margin-top: 10%;
}
.form-container h2 {
    color: #fff;
    font-size: 3vw;
    margin-bottom: 5vh;
    margin-left: 0;
    text-align: center;
}
.form .inputBox {
    position: relative;
    width: 100%;
    margin-bottom: 2vh;
}
.form .inputBox label {
    display: block;
    color: white;
    font-size: 1vw;
    margin-bottom: 0.8vh;
    margin-left: 0%;
}
.form .inputBox input {
    position: relative;
    width: 55%;
    margin: 0 auto;
    display: block;
    padding: 0.5vw 1vw;
    font-size: 1vw;
    color: #fff;
    background: transparent;
    border-bottom: 0.1vw solid #fff;
    text-align: center;
    pointer-events: auto;
}
.form .inputBox i {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1vw;
    color: #aaa;
    pointer-events: none;
    transition: 0.5s;
}
.form .links {
    display: flex;
    justify-content: center;
    gap: 4vw;
    margin: 2vh 0;
    pointer-events: auto;
}
.form .links a {
    color: #aaa;
    font-size: 1vw;
    text-decoration: none;
}
.form .links a:hover {
    color: #fff;
}
.links a {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
    pointer-events: auto;   
}
.links a:hover {
    color: darkblue;
}
.form .inputBox input[type="submit"] {
    background-color:rgb(44, 73, 159);
    color: #fff;
    border: none;
    padding: 0.8vw 2vw;
    font-size: 1vw;
    border-radius: 0.5rem;
    cursor: pointer;
    width: 40%;
    margin: 2.5vw auto 0 auto;
    display: block;
}
.form .inputBox input[type="submit"]:hover {
    background-color:rgb(28, 112, 202);
}
.linksMDP {
    position: absolute;
    display: flex;
    justify-content: center;
   margin-left: 42%;
   margin-top: -3%;
    pointer-events: auto;
    cursor: pointer;
    font-size: 1vw;
    color: white;
}

.modal {                                                                            /* CSS section 3 */
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
    text-align: center;
    display: none; /* Masqué par défaut */
}
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 0.1vw solid #ccc;
    padding: 2vw;
    border-radius: 0.5vw;
    z-index: 6;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 25%;
    height: 38%;
}
.modal-content h3 {
    text-align: center;
    padding-bottom: 2vw;
}
.modal-content p {
    font-size: 1vw;
    color: #555;
}
.modal-content input[type="email"] {
    width: 70%;
    padding: 0.5vw;
    margin-top: 2vw;
    border: 1px solid #ccc;
    border-radius: 0.4vw;
    font-size: 1vw;
    text-align: center;
}
.modal-content button {
    margin-top: 1.5vw;
    padding: 0.8vw 1.5vw;
    background-color:rgb(44, 73, 159);
    color: white;
    border: none;
    border-radius: 0.5vw;
    font-size: 1vw;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.modal-content button:hover {
    background-color:rgb(28, 112, 202);
}
.close {
    position: absolute;
    top: 1vw;
    right: 1vw;
    font-size: 1.5vw;
    font-weight: bold;
    color: #666;
    background-color: #e0e0e0;
    width: 2vw;
    height: 2vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease; /* ajouté transform */
}
.close:hover {
    background-color: #ccc;
    color: #000;
    transform: scale(1.1);
}