*{
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI';
    box-sizing: border-box;
}
li{
    list-style-type: none;
    text-decoration: none;
}

body{
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 100%;
}

/* Menu de navigation */
nav{
    background-color: #01257D;
    display: flex;
    height: 90px;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    font-size: calc(0.7rem + 1.2vw);
}
h3{
    color: white;
}
.lg{
    text-decoration: none;
    color: white;
    transition: all .3s;
}
.lg:hover{
    color:#003;
}

span a{
    text-decoration: none;
    color:#00FFFF;
    font-size: calc(0.7rem + .9vw);
    padding: 5px;
    border-radius: 2px;
}
nav ul{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60%;
}
.anav{
    text-decoration: none;
    transition: all 0.3s;
    color: #00FFFF;
}
.anav:hover{
    color: white;
}

#icons{
    cursor: pointer;
    display: none;
    font-size: calc(.8rem + 1.2vw);
    color:#00FFFF;
    font-weight: bold;
}
.anav,
.anav:visited{
    text-decoration: none;
}
a:hover{
    color: white;
}

.comptes{
    display: flex;
    flex-direction: row;
    width:100px;
    align-items: center;
    justify-content: space-evenly;
}
.comptes a {
    text-decoration: none;
    cursor: pointer;
}
.comptes a:hover{
    transform: scale(.95);
}
.comptes a img{
    height: 30px;
}

/* Fin Menu de navigation */

.reveal{
    opacity: 0;
    transform: translateY(30px);
}

.reveal-visible{
    opacity: 1;
    transform: translateY(0);
    transition: 1s cubic-bezier(.5, 0, 0, 1);
}

.notif{
    display: flex;
    align-items: center;
    justify-content: center;
}
form{
    display: flex;
    flex-direction: column;
    width: 45%;
    row-gap: 6px;
    transition: all .3s;
}

#form_create{
    position: relative;
    top: 100px;
    row-gap: 7px;
    justify-self: start;
}

.formbas{
    top: 60px;
}
.formhaut{
    top: 0px;
}
form input, #genre{
    height: 35px;
    font-size: calc(0.6rem + .7vw);
    background-color: #000000b8;
    color: white;
    border: none;
    border-radius: 5px;
    /* Ajouts pour la sécurité - transitions subtiles */
    transition: border 0.2s ease, box-shadow 0.2s ease;
    padding: 0 12px;
}
form label{
    font-size: calc(0.6rem + .7vw);
    color: white;
}

form textarea{
    font-size: calc(0.7rem + .8vw);
    background-color: rgba(0, 0, 0, 0.722);
    color: white;
    border: none;
    border-radius: 5px;
    height: 175px;
}
form input[type='radio']{
    width: 40%;
    height: 20px;
}

form input[type='file']{
    height: 50px;
    padding: 10px;
}

form input[type='submit']{
    width: 40%;
    background-color:#01257D;
    color:#00FFFF;
    transition: all .3s;
    font-weight: bold;
    cursor: pointer;
}
form input[type='submit']:hover{
    transform: scale(.97);
    background-color: #01247dd8;
    cursor: pointer;
    position: relative;
}

/* États de soumission pour la sécurité */
form input[type='submit']:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

form.loading {
    pointer-events: none;
    opacity: 0.8;
}

.notif{
    position: relative;
    left: 30%;
    top:500px;
    padding: 10px;
    font-weight: bold;
    font-size: calc(0.5rem + .9vw);
    border-radius: 5px;
    background-color: white;
    text-align: center;
    width: 300px;
    opacity: 0;
    transition: all 0.8s;
    color: white;
}
.notif.validate{
    background-color: rgb(24, 190, 24);
    opacity: 1;
    top:20px;
}
.notif.error{
    background-color: red;
    opacity: 1;
    top:20px;
}

.lienForm{
    display: flex;
    width: 40%;
    height: 50px;
    align-items: center;
    justify-content: space-around;
    border-radius: 5px;
    background-color: #01257D;
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
}
.lienForm span{
    width: 50%;
    border-radius: 3px;
    padding: 3px;
    font-size: calc(0.5rem + .9vw);
    cursor: pointer;
    color: #00FFFF;
    text-align: center;
}

.parent{
    display: flex;
    width: 100%;
    height: 500px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    column-gap: 15px;
}

/* =================================================================
   AMÉLIORATIONS DE SÉCURITÉ (INTÉGRÉES DISCRÈTEMENT)
   ================================================================= */

/* Validation des champs - subtile pour ne pas casser le design */
form input.field-valid,
form textarea.field-valid,
form select.field-valid {
    border: 2px solid rgba(0, 255, 255, 0.5);
}

form input.field-invalid,
form textarea.field-invalid,
form select.field-invalid {
    border: 2px solid rgba(255, 68, 68, 0.5);
}

form input.field-warning,
form textarea.field-warning,
form select.field-warning {
    border: 2px solid rgba(255, 152, 0, 0.5);
}

/* Focus amélioré pour l'accessibilité */
form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border: 2px solid #00FFFF;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* Indicateur de force du mot de passe */
.password-strength {
    margin-top: 3px;
    font-size: calc(0.4rem + 0.3vw);
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.password-strength.weak {
    color: #ff6666;
}

.password-strength.medium {
    color: #ffaa00;
}

.password-strength.strong {
    color: #00FFFF;
}

/* Messages d'erreur inline */
.field-error {
    color: #ff6666;
    font-size: calc(0.4rem + 0.2vw);
    margin-top: 3px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.field-error.show {
    display: block;
    opacity: 1;
}

/* Indicateurs de sécurité discrets */
.security-badge {
    position: absolute;
    bottom: -25px;
    right: 0;
    background: rgba(1, 37, 125, 0.8);
    color: #00FFFF;
    font-size: calc(0.4rem + 0.2vw);
    padding: 2px 6px;
    border-radius: 3px;
    opacity: 0.7;
}

/* Champs obligatoires */
label span {
    color: #00FFFF;
    font-weight: bold;
    margin-left: 2px;
}

/* Animation shake pour erreurs (respecte votre style) */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* =================================================================
   RESPONSIVE DESIGN (VOTRE CODE ORIGINAL CONSERVÉ + AMÉLIORATIONS)
   ================================================================= */

@media (max-width:950px){
    footer{
        flex-direction: column;
        row-gap: 10px;
    }
    footer a img{
        height: 30px;
    }  
    footer div {
        padding: 10px;
    }
    #formes-items{
        width: 260px;
        height: 260px;
    }
}

@media (max-width:800px){
    #icons{
        display: block;
    }
    #icons::before{
         content: " \2630";  
    }
    .active #icons::before{
        content: "\2715";
    }
    nav ul{
        position: absolute;
        left: -100%;
        flex-direction: column;
        top: 8%;
        background-color:#01257D;
        width: 100%;
        height: 280px;
        text-align: center;
        justify-content: center;
        row-gap: 10px;
        transition: .8s;
        text-transform: uppercase;
        padding-bottom: 20px;
        padding-bottom: 20px;
        padding-top: 20px;
        z-index: 2;
    }
    nav li{
        padding: 10px 0;
    }
    nav .anav{
        font-size: calc(.8rem + 1.2vw);
    }
    nav.active ul{
        left: 0;
    }
    form{
        width: 70%;
    }
}

@media (max-width: 600px){
    .notif{
        left: 20%;
        width: 280px;
    }
    
    form{
        width: 80%;
    }
    form input{
        height: 35px;
        border-radius: 5px;
    }
    .lienForm{
        width: 60%;
        height: 50px;
    }
    
    /* Ajustements pour les fonctionnalités de sécurité */
    .security-badge {
        bottom: -20px;
        font-size: calc(0.35rem + 0.2vw);
        padding: 1px 4px;
    }
}

@media (max-width: 480px){
    .notif{
        left: 15%;
        top:200px;
        width: 250px;
    }
    
    form input[type='submit'] {
        width: 60%;
    }
}

@media (max-width: 350px){
    .notif{
        left: 10%;
        width: 220px;
    }
    .lienForm{
        width: 75%;
    }
    
    form input[type='submit'] {
        width: 80%;
    }
}

/* =================================================================
   AMÉLIORATIONS D'ACCESSIBILITÉ (DISCRÈTES)
   ================================================================= */

/* Amélioration du contraste en mode haut contraste */
@media (prefers-contrast: high) {
    form input,
    form textarea,
    form select {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .notif {
        border: 2px solid white;
    }
}

/* Réduction de mouvement si demandée */
@media (prefers-reduced-motion: reduce) {
    form input,
    form textarea,
    form select,
    form input[type='submit'],
    .notif {
        transition: none;
        animation: none;
    }
    
    .shake {
        animation: none;
        border: 2px solid #ff4444;
    }
}

/* Placeholder custom (harmonisé avec votre thème) */
form input::placeholder,
form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

form input::-webkit-input-placeholder,
form textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.5);
}

form input::-moz-placeholder,
form textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}
