/************************************************************************************************/
/************************************************************************************************/
/******************************* STYLE ADMIN POUR TOUS LES USERS ********************************/
/************************************************************************************************/
/************************************************************************************************/

/* cache l'accordéon "Options de l'écran" inutile sur les pages d'options */
.yatapress_page_yata-options-generales div#screen-options-link-wrap,
.yatapress_page_yata-informations-client div#screen-options-link-wrap,
.yatapress_page_yataclock-config div#screen-options-link-wrap,
.yatapress_page_yataprog-config div#screen-options-link-wrap
{display: none;}
:root{
  --wp-admin-theme-color:#f1da16;
  --wp-admin-theme-color--rgb:241 218 22;
  --wp-admin-theme-color-darker-10:#e2ce23;
  --wp-admin-theme-color-darker-20:#d3c22d;
}

/*couleur de fond chrome autocomplete = blanc*/
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  /*border: 1px solid #f1da16;*/
  /*-webkit-text-fill-color: #f1da16;*/
  -webkit-box-shadow: 0 0 0px 1000px #FFF inset;
  transition: background-color 5000s ease-in-out 0s;
}

/*-------------------------------------INTERFACE CONNEXION------------------------------------*/

/*logo login*/
#login h1 a {background-size: 320px; height: 125px; width: 320px; margin-bottom: 0px; background-image:url("/wp-content/themes/yatatheme/img/admin/yatapress.svg") !important;}

/*style form login*/
body.login form{border: 0px;}
body.login form .button.button-primary{background: #f1da16; border-color: #f1da16; color: #000000;}
body.login form .button.button-primary:hover{background: #000000; border-color: #000000; color: #f1da16;}
body.login input[type="text"]:focus, body.login input[type="password"]:focus, body.login input[type="checkbox"]:focus{border-color:#f1da16;}
body.login .button.wp-hide-pw:hover, body.login .button.wp-hide-pw:focus{color:#f1da16; border-color: #7d7878; box-shadow: none;}
body.login input[type=checkbox]:checked::before{filter: brightness(1.2) sepia(1) hue-rotate(15deg) saturate(22);}

/*couleur texte selection*/
::selection{color: white!important; background: #f1da16!important;}

/*liens mdp, backtoblog et politique de conf*/
body.login #backtoblog a:hover, .login #nav a:hover, .login h1 a:hover {color: #f1da16;}
body.login a.privacy-policy-link{color:#50575e;}
body.login a.privacy-policy-link:hover{color:#f1da16;}
.login #login_error, .login .message, .login .success{border-left: 4px solid #f1da16;}

/*cache language switcher*/
body.login .language-switcher{display: none;}



/*-------------------------------------BACKOFFICE GENERAL-------------------------------------*/

/*remplace le logo WP par yata*/
#wpadminbar #wp-admin-bar-wp-logo>.ab-item {width: 20px; background-image: url('/wp-content/themes/yatatheme/img/admin/yatay_bl.png')!important; background-repeat: no-repeat!important; background-size: 70%!important; background-position: 9px 16px!important;}
#wpadminbar #wp-admin-bar-wp-logo>.ab-item>span{display: none;}

/*cache message notice imagify*/
div.imagify-notice{display: none!important;}

/*cache message notice popupmaker*/
/*div.pum-alerts{display: none!important;}*/

/*cache message welcome contact form 7*/
div.wpcf7-welcome-panel{display: none!important;}


/* menu gauche légérement plus large */
/* #adminmenu, #adminmenuwrap{width: 204px;} */
/* #adminmenu .wp-submenu{left: 204px;} */
/* #adminmenu div.wp-menu-name{padding: 8px 16px;} */
/* #adminmenuback{width: 204px;} */

/*header bar non sticky*/
#wpadminbar{position: absolute; top: -61px;}
@media screen and (max-width: 960px) {#wpadminbar{top: -36px;}}
@media screen and (max-width: 781px) {#wpadminbar{top: -46px;}}
@media screen and (max-width: 600px) {#wpadminbar{top: 0px;}}

/* sous menu en noir */
#adminmenu ul.wp-submenu{background-color: #302d2d!important;}

/* icone custom menu yatapress jaune au survol */
li.wp-menu-open a div.svg, li.opensub a div.svg{filter: brightness(2) sepia(1) hue-rotate(-40deg) saturate(100)!important;}

/*message d'erreur et notices avec marge à droite*/
.wrap div.error, .wrap div.notice, .wrap div.updated{margin: 32px 365px 12px 0px;}
.auto-fold .components-notice-list {left:0 !important;}

/*cache la barre footer*/
div#wpfooter{opacity: 0;}

/*toujours afficher les boutons nested pages*/
.nestedpages .action-buttons{display: block;}

/*sousmenu nested*/
.nestedpages .action-buttons .nestedpages-dropdown ul {top: 0px!important; right: 35px;}

/* nested -> articles + autres cpt */
.nestedpages .np-post-columns{display: none;}

/*WooCommerce*/
div.woocommerce-layout__header{position: inherit; width: 100%!important; margin-bottom: -30px;}
.woocommerce-embed-page div.woocommerce-layout__header.is-scrolled{box-shadow: none;}
.woocommerce-page #wpcontent #wpadminbar{left: 0px;}
.woocommerce-page #wpcontent #wpbody{margin-top: 1!important;}

/*----------------------------------AJUSTEMENTS COULEURS PALETTE-------------------------------------*/
.wrap .page-title-action {border: 1px solid #e1e1e1; color: #555; background-color: #f7f7f7; font-weight: 400;}
.wrap .page-title-action:hover, .wrap .page-title-action:active, .wrap .page-title-action:focus{background-color: #f1da16; color: #000; border-color: #f1da16;}
.np-btn:hover{background-color: #f1da16; border-color: #f1da16; color: #000;}

/*----------------------------------PAGE YATAPRESS DÉDIÉE-------------------------------------*/
.toplevel_page_yatapress .wrap .ctn{display: flex;}
.toplevel_page_yatapress .wrap .ctn .col1{width: 50%; padding-right: 10px;}
.toplevel_page_yatapress .wrap .ctn .col2{width: 50%; padding-left: 10px;}
.toplevel_page_yatapress .wrap p{font-size: 1.15em; margin: 1.7em 0;}
.toplevel_page_yatapress .wrap ul{list-style: disc;}
.toplevel_page_yatapress .wrap ul li{font-size: 1.15em; margin: 1.7em 0; line-height: 1.4em;}
.toplevel_page_yatapress .wrap b{color: #151515; font-weight: 700;}
.toplevel_page_yatapress .wrap .imgctn{text-align: center;}
.toplevel_page_yatapress .wrap img.img1{width: 100%; max-width: 415px;}
.toplevel_page_yatapress .wrap .ctn .col2 .img2{width: 100%; max-width: 723px;}
p.boutons_yatapress{display: flex; justify-content: flex-start;}
p.boutons_yatapress > a{margin:0 20px 0 0!important;}
p.boutons_yatapress > a:last-child{margin-left:30px!important;}
.toplevel_page_yatapress .wrap .ctn2{display: flex;}
.toplevel_page_yatapress .wrap .ctn2 > div{width: 20%;padding: 0 20px;}
.toplevel_page_yatapress .wrap .ctn2 > div h4{font-weight: 700; font-size: 1.2em; margin-bottom: 10px;}
.toplevel_page_yatapress .wrap .ctn2 > div p{margin-top: 0;}
.toplevel_page_yatapress .wrap .ctn2 > div .dashicons-before:before{font-size: 35px;}
@media (max-width: 1600px) {
  .toplevel_page_yatapress .wrap .ctn{flex-direction: column;}
  .toplevel_page_yatapress .wrap .ctn .col1{width: 100%; padding-right: 0px;}
  .toplevel_page_yatapress .wrap .ctn .col2{width: 100%; padding-left: 0px;}
}
@media (max-width: 1200px) {
  p.boutons_yatapress{flex-direction: column; align-items: center;}
  .toplevel_page_yatapress .wrap .ctn2 > div{width: 50%; padding: 0 10px;}
}
@media (max-width: 992px) {
  .toplevel_page_yatapress .wrap .ctn2{flex-direction: column;}
  .toplevel_page_yatapress .wrap .ctn2 > div{width: 100%;padding: 0;}
}

/*-------------------------------------METABOX ACCUEIL----------------------------------------*/

.postbox a{color: #3c434a;}
a:hover, a:active, a:focus {color: #eed219;}

/*CACHE LES META BOX DE L'ACCUEIL*/
div#dashboard_site_health{display: none;}/* état de santé du site */
div#rank_math_dashboard_widget{display: none;}/* rank math */
div#dashboard_activity{display: none;}/* Activité */
div#wpcloudy_dashboard_widget{display: none;}/* wp cloudy */
div#cerber_quick{display: none;}/* cerber */

/*META BOX YATA ACCUEIL*/
#widget_yatahelp .inside, #widget_yatapress .inside{text-align : center;}
#widget_yatapress .inside img{width : 330px; height : auto; display : inline-block;}
#widget_yatahelp .inside img{width : 160px; height : auto; display : inline-block;}
#widget_yatahelp span, #widget_yatapress span{font-size: 1.3em;}
#widget_yatahelp a, #widget_yatapress a{color:#3c434a;}
#widget_yatahelp a:hover, #widget_yatapress a:hover{color:#eed219; text-decoration:none;}

/* MESSAGE DES PLUGINS */
.sbi_discount_notice{display: none;}


/*-------------------------------------INTERFACE GUTENBERG-------------------------------------*/

div#happyfiles-sidebar-inner.modal{
  position:static;
}
.editor-document-tools .editor-document-tools__left>.components-button.has-icon.is-pressed{
  background-color: #eed219;
}

.block-editor-page #wpwrap {
  overflow-y: auto!important;
}
.acf-fields > .acf-tab-wrap .acf-tab-group{
  margin-bottom: 0!important;
}
.acf-tab-group{
  padding: 0 5px!important;
}
.acf-tab-group li {
  margin: 0 0.3em 0 0!important;
}

/* entete metaboxes acf en premier */
.interface-interface-skeleton__content .edit-post-layout__metaboxes{order:-1; margin-bottom: 70px;}
div#acf-group_675c55af59400 .acf-field .acf-label label{font-size: 16px;}
div#acf-group_675c55af59400 div[data-name="titre"] input{font-size: 36px; font-weight: bold;}
div#acf-group_675c55af59400 .inside.acf-fields, div#acf-group_675c55af59400 .postbox-header{max-width: 1100px; margin: auto!important;}

div#acf-group_672decbe5d845 .acf-field .acf-label label{font-size: 16px;}
div#acf-group_672decbe5d845 div[data-name="titre"] input{font-size: 36px; font-weight: bold;}
div#acf-group_672decbe5d845 .inside.acf-fields, div#acf-group_672decbe5d845 .postbox-header{max-width: 1100px; margin: auto!important;}




/*div#acf-group_64a7e3050b360 div[data-name="titre2"] iframe{*/
div.acf-editor-wrap[data-toolbar="titre_et_gras"] iframe{
  height: 80px!important;
  min-height: 80px;
}


/*hauteur des modals d'ajout de lien*/
#wp-link-wrap #link-selector{font-size: 1em;}
#wp-link-wrap {height: 570px; margin-top: -300px;}
.has-text-field #wp-link .query-results{top: 256px!important;}
#wp-link #link-options label span, #wp-link #search-panel label span.search-label{width: 220px;}

#wp-link-wrap {font-size:1.3em !important;}
#wplink-link-existing-content{display: none !important;}

/* cache la div concernant mdpf dans gutenberg */
#mpdf_admin{display: none;}

/* cache la barre horizontal dans gutenberg */
.interface-interface-skeleton__content{overflow-x: hidden;}

/* z-index bloc carte dans gutenberg*/
.leaflet-pane {z-index: 20!important;}

/* taille bloc align full dans gutenberg */
/* html :where(.wp-block)[data-align=full] {margin: 0 auto !important; width: 100%; max-width: none;} */
html :where(.wp-block:not(.wp-block-post-title)) {margin: 0 auto !important; width: 100%; max-width: none;}

/* cache l'aperçu des patterns */
/* .block-editor-block-patterns-list .block-editor-block-preview__container{display: none!important;} */
/* .block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{font-size: 15px; font-weight: 700;} */

/* taille des icones dans liste des blocs */
.dashicons, .dashicons-before:before{width: 28px; height: 28px; font-size: 28px;}

/* taille des icones dans la popup icomoon */
ul.vii-icomoon__icons li button i{height: 34px!important; width: 100%!important;}

/*cache détails sur onget Permalien*/
.editor-post-link > p, h3.edit-post-post-link__preview-label{display: none;}

/*cache détails sur onget Extrait*/
div.components-panel .editor-post-excerpt a.components-external-link{display: none;}

/* BASE MEDIAS */

/* Les champs obligatoires sont indiqués avec */
p.media-types-required-info{display: none;}

/* champ description */
div.media-modal-content span[data-setting="description"]{display: none;}

/* Apprendre à décrire le but de l’image */
p#alt-text-description{display: none;}

/* cache les components panels de Rocket et suggestions de liens */
div.components-panel #rocket_post_exclude,
div.components-panel #rank_math_metabox_link_suggestions{display: none;}
#wp-link .query-notice .query-notice-default, #wp-link .query-notice .query-notice-hint{border-left: 4px solid #f1da16;}

/* boutons barre haut */
.components-button:hover, .components-button[aria-expanded=true]{color:#000; }
.components-button[aria-label="Réglages"]{color:#777; }
.components-button.is-primary{background-color: #f1da16; color: #000;}
.components-button.is-primary:hover{background-color: #000!important; color: #f1da16!important;}
.components-button.is-secondary, .components-button.is-tertiary{color: rgb(0 0 0);}
.components-button.is-secondary:hover:not(:disabled), .components-button.is-tertiary:hover:not(:disabled){box-shadow: inset 0 0 0 1px #f1da16; color: #000;}
.components-button:focus:not(:disabled){box-shadow:inset 0 0 0 2px transparent, inset 0 -4px 0 0 #f1da16;}
.components-button.edit-post-sidebar__panel-tab.is-active{box-shadow: inset 0 0 0 2px transparent,inset 0 -4px 0 0 #f1da16}
.components-button.edit-post-sidebar__panel-tab.is-active:focus{box-shadow: inset 0 0 0 2px #f1da16,inset 0 -4px 0 0 #f1da16;}
.components-button.is-destructive{color: #cc1818!important;}
.components-search-control input[type=search].components-search-control__input:focus{    border-color: #000; box-shadow: inset 0 0 0 2px #000;}
.components-tab-panel__tabs-item.is-active{box-shadow: inset 0 0 0 2px transparent,inset 0 -4px 0 0 #f1da16;}
.components-button.block-editor-block-types-list__item:not(:disabled):hover {color: #000!important;}
.components-button.is-primary:focus:not(:disabled) {box-shadow: inset 0 0 0 1px #fff,0 0 0 2px #f1da16;}

/* block editor */
.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed, .edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{color: #f1da16;}
.block-editor-block-patterns-list__item:focus .block-editor-block-patterns-list__item-title, .block-editor-block-patterns-list__item:hover .block-editor-block-patterns-list__item-title{color: #000;}
.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px #f1da16;}
.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after{box-shadow:0 0 0 1.5px #f1da16;}
.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after{box-shadow:0 0 0 1.5px #f1da16;}
.block-editor-list-view-leaf.is-selected td{background:#000;}
.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled), .edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow: 0 0 0 1px #f1da16,inset 0 0 0 1px #fff;}
.components-button.block-editor-block-types-list__item:not(:disabled):focus {box-shadow: inset 0 0 0 2px #000;}
.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#f1da16;}
.block-editor-block-list__insertion-point-indicator{background:#f1da16;}

/* popup icomoon */
.vii-icomoon__search input[type=search]:focus{box-shadow: 0 0 0 2px #000!important;}
ul.vii-icomoon__icons li button:hover {box-shadow: 0 0 0 2px #000!important;}
ul.vii-icomoon__icons li button.active path {fill: #000!important;}
ul.vii-icomoon__icons li button.active {box-shadow: inset 0 0 0 2px #000!important;}

/* happy files */
#happyfiles-header #happyfiles-actions .icon i{height:auto;}