/* RESET */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

* {
    font-family: "DM Sans", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: "DM Sans", sans-serif;
    background: transparent;
    color: #ffffff;
    min-height: 100vh;

}

html,
body {
    height: 100%;
    margin: 0;
}

html {
    min-height: 100%;
    background: linear-gradient(135deg, #0d0d1a, #1a1a2e, #0d0d1a);
    background-attachment: fixed;

}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ton contenu principal doit prendre tout l'espace */
main {
    flex: 1;
}

/* footer toujours en bas */
footer {
    margin-top: auto;
}

/* HEADER */
header {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #2e2e5e;
}

header h1 {
    color: #c77dff;
    letter-spacing: 2px;
}

/* NAVIGATION */
nav {
    background: #111122;
    border-bottom: 1px solid #2e2e5e;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 15px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #c77dff;
}

/* CONTAINERS */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(140, 82, 255, 0.2);
}

/* TITRES */
h2 {
    color: #c77dff;
    margin-bottom: 15px;
}

/* FORMULAIRE */
form {
    display: flex;
    flex-direction: column;
}

input,
textarea {
    margin: 10px 0;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #1a1a2e;
    color: white;
}

input:focus,
textarea:focus {
    outline: 1px solid #c77dff;
}

/* BOUTON */
button {
    background: linear-gradient(45deg, #7b2cbf, #9d4edd);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    opacity: 0.8;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #0d0d1a;
    margin-top: 50px;
    color: #777;
}

button:hover {
    transform: scale(1.05);
}

.container:hover {
    transform: scale(1.02);
    transition: 0.3s;
}

.error {
    color: #ff4d6d;
    font-size: 12px;
    margin-bottom: 10px;
    display: block;
}

input.error-border,
textarea.error-border {
    border: 1px solid #ff4d6d;
}

/* PAGE MERCI SPÉCIFIQUE */
.confirmation-box {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px;
    text-align: center;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(140, 82, 255, 0.3);
    animation: fadeIn 1s ease;
}

.confirmation-box h2 {
    font-size: 28px;
    color: #c77dff;
    margin-bottom: 20px;
}

.confirmation-box p {
    margin-bottom: 30px;
    color: #ccc;
}

.confirmation-icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: glow 2s infinite alternate;
}

.btn-home {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, #7b2cbf, #9d4edd);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-home:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #9d4edd;
    }

    to {
        text-shadow: 0 0 25px #c77dff;
    }
}

/* ================= LOADER ================= */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #0d0d1a, #000);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.spinner {
    width: 70px;
    height: 70px;
    border: 5px solid #2e2e5e;
    border-top: 5px solid #c77dff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px #7b2cbf;
}

.loader-text {
    margin-top: 20px;
    color: #c77dff;
    font-family: Arial;
    letter-spacing: 2px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================= PAGE ================= */

.confirmation-box {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px;
    text-align: center;
    background: rgba(20, 20, 40, 0.8);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(140, 82, 255, 0.3);
    animation: fadeIn 1s ease;
}

.confirmation-box h2 {
    color: #c77dff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-home {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(45deg, #7b2cbf, #9d4edd);
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.socials {
    margin-bottom: 15px;
}

.socials a {
    margin: 0 10px;
    font-size: 30px;
    color: #c77dff;
    text-decoration: none;
    transition: 0.3s;
}

.socials a:hover {
    color: #ffffff;
    transform: scale(1.5);
}

select {
    margin: 10px 0;
    padding: 12px;
    border-radius: 5px;
    background: #1a1a2e;
    color: white;
    border: none;
}

.presentation {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* TEXTE */
.presentation-text {
    flex: 1;
}

/* IMAGE */
.presentation-image {
    flex: 1;
    text-align: center;
}

.presentation-image img {
    max-width: 50%;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(140, 82, 255, 0.4);
}

.presentation-image img {
    transition: 0.3s;
}

.presentation-image img:hover {
    transform: scale(1.05);
}