/* ==========================================================
   PROFIL.CSS — page profil uniquement
   ========================================================== */

.profil-section{

    margin-top:var(--header-height, 84px);

    min-height:80vh;

    padding:60px 20px;

    background:#f8fafc;

}

.profil-container{

    max-width:700px;

    margin:0 auto;

}

.profil-container h1{

    color:var(--primary);

    font-family:var(--font-heading);

    margin-bottom:8px;

}

.profil-intro{

    color:#64748B;

    margin-bottom:35px;

}

.profil-card{

    background:white;

    padding:40px;

    border-radius:30px;

    box-shadow:0 20px 50px rgba(0,0,0,.08);

}

.profil-avatar-zone{

    display:flex;

    align-items:center;

    gap:25px;

    margin-bottom:40px;

    padding-bottom:35px;

    border-bottom:1px solid #e2e8f0;

}

.profil-avatar{

    width:100px;

    height:100px;

    flex-shrink:0;

    border-radius:50%;

    background:var(--primary-light);

    display:flex;

    align-items:center;

    justify-content:center;

    overflow:hidden;

}

.profil-avatar i{

    font-size:45px;

    color:var(--primary);

}

.profil-avatar img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.btn-changer-photo{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:12px 22px;

    background:var(--primary-light);

    color:var(--primary);

    border-radius:12px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

.btn-changer-photo:hover{

    background:var(--primary);

    color:white;

}

.form-group{

    margin-bottom:22px;

}

.form-group label{

    display:block;

    margin-bottom:10px;

    font-weight:600;

}

.form-group input{

    width:100%;

    padding:16px;

    border:1px solid #e2e8f0;

    border-radius:14px;

    outline:none;

    font-size:15px;

    font-family:inherit;

    transition:border-color .2s, box-shadow .2s;

}

.form-group input:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(20,92,61,.12);

}

.form-hint{

    margin-top:8px;

    color:var(--gray-500);

    font-size:13px;

}

/* ==========================
    PRÉFÉRENCE DE NOTIFICATIONS
========================== */

.profil-preference{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:20px;

    margin-top:35px;

    padding-top:30px;

    border-top:1px solid #e2e8f0;

}

.profil-preference h3{

    color:var(--primary);

    font-size:16px;

    margin-bottom:6px;

}

.profil-preference p{

    color:var(--gray-500);

    font-size:13.5px;

}

.switch{

    position:relative;

    display:inline-block;

    width:48px;

    height:28px;

    flex-shrink:0;

}

.switch input{

    opacity:0;

    width:0;

    height:0;

}

.switch-slider{

    position:absolute;

    inset:0;

    background:#CBD5E1;

    border-radius:999px;

    cursor:pointer;

    transition:.25s;

}

.switch-slider::before{

    content:"";

    position:absolute;

    width:22px;

    height:22px;

    left:3px;

    top:3px;

    background:white;

    border-radius:50%;

    transition:.25s;

    box-shadow:0 2px 6px rgba(0,0,0,.2);

}

.switch input:checked + .switch-slider{

    background:var(--primary);

}

.switch input:checked + .switch-slider::before{

    transform:translateX(20px);

}

@media(max-width:600px){

    .profil-card{

        padding:28px 22px;

    }

    .profil-avatar-zone{

        flex-direction:column;

        text-align:center;

    }

    .profil-preference{

        flex-direction:column;

        align-items:flex-start;

    }

}
