/* ====================================================================== */
/* 1. STYLES DE BASE ET MISE EN PAGE GÉNÉRALE */
/* ====================================================================== */

body {
    background-color: #212121;
    color: #c2babb;
    font-family: "Audiowide", sans-serif;
    font-style: normal;
    text-align: center;
}

h1, .confTitre {
    margin-top: 50px;
    text-align: center;
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2em;
}

.confTitre {
    font-size: 2.5em;
}

p {
    text-align: justify;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: none;
}

footer a {
    color: #c2babb;
}

/* ---------------------------------------------------------------------- */
/* 1.1. STYLE SPÉCIFIQUE À LA PAGE DE CONFIDENTIALITÉ */
/* ---------------------------------------------------------------------- */

.conf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.confParagraphe {
    font-size: 1.2em;
    text-decoration: underline;
    margin-top: 30px;
    margin-bottom: 5px;
    text-align: left;
}

.conf-container p {
    text-align: left;
    line-height: 1.6;
}

/* ---------------------------------------------------------------------- */
/* 1.2. STYLE DU FORMULAIRE ET DES CHAMPS (.login-box) */
/* ---------------------------------------------------------------------- */

.login-box {
    max-width: 400px;
    padding: 40px;
    background: rgba(24, 20, 20, 0.987);
    box-sizing: border-box;
    box-shadow: 0 15px 25px rgba(0,0,0,.6);
    border-radius: 10px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
}

.login-box .user-box {
    position: relative;
}

.login-box .user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
}

.login-box .user-box label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: .5s;
}

.login-box .user-box input:focus ~ label,
.login-box .user-box input:valid ~ label {
    top: -20px;
    left: 0;
    color: #bdb8b8;
    font-size: 12px;
}

/* ====================================================================== */
/* 2. BOUTONS : MUTUALISATION NÉON ET ANIMATION */
/* ====================================================================== */

/* ---------------------------------------------------------------------- */
/* 2.1. STYLE DE BASE POUR TOUS LES BOUTONS NÉON */
/* ---------------------------------------------------------------------- */

.login-box form button, /* SEND */
.unsubscribe-btn,       /* DÉSINSCRIRE */
.ui-btn-back            /* RETOUR */
{
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    letter-spacing: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* ---------------------------------------------------------------------- */
/* 2.2. EFFET NÉON AU SURVOL */
/* ---------------------------------------------------------------------- */

.login-box form button:hover,
.unsubscribe-btn:hover,
.ui-btn-back:hover {
    background: #c2babb;
    color: #000;
    border-radius: 5px;
    box-shadow: 0 0 5px #c2babb,
                0 0 25px #c2babb,
                0 0 50px #c2babb,
                0 0 100px #c2babb;
}

/* ---------------------------------------------------------------------- */
/* 2.3. SPANS D'ANIMATION */
/* ---------------------------------------------------------------------- */

/* Sélecteurs des spans enfants pour tous les boutons */
.login-box button span,
.unsubscribe-btn span,
.ui-btn-back span {
    position: absolute;
    display: block;
}

.login-box button span:nth-child(1),
.unsubscribe-btn span:nth-child(1),
.ui-btn-back span:nth-child(1) {
    bottom: 2px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c2babb);
}

/* Application de l'animation au survol (partie spécifique) */
.login-box button:hover span:nth-child(1),
.unsubscribe-btn:hover span:nth-child(1) {
    animation: btn-anim1 2s linear infinite;
}

/* ---------------------------------------------------------------------- */
/* 2.4. MARGES SPÉCIFIQUES AUX BOUTONS */
/* ---------------------------------------------------------------------- */

.login-box form button,
.unsubscribe-btn {
    margin-top: 40px; 
}

/* ====================================================================== */
/* 3. STYLE DU LOADER (CERCLE SVG/TEXTE) */
/* ====================================================================== */

.loader {
    display: inline-flex;
    width: 8rem;
    height: 8rem;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
    margin: 50px;
}

.curve {
    width: 180%;
    height: 180%;
    position: absolute;
    animation: rotate 8s linear infinite;
    fill: transparent;
}

.curve text {
    letter-spacing: 5px;
    text-transform: uppercase;
    font: 1.5em "Audiowide", sans-serif;
    fill: white;
    filter: drop-shadow(0 2px 8px black);
}

.blackhole {
    z-index: -1;
    display: flex;
    position: absolute;
    width: 8rem;
    height: 8rem;
    align-items: center;
    justify-content: center;
}

.blackhole-circle {
    z-index: 0;
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, black 25%, white 35%, white 100%);
    box-shadow: 0px 0px 2rem #c2babb;
    align-items: center;
    justify-content: center;
}

.blackhole-circle::after {
    z-index: 0;
    position: absolute;
    content: "";
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    background: radial-gradient(circle at center, black 35%, white 60%, white 100%);
    box-shadow: 0px 0px 5rem #c2babb;
    align-items: center;
    justify-content: center;
    filter: blur(4px);
    animation: pulseAnimation linear infinite 2s alternate-reverse;
}

.blackhole-circle::before {
    z-index: 1;
    content: "";
    display: flex;
    width: 4rem;
    height: 4rem;
    border: 2px solid #ffffff;
    box-shadow: 3px 3px 10px #c2babb, inset 0 0 1rem #ffffff;
    border-radius: 50%;
    top: 5rem;
    filter: blur(0.5px);
    animation: rotate linear infinite 3s;
}

.blackhole-disc {
    position: absolute;
    z-index: 0;
    display: flex;
    width: 5rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle at center, #ffffff 80%, #353535 90%, white 100%);
    filter: blur(1rem) brightness(130%);
    border: 1rem solid white;
    box-shadow: 0px 0px 3rem #d7c4be;
    transform: rotate3d(1, 1, 1, 220deg);
    animation: pulseAnimation2 linear infinite 2s alternate-reverse;
    justify-content: center;
    align-items: center;
}

.blackhole-disc::before {
    content: "";
    position: absolute;
    z-index: 0;
    display: flex;
    width: 5rem;
    height: 10rem;
    border-radius: 50%;
    background: radial-gradient(circle at center, #ffffff 80%, #353535 90%, white 100%);
    filter: blur(3rem);
    border: 1rem solid white;
    box-shadow: 0px 0px 6rem #d7c4be;
    animation: pulseAnimation linear infinite 2s alternate-reverse;
}

/* ====================================================================== */
/* 4. STYLE DES ICÔNES SOCIALES (EFFET NÉON) */
/* ====================================================================== */

.login-box .social-link i {
    font-size: 2em;
    margin: 0 10px;
    color: #c2babb; 
    transition: all 0.3s ease-in-out;
}

.login-box .social-link:hover i {
    text-shadow: 
        0 0 5px #c2babb,
        0 0 10px #c2babb,
        0 0 20px #c2babb;
        
    color: #fff;
    transform: scale(1.1);
}

/* ====================================================================== */
/* 5. KEYFRAMES D'ANIMATION */
/* ====================================================================== */

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

@keyframes pulseAnimation {
    0% { box-shadow: 0px 0px 3rem #c2babb; transform: scale(1); }
    100% { box-shadow: 0px 0px 5rem #c2babb; transform: scale(1.09); }
}

@keyframes pulseAnimation2 {
    0% { box-shadow: 0px 0px 3rem #c2babb; transform: rotate3d(1, 1, 1, 220deg) scale(1); }
    100% { box-shadow: 0px 0px 5rem #c2babb; transform: rotate3d(1, 1, 1, 220deg) scale(.95); }
}

@keyframes btn-anim1 {
    0% { left: -100%; }
    50%,100% { left: 100%; }
}