@font-face {
    font-family: 'Kalamayka';
    src: url('/fonts/KalamaykaVF.woff2') format('woff2'),
         url('/fonts/KalamaykaVF.woff') format('woff'),
         url('/fonts/KalamaykaVF.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Application globale de la police */
* {
    font-family: 'Kalamayka', sans-serif;
}

body {
    background-color: #0b0b0b;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 500px;
    padding-top: 30px;
}

section img {
    width: 220px;
    margin-bottom: 25px;
}

.animated-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* ✅ Centrage du formulaire */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto; /* ✅ Assure le centrage */
    align-items: center; /* ✅ Aligne le contenu au centre */
}

/* ✅ Correction du décalage sur mobile */
@media (max-width: 767px) {
    form {
        width: 90%; /* ✅ Ajuste la largeur pour éviter le décalage */
        padding: 15px;
    }
}

/* Prénom - Nom (50% / 50%) */
.double-input {
    display: flex;
    gap: 15px;
}

.double-input .input-group {
    flex: 1;
    position: relative;
}

/* Email - Téléphone (65% / 35%) */
.email-tel {
    display: flex;
    gap: 15px;
}

.email-tel .email-field {
    flex: 65%;
}

.email-tel .tel-field {
    flex: 35%;
}

.input-group {
    position: relative;
    width: 100%;
}

input, textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid white;
    color: white;
    font-size: 16px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    resize: none; /* Désactive le redimensionnement du champ Message */
}

input::placeholder, textarea::placeholder {
    color: transparent;
}

label {
    font-size: 16px;
    color: white;
    position: absolute;
    top: 14px;
    left: 10px;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    background: #0b0b0b;
    padding: 0 5px;
}   

/* Correction du positionnement des labels */
input:focus + label, input:not(:placeholder-shown) + label,
textarea:focus + label, textarea:not(:placeholder-shown) + label {
    top: -7px;
    font-size: 14px;
    color: grey;
} 

button {
    background-color: white;
    color: black;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 200px;
    align-self: center;
}

button:hover {
    background-color: grey;
}

footer {
    margin-top: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-links img {
    width: 22px;
    height: 22px;
}
