/*====================================================
KINGDOM MARKET
PARAMETRE.CSS
PAGE PARAMETRES COMPTE
====================================================*/


/*==============================
RESET
==============================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}


body{
    background:#eaeded;
    color:#111;
}

@media(max-width:900px){
    body{
        padding-bottom:78px;
    }
}


/*==============================
HEADER (identique aux autres pages)
==============================*/


header{
    background:#131921;
    color:white;
    display:flex;
    justify-content:flex-start;
    align-items:center;
    padding:12px 25px;
    position:sticky;
    top:0;
    z-index:1000;
    flex-wrap:wrap;
    gap:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.25);
}


.logo-container{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
    flex-shrink:1;
}


.logo{
    width:52px;
    height:52px;
    object-fit:cover;
    border-radius:10px;
    background:white;
    padding:4px;
    flex-shrink:0;
}


.logo-container h1{
    font-size:22px;
    color:white;
    letter-spacing:.3px;
    white-space:nowrap;
}


.header-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
    margin-left:auto;
    overflow-x:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
}

.header-actions::-webkit-scrollbar{
    display:none;
}




/*==============================
ICONES HEADER
==============================*/


.icon-btn{
    position:relative;
    width:42px;
    height:42px;
    border-radius:50%;
    border:none;
    background:#232f3e;
    color:white;
    font-size:19px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:.2s;
    flex-shrink:0;
}


.icon-btn i{
    line-height:1;
    pointer-events:none;
}


/* Centrage parfait de l'icône (Font Awesome <i>, image ou svg) dans les boutons ronds
   connexion / déconnexion / menu / panier.
   Centrage par position absolue : reste correct quel que soit le display
   appliqué en JS au bouton lui-même (flex, inline-block, none...), donc
   ne casse jamais l'affichage/masquage connexion <-> déconnexion. */
.icon-btn,
.dropbtn,
#logoutBtn{
    position:relative;
    padding:0;
}

.icon-btn i,
.dropbtn i,
#logoutBtn i{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    line-height:1;
    margin:0;
    padding:0;
}

.icon-btn img,
.dropbtn img,
#logoutBtn img,
.icon-btn svg,
.dropbtn svg,
#logoutBtn svg{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:55%;
    height:55%;
    object-fit:contain;
    margin:0;
    pointer-events:none;
}



.icon-btn:hover{
    background:#febd69;
    color:#131921;
}


#logoutBtn{
    background:#febd69;
    color:#131921;
}


#logoutBtn:hover{
    background:#ff9900;
}


#cartCount{
    position:absolute;
    top:-4px;
    right:-4px;
    background:#ff9900;
    color:#131921;
    min-width:19px;
    height:19px;
    padding:0 3px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:bold;
    border:2px solid #131921;
}


/*==============================
MENU
==============================*/


.dropbtn{
    background:#232f3e;
    color:white;
    border:none;
    width:42px;
    height:42px;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
}


.dropdown-content{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:white;
    padding-top:90px;
    z-index:9999;
}


.dropdown-content.show{
    display:block;
}


.dropdown-content a{
    display:block;
    width:90%;
    margin:15px auto;
    padding:15px;
    background:#eaeded;
    color:#111;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
}


.dropdown-content a:hover{
    background:#131921;
    color:white;
}


.close-menu{
    position:absolute;
    right:25px;
    top:20px;
    font-size:35px;
    color:#111;
    cursor:pointer;
}


@media(min-width:901px){

.close-menu{
    display:none;
}

.dropdown{
    position:static;
}

.dropdown-content{
    display:flex !important;
    position:static;
    width:auto;
    height:auto;
    background:none;
    padding:0;
    align-items:center;
    gap:6px;
}

.dropdown-content a{
    width:auto;
    margin:0;
    padding:9px 14px;
    background:none;
    color:#d8dbe0;
    font-weight:600;
    font-size:14.5px;
    border-radius:20px;
}

.dropdown-content a:hover{
    background:#232f3e;
    color:#febd69;
}

.dropbtn{
    display:none;
}

}


/*==============================
TITRE PAGE
==============================*/


.page-header{
    width:95%;
    max-width:900px;
    margin:20px auto 0;
    background:white;
    padding:18px 20px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
}


.page-header h2{
    font-size:24px;
    color:#131921;
    border-left:5px solid #febd69;
    padding-left:12px;
}


/*==============================
CARTE PROFIL
==============================*/


.profile-card{
    width:95%;
    max-width:900px;
    margin:16px auto;
    background:linear-gradient(135deg,#131921,#232f3e);
    border-radius:14px;
    padding:22px 24px;
    display:flex;
    align-items:center;
    gap:18px;
    box-shadow:0 3px 12px rgba(0,0,0,.15);
}


.profile-avatar{
    width:58px;
    height:58px;
    min-width:58px;
    border-radius:50%;
    background:#febd69;
    color:#131921;
    font-size:24px;
    font-weight:bold;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 8px rgba(0,0,0,.25);
}


.profile-info h3{
    color:white;
    font-size:19px;
    margin-bottom:6px;
}


.role-badge{
    display:inline-block;
    background:#25D366;
    color:white;
    font-size:11.5px;
    font-weight:bold;
    padding:4px 12px;
    border-radius:20px;
    letter-spacing:.3px;
    text-transform:uppercase;
}


.role-badge.vendeur{
    background:#febd69;
    color:#131921;
}


/*==============================
BOITES PARAMETRES
==============================*/


.box{
    width:95%;
    max-width:900px;
    margin:20px auto;
    background:white;
    padding:26px;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(0,0,0,.10);
}


.box h3{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:19px;
    color:#131921;
    margin-bottom:20px;
    padding-bottom:12px;
    border-bottom:2px solid #f0f0f0;
}


.box h3 i{
    color:#febd69;
}


/*==============================
FORMULAIRE
==============================*/


form{
    display:flex;
    flex-direction:column;
    gap:6px;
}


label{
    font-weight:600;
    margin-top:12px;
    font-size:13.5px;
    color:#555;
}


input{
    width:100%;
    height:46px;
    padding:0 15px;
    border:1px solid #ddd;
    border-radius:8px;
    outline:none;
    font-size:15px;
}


input:focus{
    border-color:#febd69;
    box-shadow:0 0 0 3px rgba(254,189,105,.25);
}


input[readonly]{
    background:#f6f7f7;
    color:#555;
    cursor:not-allowed;
}


/*==============================
BOUTONS
==============================*/


button{
    border:none;
    cursor:pointer;
    font-weight:bold;
    border-radius:8px;
    transition:.2s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}


form button{
    margin-top:22px;
    height:48px;
    background:#febd69;
    font-size:15.5px;
    color:#131921;
}


form button:hover{
    background:#ff9900;
}


/*==============================
ZONE SENSIBLE / DANGER
==============================*/


.danger-box{
    border:1px solid #f6c6ce;
    background:#fff8f8;
}


.danger-box h3{
    color:#cc0c39;
    border-bottom-color:#f6c6ce;
}


.danger-box h3 i{
    color:#cc0c39;
}


.danger-text{
    color:#7a2030;
    font-size:14px;
    margin-bottom:16px;
}


#deleteAccountBtn{
    width:100%;
    height:46px;
    background:#cc0c39;
    color:white;
    font-size:15px;
}


#deleteAccountBtn:hover{
    background:#99001f;
}


/*==============================
SESSION
==============================*/


.logout-btn{
    width:100%;
    height:46px;
    background:#131921;
    color:white;
    font-size:15px;
}


.logout-btn:hover{
    background:#232f3e;
}


/*==============================
WHATSAPP
==============================*/


.whatsapp-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#25D366;
    color:white;
    text-align:center;
    padding:15px;
    border-radius:8px;
    text-decoration:none;
    font-weight:bold;
    font-size:15px;
}


.whatsapp-btn:hover{
    background:#1da851;
}


/*==============================
FOOTER
==============================*/


footer{
    margin-top:50px;
    background:#131921;
    color:white;
    text-align:center;
    padding:30px;
}


/*==============================
BARRE DE NAVIGATION BASSE (mobile)
==============================*/


.bottom-nav{
    display:none;
}


@media(max-width:900px){

.bottom-nav{
    display:flex;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#131921;
    box-shadow:0 -3px 12px rgba(0,0,0,.25);
    z-index:1500;
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
}


.bottom-nav a{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    color:#9aa1ab;
    text-decoration:none;
    font-size:10.5px;
    font-weight:bold;
    padding:6px 2px;
    border-radius:10px;
}


.bottom-nav a .bn-icon{
    font-size:18px;
}


.bottom-nav a.active{
    color:#febd69;
}

}


/*==============================
TABLETTE
==============================*/


@media(max-width:900px){

header{
    padding:12px 16px;
}

.logo-container h1{
    font-size:19px;
}

.box{
    width:92%;
}

}


/*==============================
MOBILE
==============================*/


@media(max-width:600px){

.logo{
    width:44px;
    height:44px;
}

.logo-container h1{
    font-size:17px;
}

.icon-btn,
.dropbtn{
    width:38px;
    height:38px;
    font-size:17px;
}

.page-header h2{
    font-size:20px;
}

.profile-card{
    flex-direction:column;
    text-align:center;
}

.box{
    padding:18px;
}

.box h3{
    font-size:17px;
}

}


/*==============================
PETIT MOBILE
==============================*/


@media(max-width:400px){

.box{
    padding:15px;
}

}


/*===========================
Bouton Help Kingdom Market
===========================*/

.help-button{
    position:fixed;
    bottom:25px;
    left:25px;
    width:65px;
    height:65px;
    background:linear-gradient(135deg,#180117,#ffb300);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    font-size:30px;
    text-decoration:none;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
    z-index:1400;
    transition:.3s;
}

.help-button:hover{
    transform:scale(1.1);
    box-shadow:0 15px 35px rgba(255,152,0,.5);
}

.help-button::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    border-radius:50%;
    background:rgba(255,152,0,.4);
    animation:pulse 2s infinite;
}

.help-button i{
    position:relative;
    z-index:2;
}

@keyframes pulse{
    0%{ transform:scale(1); opacity:.8; }
    70%{ transform:scale(1.5); opacity:0; }
    100%{ transform:scale(1.5); opacity:0; }
}

@media(max-width:768px){
.help-button{
    width:58px;
    height:58px;
    font-size:26px;
    bottom:100px;
    left:20px;
}
}

/* ===================================================
   HEADER — ADAPTATION PETITS ÉCRANS (Android / iPhone compacts)
=================================================== */
@media(max-width:420px){

header{
    padding:10px 12px;
    gap:6px;
}

.logo{
    width:38px;
    height:38px;
}

.logo-container{
    gap:8px;
}

.logo-container h1{
    font-size:15px;
}

.icon-btn,
.dropbtn{
    width:36px;
    height:36px;
    font-size:16px;
}

.header-actions{
    gap:6px;
}

}
