/* === Global === */
body {
    margin: 0;
    padding: 0;
    position: relative;
    font-family: Poppins, sans-serif;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* === Background Particles === */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #f6e1cf;
    top: 0;
    left: 0;
    z-index: -1;
}

/* === Wrapper === */
.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    flex-direction: column;
}

/* === Intro Text === */
.intro {
    text-align: center;
    max-width: 90%;
    margin: 5vh auto 5vh auto;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: bolder;
    z-index: 1;
}

/* === Form Container === */
.form-container {
    background-color: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
    margin: 2rem auto;
    z-index: 1;
}

/* Form Elements */
form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

form p {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap; /* permet de passer à la ligne sur petit écran */
}

button {
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

button:hover {
    background-color: #333;
    color: white;
}

/* LinkedIn Note */
.linkedin-note {
    text-align: center;
    margin-top: 2rem;
    z-index: 1;
}

.linkedin-note a {
    color: gray;
    text-decoration: none;
    font-weight: bold;
}

.linkedin-note a:hover {
    text-decoration: underline;
}

/* === Header & Logo === */
#head {
    position: relative;
    z-index: 10;
}

#logo img {
    z-index: 10;
    position: relative;
}

/* === Popup Message === */
#popupMessage {
    position: fixed;
    top: 40px;
    right: -300px;
    color: black;
    background-color: white;
    padding: 18px 25px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(0);
    pointer-events: none;
    transition: right 0.6s ease, opacity 0.6s ease;
    z-index: 1000;
}

#popupMessage.show {
    right: 40px;
    opacity: 1;
}

/* === Media Queries === */

/* Smartphones */
@media (max-width: 480px) {
    .intro {
        font-size: 1rem;
        margin: 3vh auto;
    }

    .form-container {
        padding: 1.5rem;
        width: 95%;
    }

    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    #popupMessage.show {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* Tablettes */
@media (max-width: 768px) {
    .intro {
        font-size: 1.1rem;
        margin: 5vh auto;
    }

    .form-container {
        max-width: 500px;
    }
}
