/* Animations et keyframes */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

/* Styles de base */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

/* Effet particules */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='2' fill='white' opacity='0.2'/%3E%3C/svg%3E") repeat;
    animation: confetti 20s linear infinite;
    pointer-events: none;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    color: white;
    margin: 0;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}





/* Container principal */
.main-content {


    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 80px 20px;
    box-sizing: border-box;

    
}

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

/* Formulaire */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
    box-sizing: border-box
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    box-sizing: border-box;
}

input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(52, 152, 219, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);  

    box-sizing: border-box;  /*  #gr1  TRES  IMPORTANT  pour eviter  le décalage  des  champs  */
    
}

input:focus {
    border-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}




/* Code de sécurité */
.security-code {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    padding: 1.5rem;
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 8px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);

    box-sizing: border-box;

}

.security-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.1) 10px,
        rgba(255,255,255,0.1) 20px
    );
}




/* Bouton */
button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
    background: linear-gradient(45deg, #2ecc71, #3498db);
}

button:active {
    transform: translateY(1px);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

/* Effets de survol */
.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Media Queries */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.5em;
    }
} 



