/*************************
******* ADD FONT  ******
**************************/

@font-face {
    font-family: 'bareonabareona';
    src: url('../fonts/bareona-webfont.woff2') format('woff2'),
         url('../fonts/bareona-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

/*************************
*******CSS DE BASE ******
**************************/

/* Memes variables de theme que cook/ (cookie pandawaTheme, lu par le petit
   script inline juste apres <body> sur login.php/loginForgot.php/
   loginCreate.php/loginReset.php - cf ces fichiers). Valeurs par defaut
   (sombre) reprises telles quelles pour ne rien changer a l'existant. */
:root{
    --accent: #CCAE1D;
    --accent-hover: #b89818;
    --bg-page: #141a22;
    --bg-card: #111;
    --text-primary: #fff;
    --text-secondary: #efefef;
    --surface-soft: rgba(255,255,255,0.08);
    --surface-strong: rgba(255,255,255,0.1);
    --border-soft: rgba(255,255,255,0.15);
    --border-strong: rgba(255,255,255,0.3);
    --text-muted: #b5b5b5;
}
:root:has(body.light-mode){
    --accent: #809C86;
    --accent-hover: #6C8A73;
    --bg-page: #f9fafb;
    --bg-card: #ffffff;
    --text-primary: #536357;
    --text-secondary: #5F7764;
    --surface-soft: rgba(0,0,0,0.04);
    --surface-strong: rgba(0,0,0,0.06);
    --border-soft: rgba(0,0,0,0.15);
    --border-strong: rgba(0,0,0,0.25);
    --text-muted: #767676;
}

html, body{
	background-color: var(--bg-page);
}
html{
	font-family: 'Arimo', sans-serif;
}
h1{
	font-family: 'Finger Paint', cursive;
}
.row{padding:0 !important; margin: 0 !important;}



/**********************************/
/******* CSS HEADER SETTINGS ******/
/**********************************/

    .img_header{
        background-image: url("../img/foodiesfeed_V2.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        height: 100vh;
    }
    .img_header, .picto_footer{
        max-width: 100%;
    }
    #espace_header{
        height: 80px;
        transition: all 1s ease; 
        background-color: rgba(0,0,0,0.5);
        display: block;
        transition: all .2s;
    }
    #espace_header h1{
        position: absolute;
        padding: 17px 0px;
        left: 5%;
        margin: 0;
    }
    #espace_header.reduce{
        height: 0px;
        transition: all 1s ease; 
    }
    .info_connect.reduce{
        display: none;
    }
    #nav_header{
        background-color: #000000;
        padding: 25px;
        box-shadow: 0px 0px 30px 2px #000000;
        font-family: 'bareonabareona';
        display: block;
        transition: all .2s;
    }
    #headerNav{
        color: #ffffff;
        width: 100vw;
        text-align: center;
        position: fixed !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030 !important;
    }
    #headerNav ul{
        padding: 0px;
        padding-top: 20px;
        font-size: 25px;
    }
    #headerNav li{
        display: inline;
    }
    #headerNav a{
        color: #fff;
        text-decoration: none;
        transition: all .2s;
    }
    #headerNav a:hover{
        color: #646262;
        text-decoration: none;
        transition: all .2s;
    }
    .nav_picto{
        width: 400px;
        height: 81px;
        transition:all .5s ease;
    }
    .nav_picto.reduce{
        width: 200px;
        height: 40px;
        transition:all .5s ease;
    }
    #MobileNavheader{
        display: none;
    }

    /******** CSS HEADER - BLOC DECO ********/

        #bloc_deconnexion {
            padding-top: 15px;
            padding-bottom: 15px;
            text-align: right;
            position: absolute;
            right: 5%;
            font-family: 'Dosis', sans-serif;
            display: block;
        }
        #bloc_deconnexion img{
            width: 40px;
            height: 40px;
            border-radius: 100%;
            margin-right: 10px;
        }
        #bloc_deconnexion i{
            color: #000;
        }
        #bloc_deconnexion span{
            text-align: center;
            margin-top: 15px;
            margin-bottom: 15px;
            font-size: 20px;
        }
        #bloc_deconnexion .dropdown-menu.show {
            top: 20px !important;
            padding: 15px 15px;
        }
        #header #bloc_deconnexion li > a.dropdown-item {
            color: #000;
            font-size: 18px;
        }
        #bloc_deconnexion .btn-secondary, #bloc_deconnexion .btn-secondary:hover,
        #bloc_deconnexion .btn-secondary:focus{
            color: #fff;
            background-color: transparent;
            border: none;
            box-shadow: none;
        }
        .dropdown-item:focus, .dropdown-item:hover, .dropdown-item:active {
            color: #1e2125 !important;
            background-color: #f8f9fa !important;
        }



/**************************/
/******* CSS LOGIN ********/
/**************************/

    #visuel_pbamboo {
        padding: 0;
    }
    #visuel_pbamboo img{
        height: 100vh;
    }
    
    #window-oublie{
        margin-top: -30px;
    }
    #window-login .texteAide,
    #window-oublie .texteAide{
        color: var(--text-secondary);
        font-size: 14px;
        text-align: center;
        margin-bottom: 15px;
    }
    #window-oublie #btnForgotPassword:disabled,
    #window-oublie-reset #btnResetPassword:disabled{
        opacity: .7;
        cursor: default;
    }

    /* CHAMPS EN PILULE, comme .champPill sur le reste du site (au lieu du
       style "soulign" par defaut de .loginUser sur loginCreate.php). */
        #window-login input.form-control,
        #window-oublie input.form-control,
        #window-oublie-reset input.form-control,
        #window-create input.form-control{
            background-color: var(--surface-soft) !important;
            border: 1px solid var(--border-soft) !important;
            border-radius: 30px !important;
            padding: 12px 20px;
            margin-bottom: 20px;
        }
        #window-oublie-reset .champIcone{
            position: relative;
        }
        #window-oublie-reset .champIcone i{
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--accent);
            z-index: 1;
        }
        #window-oublie-reset .champIcone input.form-control{
            padding-left: 42px;
        }

    /* BOUTONS VALIDER : meme style "pilule contour" que le bouton CONNEXION
       (.loginUser .btn) sur login.php, plutot qu'un remplissage plein.
       width:100% + text-align:center pour un texte bien centre dans le
       bouton (le mix .btn + .form-control pouvait laisser un rendu etroit
       et mal aligne selon le navigateur).
       height:auto + line-height:normal : le bouton garde la classe Bootstrap
       .form-control qui impose une height fixe (calc(...)) plus petite que
       padding + line-height reels, ce qui ecrasait le texte vers le haut
       au lieu de le centrer verticalement. */
        #window-login .btn.btn-info,
        #window-oublie .btn.btn-info,
        #window-oublie-reset .btn.btn-info,
        #window-create .btn.btn-info{
            display: block;
            width: 100%;
            height: auto;
            line-height: normal;
            background-color: transparent;
            border: 1px solid var(--accent);
            border-radius: 30px;
            color: var(--accent);
            font-weight: bold;
            padding: 12px 0;
            text-align: center;
        }
        /* au survol, meme style qu'au repos (comme CONNEXION) */
        #window-login .btn.btn-info:hover,
        #window-oublie .btn.btn-info:hover,
        #window-oublie-reset .btn.btn-info:hover,
        #window-create .btn.btn-info:hover{
            background-color: transparent;
            border-color: var(--accent);
            color: var(--accent);
        }

    /* POPUP RESULTAT (mot de passe oublie ET modification du mot de passe),
       meme carte que le reste du site.
       Centrage en position:fixed + left:50%/translateX, plutot que
       margin:auto, pour rester centre sur l'ecran visible quel que soit le
       contenu de la page (plutot que sur un document qui deborderait). */
        #modalForgotResult .modal-dialog,
        #modalResetResult .modal-dialog {
            position: fixed;
            top: 5rem;
            left: 50%;
            transform: translateX(-50%);
            margin: 0;
            width: 80%;
            max-width: 340px;
        }
        #modalForgotResult .modal-content,
        #modalResetResult .modal-content{
            border-radius: 12px;
            background-color: var(--bg-card);
            color: var(--text-primary);
            padding: 25px 20px;
            text-align: center;
        }
        #modalForgotResult #modalForgotResultIcon,
        #modalResetResult #modalResetResultIcon{
            font-size: 32px;
            margin-bottom: 15px;
            display: block;
        }
        #modalForgotResult .btn,
        #modalResetResult .btn{
            display: block;
            width: 100%;
            margin-top: 15px;
            background-color: transparent;
            border: 1px solid var(--accent);
            border-radius: 30px;
            color: var(--accent);
            font-weight: bold;
            padding: 12px 0;
            text-align: center;
        }
        #modalForgotResult .btn:hover,
        #modalResetResult .btn:hover{
            background-color: transparent;
            border-color: var(--accent);
            color: var(--accent);
        }
    #window-login, #window-oublie, #window-create, #window-oublie-reset{
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }
    .loginUser{
        background-image: linear-gradient(rgba(8,12,17,0.78), rgba(8,12,17,0.78)), url('../img/BG_mobile.jpg');
        background-size: cover;
        background-position: center top;
        min-height: 100vh;
        justify-content: center;
        align-items: center;
        /* !important necessaire : .row{padding:0 !important} (regle globale
           plus haut dans ce fichier) ecraserait sinon ce padding, laissant
           les champs et le bouton colles aux bords de l'ecran. */
        padding: 60px 24px !important;
        box-sizing: border-box;
        /* position:relative : sert de repere pour #retourIcon (position:absolute). */
        position: relative;
        overflow-x: hidden;
    }
    /* Image dédiée desktop : composition large, l'image mobile ne rend pas bien étirée */
    @media (min-width: 768px) {
        .loginUser{
            background-image: linear-gradient(rgba(8,12,17,0.55), rgba(8,12,17,0.55)), url('../img/BG_desktop.jpg');
            background-position: center center;
        }
    }
    /* MODE CLAIR : meme photo, mais voile clair au lieu du voile sombre
       (comme le hero de la page d'accueil sur cook/) - le texte passe donc
       en fonce juste en dessous. */
    :root:has(body.light-mode) .loginUser{
        background-image: linear-gradient(rgba(249,250,251,0.88), rgba(249,250,251,0.88)), url('../img/BG_mobile.jpg');
    }
    @media (min-width: 768px) {
        :root:has(body.light-mode) .loginUser{
            background-image: linear-gradient(rgba(249,250,251,0.82), rgba(249,250,251,0.82)), url('../img/BG_desktop.jpg');
        }
    }
    .loginUser h1{
    	font-size: 40px;
    	text-align: center;
    	margin-bottom: 40px;
        color: var(--text-primary);
        line-height: 1.2;
    }
    .loginUser p{
    	text-align: center;
    }
    .loginUser a{
    	color: #999999;
        text-decoration: none;
        font-size: 12px;
        transition: all 0.5s;
    }
    :root:has(body.light-mode) .loginUser a{
        color: var(--text-muted);
    }
    .loginUser #retourIcon{
        position: absolute;
        top: 20px;
        left: 30px;
    }
    /* EN-TETE commun (loginEntete.php) : meme barre que la page d'accueil
       publique (landing/landing.css) - nom du site a gauche, liens a droite.
       Les selecteurs .loginUser a... sont volontairement repris pour passer
       devant la regle generale des liens (gris, 12px). */
    .enteteSite{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        box-sizing: border-box;
        max-width: 1080px;
        margin: 0 auto;
        padding: 18px 20px;
    }
    .loginUser .enteteSite a.enteteMarque{
        font-family: 'Finger Paint', cursive;
        font-size: 22px;
        color: #fff;
    }
    .enteteMarqueCourt{
        display: none;
    }
    .enteteLiens{
        display: flex;
        align-items: center;
        gap: 22px;
    }
    .loginUser .enteteLiens a{
        font-size: 15px;
        color: #f4ece2;
    }
    .loginUser .enteteLiens a:hover{
        color: var(--accent);
    }
    .loginUser .enteteLiens a.enteteBouton{
        padding: 8px 18px;
        border: 1px solid var(--accent);
        border-radius: 999px;
        font-size: 14px;
        color: var(--accent);
    }
    .loginUser .enteteLiens a.enteteBouton:hover{
        background-color: var(--accent);
        color: #17120a;
    }
    /* Mode clair : la barre est sur un fond clair */
    :root:has(body.light-mode) .loginUser .enteteSite a.enteteMarque,
    :root:has(body.light-mode) .loginUser .enteteLiens a{
        color: var(--text-primary);
    }
    :root:has(body.light-mode) .loginUser .enteteLiens a.enteteBouton{
        color: var(--accent);
    }
    :root:has(body.light-mode) .loginUser .enteteLiens a.enteteBouton:hover{
        color: #fff;
    }
    @media (max-width: 767px){
        .enteteLiens a:not(.enteteBouton){
            display: none;
        }
        .enteteMarqueLong{
            display: none;
        }
        .enteteMarqueCourt{
            display: inline;
        }
    }
    .loginUser a:hover{
    	color: var(--text-primary);
        transition: all 0.5s;
    }
    .loginUser input.form-control {
        background-color: transparent;
    	border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--text-primary);
        color: var(--text-primary);
        margin-bottom: 30px;;
    }

    .loginUser .btn {
        background-color: transparent;
        border: 1px solid var(--accent);
        border-radius: 30px;
        color: var(--accent);
        font-weight: bold;
        margin-top: 20px;
    }
    /* Bootstrap donne a .btn un survol par defaut (color:#212529) des qu'il
       n'y a pas de variante (.btn-info etc.) : on fige le meme style qu'au
       repos pour que rien ne change au survol. */
    .loginUser .btn:hover,
    .loginUser .btn:focus{
        background-color: transparent;
        border-color: var(--accent);
        color: var(--accent);
        box-shadow: none;
    }

    .loginUser input.form-control::placeholder {
        color: var(--text-primary);
    }
    .loginUser #window-oublie-reset form {
        border-bottom: none;
    }
    .loginUser .form-control:focus {
        border-color: var(--accent);
    }
    .loginUser .fa-key, .loginUser .fa-sign-in-alt,
    .loginUser .fa-chevron-right, .loginUser .fa-at,
    .loginUser .fa-camera-retro{
    	color: var(--accent);
    }
    .loginUser .fa-chevron-right{
        padding-top: 20px;
    	padding-right: 10px;
    }
    .loginUser .form-control:focus {
        /* texte tape en couleur primaire du theme, meme au focus (Bootstrap
           remet #495057, gris fonce illisible sur fond sombre, par defaut
           au focus) */
        color: var(--text-primary);
        box-shadow: inherit;
    }
    .StatusMsg{
    	color: #E10A0A;
    }
    /* Message de SUCCES (email envoye, modification OK...) : vert, pour ne
       pas etre pris pour une erreur (rouge par defaut). Classe ajoutee par
       les pages quand $_SESSION['StatusMsgOK'] correspond au message. */
    .StatusMsg.StatusMsgOK{
        color: #4CAF50;
    }
    :root:has(body.light-mode) .StatusMsg.StatusMsgOK{
        color: #2E7D32;
    }
    .img-login table{
        margin-left: auto;
        margin-right: auto;
    }
    .img-login p{
    	font-family: 'Finger Paint', cursive;
    	margin: 0;
    	padding: 0px 20px;
    }
    .img-login img{
    	width: 75px;
    }

    /* AFFICHER ET MASQUER LE MDP */

        .blocCheckEye{
            z-index: 20;
        }
        .blocCheckEye input[type="checkbox"]{
          display: none;
        }
        .blocCheckEye label {
          position: relative;
          padding-bottom: 15px;
        }
        .blocCheckEye span::before,
        .blocCheckEye span::after {
          content: '';
          position: absolute;
          top: 0;
          bottom: 0;
          margin: auto;
        }
        .blocCheckEye span.checkbox::before {
          width: 27px;
          height: 27px;
          color: var(--accent);
          content: '\f06e';
          font-family: 'Font Awesome 5 Free';
          left: -31px;
          top: 20px;
          transition: border-color .2s;
        }
        .blocCheckEye span.checkbox:hover::before {
          color: var(--accent);
        }
        .blocCheckEye span.checkbox::after {
          width: 27px;
          height: 27px;
          left: -31px;
          top: 20px;
          color: transparent;
          transition: color .2s;
        }
        input[type="checkbox"]:checked + label span.checkbox::after {
          color: var(--accent);
          content: '\f070';
          font-family: 'Font Awesome 5 Free';
        }
        input[type="checkbox"]:checked + label span.checkbox::before {
          display: none;
        }

    /* RESPONSIVE - petits écrans / paysage */
        @media (max-width: 400px), (max-height: 480px) {
            .loginUser{
                padding: 30px 24px !important;
            }
            .loginUser h1{
                font-size: 30px;
                margin-bottom: 24px;
            }
            .loginUser input.form-control{
                margin-bottom: 20px;
            }
        }



/*****************************/
/******* CSS CREATE **********/
/*****************************/

    .loginUser #window-create .btn-success:focus {
        color: #ffffff;
        background-color: #28A645;
    }

    /* AVATAR */
    .fake-field {
        display: none;
    }

	/* AVATAR */
    	#myModal_avatar h4,
    	#myModal_avatar button.btn.btn-info{
    		margin-left: 6px;
            margin-bottom: 30px;
            text-align: left;
            color: var(--text-primary);
    	}
    	.input-group.choixAvatar{
    		margin-bottom: 10px !important; 
    	}
        .choixAvatarSelect img{
            position: relative;
            border-radius: 100%;
            margin-left: -50px;
            left: 50%;
            height: 100px;     
        }
        #myModal_avatar .modal-dialog {
            margin: 5rem auto;
        }
        #myModal_avatar .modal-body {
            text-align: center;
        }
        #myModal_avatar .modal-close{
            position: absolute;
            top: 10px;
            right: 10px;
        }
       /* Carte themee (fond + coins arrondis), dans la meme DA que le
          reste du site, au lieu de l'ancienne bordure laterale doree brute.
          Beneficie aussi a la modale avatar de "Mon compte" (meme id,
          structure de fichier different mais partage ce style). */
       #myModal_avatar .modal-content{
            background-color: var(--bg-card);
            border: none;
            border-radius: 12px;
            color: var(--text-primary);
            padding-bottom: 10px;
            padding-top: 10px;
        }
        #myModal_avatar .modal-body h5{
            font-family: 'Finger Paint', cursive;
            font-size: 20px;
            color: var(--text-primary);
            margin-bottom: 20px;
        }
        /* Grille des avatars (page creation de compte uniquement - la page
           "Mon compte" garde son flux d'images simple, non impacte). */
        #myModal_avatar .grilleAvatars{
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
        }
        #myModal_avatar .modal-close i{
            font-size: 35px;
            color: #CB161D;
            cursor: pointer;
        }
        /* Avatars ronds a contour dore au survol/selection, au lieu du gris
           puis du bleu Bootstrap ("info") d'origine. */
    	#myModal_avatar img{
    		position: inherit;
    		left: inherit;
    		width: 90px;
    		height: 90px;
    		object-fit: cover;
    		border: 2px solid var(--border-soft);
            border-radius: 100%;
    		transition: all 0.2s;
    		margin: 6px;
    		cursor: pointer;
    	}
        #myModal_avatar img:hover{
            border-color: var(--accent);
        }
    	#myModal_avatar img.select_avatar{
    		border: 3px solid var(--accent);
    		transition: all 0.2s;
    	}
        #myModal_avatar input[type=file]{
            margin-top: 30px;
        }
        /* Bouton "Fermer" en pilule doree a contour, meme mecanique que
           #modalForgotResult/#modalResetResult .btn plus haut. */
        #myModal_avatar .modal-footer{
            border-top: 1px solid var(--border-soft);
            justify-content: center;
            padding: 15px 20px;
        }
        #myModal_avatar .btnModalAnnuler{
            background-color: transparent;
            border: 1px solid var(--accent);
            border-radius: 30px;
            color: var(--accent);
            font-weight: bold;
            padding: 10px 30px;
            transition: all .2s;
        }
        #myModal_avatar .btnModalAnnuler:hover{
            background-color: var(--accent);
            color: #000;
        }
    	.verificationPassword{
    		margin-left: 45px;
            color: var(--text-primary);
    	}
        .settings_securite .verificationPassword{
            margin-left: 0px;
        }
    	.verificationPassword .fa-times{
    		color: #E10A0A;
    	}
    	.verificationPassword p{
    		margin: 0;
    		text-align: left;
    	}
    	.verificationPassword p:last-child{
    		margin-bottom: 10px;
    	}

/*********************************/
/******* CSS LOGIN SETTINGS ******/
/*********************************/

    #BGsettings #window-settings,
    #BGsettings #window-settings-message{
        border-radius: 6px;
        background-color: #FFF;
        box-shadow: 0 2px 4px 0 rgba(0,0,0,0.05);
        padding: 30px 20px;
        box-sizing: border-box;
    }
    #BGsettings #window-settings .settings_input.avatar_input input{
        width: 50px;
        height: 50px;
        border-radius: 100%;
        background-size: cover;
        background-repeat: no-repeat;
        border: none;
        transition: all .3s;
        border: 0px solid rgba(0,96,117,0);
    }
    #BGsettings #window-settings .settings_input.avatar_input.toggle_modif input{
        border: 2px solid rgba(0,96,117,1);
        transition: all .5s;
    }
    #BGsettings #window-settings .settings_input.avatar_input{
        border: none;
    }
    #BGsettings #window-settings .settings_input.avatar_input.toggle_modif{
        border: none;
    }
    #BGsettings #window-settings .settings_input,
    #BGsettings #window-settings-message .settings_input {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        height: 36px;
        max-width: none;
        margin-top: 0.5em;
        margin-bottom: 30px;
        padding: 0;
        color: transparent;
        border: 1px solid transparent;
        border-bottom: 1px solid #efefef;
        -webkit-transition: border-color 0.2s ease-in,padding 0.2s ease-in;
        transition: border-color 0.2s ease-in,padding 0.2s ease-in;
    }
    #BGsettings #window-settings-message .settings_input {
        height: 200px;
    }
    #BGsettings #window-settings .settings_input input,
    #BGsettings #window-settings-message .settings_input textarea{
        width: 100%;
        height: 100%;
        margin-top: 0;
        font-size: 1em;
        font-weight: normal;
        color: #222;
        text-align: left;
        border: none;
        outline: none;
        background-color: transparent;
        resize: none;
    }
    #BGsettings #window-settings .settings_input.toggle_modif {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        height: 36px;
        max-width: none;
        margin-top: 0.5em;
        margin-bottom: 30px;
        padding: 0;
        padding-left: 10px;
        color: transparent;
        border: 1px solid #efefef;
        -webkit-transition: border-color 0.2s ease-in,padding 0.2s ease-in;
        transition: border-color 0.2s ease-in,padding 0.2s ease-in;
    }
    #BGsettings #window-settings .btn_modif_compte{
        position: relative;
        background-color: transparent;
        border: 1px solid rgba(34,34,34,.5);
        font-weight: normal;
        color: rgba(34,34,34,.5);
        border-radius: 8px;
        margin-right: 0px;
        padding: 8px 12px;
        font-size: 0.9em;
        font-style: normal;
        font-family: 'Roboto',Helvetica Neue,Arial,sans-serif;
        text-align: center;
        cursor: pointer;
        min-height: 36px;
        -webkit-font-smoothing: antialiased;
        outline: none;
        float: left;
    }
    #BGsettings #window-settings .verificationPassword{
        margin-top: 25px;
    }
    #BGsettings #window-settings .bloc_modif.toggle_modif .btn_modif_compte{
        margin-right: 20px;
        -webkit-transition: margin-right 0.2s ease-in;
        transition: margin-right 0.2s ease-in;
    }
    #BGsettings #window-settings .btn_save_modif_compte,
    #BGsettings #window-settings-message .btn_send{
    	display: none;
        position: relative;
        background-color: #006075;
        border: 1px solid transparent;
        font-weight: normal;
        color: rgba(255,255,255,1);
        border-radius: 8px;
        margin-right: 0px;
        padding: 8px 12px;
        font-size: 0.9em;
        font-style: normal;
        font-family: 'Roboto',Helvetica Neue,Arial,sans-serif;
        text-align: center;
        cursor: pointer;
        min-height: 36px;
        -webkit-font-smoothing: antialiased;
        outline: none;
    }
    #BGsettings #window-settings-message .btn_send{
        display: block;
        position: relative;
        background-color: #006075;
        border: 1px solid transparent;
        font-weight: normal;
        color: rgba(255,255,255,1);
        border-radius: 8px;
        margin-right: 0px;
        padding: 8px 12px;
        font-size: 0.9em;
        font-style: normal;
        font-family: 'Roboto',Helvetica Neue,Arial,sans-serif;
        text-align: center;
        cursor: pointer;
        min-height: 36px;
        -webkit-font-smoothing: antialiased;
        outline: none;
    }
    #BGsettings #window-settings .bloc_modif.toggle_modif .btn_save_modif_compte{
    	display: block;
    }
    #BGsettings #window-settings label,
    #BGsettings #window-settings-message label{
    	color: rgba(34,34,34,.5);
        font-size: 0.9em;
        font-weight: normal;
        font-style: normal;
        text-transform: uppercase;
    }
    #BGsettings #window-settings .password{
        padding: .375rem .75rem;
    }
    #BGsettings{
        height: 100vh;
    } 
    #BGsettings #content {
        padding-top: 300px;
    } 
    #BGsettings{
        height: 100vh;
        background-color: #f8f8f8;
    } 
    #BGsettings nav{
        position: static;
        top: auto;
    } 
    #BGsettings nav .navDeco a{
        color: #CB161D;
    } 
    #BGsettings nav .fa-sign-out-alt{
        float: right;
        color: #CB161D;
    }
    #BGsettings nav a{
        text-decoration: none;
        font-size: 0.9em;
        font-weight: 300;
        font-style: normal;
        line-height: normal;
        text-align: left;
        padding: 20px 24px;
        display: block;
        color: #222;
    } 
    #BGsettings nav a.active{
        font-weight: bold;
        border-left: solid 4px #006075;
    } 
    #BGsettings nav ul{
        list-style-type: none;
        margin: 0;
        padding: 0;
        border-radius: 6px;
        background-color: #FFF;
        box-shadow: 0 2px 4px 0 rgba(0,0,0,0.05);
    } 
    #BGsettings nav li{
        border-bottom: 1px solid rgba(0,0,0,0.05);
    } 
    #formAvatar svg{
        fill: rgba(34,34,34,.5);
    }
    #formAvatar span{
        color: rgba(34,34,34,.5);
        text-transform: none;
        padding-left: 0.5rem;
    }
    #formAvatar .inputfile {
        width: 0.1px;
        height: 0.1px;
        opacity: 0;
        overflow: hidden;
        position: absolute;
        z-index: -1;
    }
    #formAvatar .inputfile-1 + label {
        color: rgba(34,34,34,.5);
        font-size: 0.9em;
        font-weight: normal;
        font-style: normal;
        text-transform: uppercase;
        background-color: transparent;
        border: 1px solid rgba(34,34,34,.5);
        border-radius: 8px;
        margin-top: 30px;
    }
    #formAvatar .inputfile + label {
        max-width: 80%;
        font-size: 1.25rem;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        display: inline-block;
        overflow: hidden;
        padding: 0.625rem 1.25rem;
    }
    input[name=addAvatar]{
        position: relative;
        background-color: #006075;
        border: 1px solid transparent;
        font-weight: normal;
        color: rgba(255,255,255,1);
        border-radius: 8px;
        margin-right: 0px;
        padding: 8px 12px;
        font-size: 0.9em;
        font-style: normal;
        font-family: 'Roboto',Helvetica Neue,Arial,sans-serif;
        text-align: center;
        cursor: pointer;
        min-height: 36px;
        -webkit-font-smoothing: antialiased;
        outline: none;
        float: right;
        margin-top: 30px;
    }

@media (max-width: 640px) {

    /* ========================================================================== */
    /* ============================= BURGER MOBILE ============================== */
    /*  ========================================================================= */

        /* Prefixe "legacy" : uniquement utilise par loginSettingsPass.php
           (page non reliee au profil), pour ne jamais entrer en conflit avec
           le vrai menu burger (.menu-icon/#MobileNav) partage avec cook/. */
        #legacyMobileNav{
            background-color: #000;
            display: none;
            text-align: center;
            list-style-type: none;
            text-decoration: none;
            padding-left: 0px;
            overflow: auto;
            padding-bottom: 50px !important;
            height: 100vh;
        }
        #nav_header, #espace_header{
            display: none;
        }
        #legacyMobileNav a{
            color: #ffffff;
            text-decoration: none;
        }
        #legacyMobileNav li{
            font-weight: bold;
            font-family: 'bareonabareona';
            display: block;
        }
        #legacyMobileNav .nav_picto{
            padding-bottom: 30px;
        }
        #legacyMobileNavheader{
            width: 100%;
            background-color: #000;
            height: auto;
            text-align: left;
            position: fixed;
            z-index: 50;
            left: 0;
            display: block;
        }
        #legacyMobileNavheader h2{
            font-family: Arimo !important;
            padding-left: 10px !important;
            margin-left: 0 !important;
            padding-top: 15px;
        }
        .legacyMenuIcon{
            position: relative;
            width: 37px;
            height: 70px;
            transition: transform 0.5s;
            z-index: 30;
            left: 6%;
        }
        .legacyMenuIcon span {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translateX(-50%) translateY(-50%);
            display: block;
            width: 35px;
            height: 5px;
            background-color: #FFF;
            transition: background 0.5s;
        }
        .legacyMenuIcon span::before, .legacyMenuIcon span::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            transform: translateY(-6px);
            display: block;
            width: 35px;
            height: 5px;
            background-color: #FFF;
            transition: transform 0.5s;
        }
        .legacyMenuIcon span::before {
            top: -5px;
        }
        .legacyMenuIcon span::after {
            transform: translateY(6px);
            top: 5px;
        }
        .legacyMenuIcon.is-opened span { background: transparent; }
        .legacyMenuIcon.is-opened span::before { transform: translateY(0) rotate(45deg); top: 0px; }
        .legacyMenuIcon.is-opened span::after { transform: translateY(0) rotate(-50deg); top: 0px;}
        .legacyMenuIcon.is-opened { transform: rotate(180deg); }
        #legacyMobileNavheader hr{
            height: 1px;
            margin: 1rem 0;
            color: inherit;
            background-color: currentColor;
            border: 0;
            opacity: .25;
        }

    /* ========================================================================== */
    /* ============================= CONTENU MOBILE ============================== */
    /*  ========================================================================= */
        #window-create, #window-oublie-reset {
            margin-top: 30px;
        }
        #BGsettings #content {
            padding-top: 100px;
        }

        /******* MODAL ******/
            #myModal_avatar .modal-dialog {
                width: 80%;
            }


}

/*******************************************************************
******* PAGE PROFIL (Mon compte / Securite / Support) : DA GLOBALE ******
********************************************************************/
/* Reprend les codes du reste de l'appli (cook/) : fond noir, cartes
   sombres arrondies, champs pilule, boutons dores. La structure/les
   classes utilisees par le JS (toggle_modif, settings_input...) ne sont
   pas touchees, seul l'habillage visuel change. */

#Page_profil{
    background-color: var(--bg-page);
}
#Page_profil #BGsettings{
    height: auto;
    min-height: 100vh;
    background-color: var(--bg-page);
    padding-bottom: 60px;
}
#Page_profil #content{
    padding-top: 60px;
}
#Page_profil .titre .avatarProfilTitre{
    display: block;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 100%;
    border: 2px solid var(--accent);
    margin: 20px auto 0;
}

/* Carte (reprend .carteAction des autres pages) */
#Page_profil .carteAction{
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px 25px 25px;
    margin-bottom: 25px;
}
#Page_profil .carteAction h1{
    font-family: 'Finger Paint', cursive;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 18px;
}
#Page_profil #window-settings,
#Page_profil #window-settings-message{
    background-color: var(--bg-card);
    box-shadow: none;
}

/* Menu lateral Mon compte / Securite / Support */
#Page_profil .navProfil ul{
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}
#Page_profil .navProfil li{
    border-bottom: 1px solid var(--surface-strong);
}
#Page_profil .navProfil li:last-child{
    border-bottom: none;
}
#Page_profil .navProfil a{
    color: var(--text-secondary);
    padding: 14px 6px;
    font-weight: normal;
    border-left: none;
}
#Page_profil .navProfil a.active{
    color: var(--accent);
    font-weight: bold;
    border-left: none;
}
#Page_profil .navProfil .navDeco{
    margin-top: 10px;
}
#Page_profil .navProfil .navDeco a,
#Page_profil .navProfil .fa-sign-out-alt{
    color: #CB161D;
}

/* Champs de formulaire (pilule sombre, comme .champPill)
   NB: on egale la specificite des anciennes regles #BGsettings
   #window-settings ... (2 ID) pour etre sur de les emporter, cette regle
   etant plus loin dans le fichier. */
#Page_profil #window-settings .settings_input,
#Page_profil #window-settings-message .settings_input,
#Page_profil #window-settings .settings_input.toggle_modif{
    background-color: var(--surface-soft);
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    height: 46px;
    padding-left: 20px;
    color: var(--text-primary);
}
#Page_profil #window-settings-message .settings_input{
    height: 160px;
    border-radius: 18px;
    padding: 14px 20px;
}
#Page_profil #window-settings .settings_input input,
#Page_profil #window-settings-message .settings_input textarea{
    color: var(--text-primary);
}
#Page_profil #window-settings .settings_input input::placeholder,
#Page_profil #window-settings-message .settings_input textarea::placeholder{
    color: var(--text-muted);
}
#Page_profil #window-settings .settings_input.avatar_input{
    background: none;
    border: none;
    height: auto;
    padding-left: 0;
}
#Page_profil #window-settings .settings_input.avatar_input input{
    width: 60px;
    height: 60px;
}
#Page_profil #window-settings label,
#Page_profil #window-settings-message label{
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Boutons Modifier / Sauvegarder / Envoyer : pilule doree */
#Page_profil #window-settings .btn_modif_compte{
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 30px;
    font-family: 'Arimo', sans-serif;
}
#Page_profil #window-settings .btn_modif_compte:hover{
    background-color: color-mix(in srgb, var(--accent) 15%, transparent);
}
#Page_profil #window-settings .btn_save_modif_compte,
#Page_profil #window-settings-message .btn_send{
    background-color: var(--accent);
    color: #000;
    font-weight: bold;
    border-radius: 30px;
    font-family: 'Arimo', sans-serif;
}
#Page_profil #window-settings .btn_save_modif_compte:hover,
#Page_profil #window-settings-message .btn_send:hover{
    background-color: var(--accent-hover);
}

/* Choix avatar : accent dore au lieu du bleu/cyan par defaut */
#Page_profil #myModal_avatar img.select_avatar{
    border-color: var(--accent);
}
#Page_profil input[name=addAvatar]{
    background-color: var(--accent);
    color: #000;
    font-weight: bold;
}
#Page_profil input[name=addAvatar]:hover{
    background-color: var(--accent-hover);
}

	