@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

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



html {
    height: 100%;
    margin: 0;
    padding: 0;
 
}

body {
    background: url('../img/cielprince.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    font-family: 'Josefin Sans', sans-serif;
    margin: 0;
}



        .grand-titre {
            text-align: center;
            margin-bottom: 40px;
            margin-left: 233px;
            /* background-color: rgba(255, 255, 255, 0.1); */
            background-color: rgb(122, 97, 179);
            padding: 30px;
        
        }

        .grand-titre h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            color: white;
        }

        .grand-titre p {
            font-size: 1.2rem;
            opacity: 0.8;
           
        }




/* navigation */

.menu {
    position: fixed;
    top:0px;
    left: 0px;
    height: 100%;
    background-color: rgb(32, 32, 32);
    padding-top: 100px;
    
    
}

.menu img{
    margin-left: 25px;
    position: fixed;
    top: 20px;
}

.menu a{
   
    text-decoration: none;

}
.menu ul .but1 {
    list-style-type: none;
    margin-top: 50px;
    
    
}

.menu ul .but1 a{
    color: white;
    width: 100%;
    padding: 20px 40px;
    text-decoration: none;
    width: 50%;
    transition: 0.2s;
}



.menu ul .but1 a:hover{
    background-color: rgb(53, 53, 53);
}
/* déco */
.but2 a {
    
    text-decoration: none;
    padding: 10px 20px;
    
    background-color: #d94c4c;
    color: white;
    border-radius: 8px;
    transition: 0.2s;
}

.but2 a:hover {
    background-color: #b73838;
}

.but2 {
    position: absolute;
    top: 35px;
    right: 20px;
}

/* PROFIL */


  .profile {
           

            max-width: 800px;
           
     
        }

        .profile-header {
            display: flex;
            align-items: center;
            margin-bottom: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            padding: 30px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            
        }

        .logo {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: rgb(122, 97, 179);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            font-weight: 600;
            margin-right: 25px;
        }

        .nom h2 {
            font-size: 28px;
            margin-bottom: 5px;
        }

        .pseudo {
            opacity: 0.7;
            font-size: 1.1rem;
        }

        .profile-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .section {
            background-color: rgba(17, 17, 17, 0.7);
            padding: 25px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }

        .section h3 {
            color: rgb(122, 97, 179);
            font-size: 1.3rem;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(122, 97, 179, 0.3);
            padding-bottom: 10px;
        }

        .info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .info label {
            font-weight: 600;
            color: rgb(122, 97, 179);
        }

        .info p {
            opacity: 0.9;
        }

/* Disposition en deux colonnes */
.profil-section {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin-left: 250px; /* Pour éviter le menu */
    padding: 20px;
}

.profile-info{
    display: block;
}

.profil-section .profile {
    flex: 1;
}

/* Styles pour les champs de formulaire */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #a17df5;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a17df5;
}

.btn-modifier {
    width: 100%;
    background: linear-gradient(135deg, #a17df5, #8b5fbf);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

.btn-modifier:hover {
    transform: translateY(-1px);
}

/* Messages */
.message-alert {
    padding: 10px;
    margin: 20px auto 20px 270px; /* top right bottom left */
    max-width: 800px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.message-alert.success {
    background: rgba(76, 175, 80, 0.2);
    color: rgb(39, 173, 39);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.message-alert.error {
    background: rgba(244, 67, 54, 0.2);
    color: rgb(216, 52, 40);
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .profil-wrapper {
        flex-direction: column;
    }
}