/*
Theme Name: 	BuddyBoss Child
Theme URI: 		https://www.buddyboss.com/
Description: 	A child theme of BuddyBoss Theme. To ensure easy updates, make your own edits in this theme.
Author: 		BuddyBoss.com
Author URI: 	https://www.buddyboss.com/
License: 		GNU General Public License v3 or later
License URI: 	http://www.gnu.org/licenses/gpl-3.0.html
Template: 		buddyboss-theme
Version: 		1.0.0
*/

/*

-- Stylesheet locations --

Add your own customizations into /css/custom.css in this child theme.

Parent styles are called from /buddyboss-theme/inc/theme/functions.php in the 
parent theme and are located in /buddyboss-theme/assets/css/ in the parent theme.


--- If you are editing CSS via the WordPress admin, do the following ---

1. Install the plugin WP Editor: http://wordpress.org/plugins/wp-editor/
2. Navigate to Appearance > Theme Editor in the WordPress admin.
3. Navigate into the /css/ folder of your child theme to edit custom.css.

*/

body.buddypress.register .site-content .content-area {
	margin-bottom:69px;
}

#activation-form label, #activation-form #key {
	display:none;
}

.bloc-style-buddyboss {
  background-color: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}


.bloc-carte-buddyboss {
  background-color: #f7f7f7;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 16px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.wp-block-columns,
.wp-block-column,
.entry-content {
  overflow: visible !important;
}
/* Style pour la colonne de checklist de la page Carnet de bord */
.checklist-sticky {
  position: sticky;
  top: 20px;
  z-index: 10;
  background: #fff7f0; /* beige rosé / terre très clair */
  border-left: 4px solid #e25822; /* orange flamme */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.wp-block-columns {
	display: flex;
  align-items: flex-start !important;
}

/* Titre dans la colonne */
.colonne-checklist h2 {
  color: #b33c00; /* rouge-brun chaleureux */
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Liste des étapes */
.colonne-checklist ul {
  padding-left: 1em;
  margin: 0;
}

.colonne-checklist li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}


.colonne-checklist ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.colonne-checklist li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

/* Case bordure noir */
.colonne-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border: 2px solid #000; /* contour noir */
  border-radius: 4px;
}

/* Flèche orange qui dépasse */
.colonne-checklist li.checked::after {
  content: '✔';
  position: absolute;
  left: 3px;   /* décalée à droite de la case */
  top: -8px;    /* un peu au-dessus */
  font-size: 26px;
  color: #e25822; /* orange flamme */
  font-weight: bold;
  pointer-events: none;
}

/* Haut du site : barre objectif */

.conteneur-barre-objectif {
    background: #fdfdfd;
    padding: 5px;
    border-bottom: 1px solid #ddd;
	line-height: normal;
}

.barre-objectif-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.colonne {
    flex: 1 1 30%;
    text-align: center;
    font-size: 1rem;
}


@media screen and (max-width: 768px) {
    .barre-objectif-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .colonne {
        flex: 1 1 100%;
    }
}

/* ACF champ date, rectification largeur champs année */
.acf-ui-datepicker .ui-widget select {
	padding-right: 26px;
	}

/* CookieYes à droite au lieu de gauche */
.cky-revisit-bottom-left {
    right: 15px !important;
    left: auto !important;
}

/* Bouton de Frontend Admin comme buddyboss */
.fea-submit-button {
    font-size: 14px !important;
    background: #F2F4F5 !important;
    border: 1px solid #F2F4F5 !important;
    border-radius: 5px !important;
    color: #333 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    transition: 0.2s ease-in-out !important;
    float: right !important;
    margin-top: 10px !important;
    min-height: 34px !important;
    line-height: 34px !important;
    padding: 0 20px !important;
}

.fea-submit-button:hover {
    background-color: #e25822 !important;
    color: #fff !important;
}

/* Masquer champs par defaut de bb dans les onglets d'édition */
body.paged-4 .editfield,
body.paged-4 #profile-group-edit-submit,
body.paged-4 .submit,
body.paged-5 .editfield,
body.paged-5 #profile-group-edit-submit,
body.paged-5 .submit,
body.paged-6 .editfield,
body.paged-6 #profile-group-edit-submit,
body.paged-6 .submit{
    display: none !important;
}


.show-form .acf-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
	display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
    align-items: start;
}


@media (max-width: 700px) {
    .show-form .acf-checkbox-list {
        grid-template-columns: 1fr !important;
    }
}

.show-form .acf-checkbox-list label {
    width: auto !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.show-form .acf-fields > .acf-field {
    border-top: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    /* Optionnel : réduire le padding vertical si besoin */
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    background: none !important;
    box-shadow: none !important;
}

.show-form .acf-bl:before {
    display: none !important;
}

.show-form .acf-form-submit {
	margin-top:18px;
}

.show-form .acf-field .acf-label label {
    color: var(--bb-primary-color) !important;
    font-weight: 500;
    margin: 0 0 3px;
    padding: 0;
}

/* Cache le champ ACF slug public sur les cartes WPGB */
.wp-grid-builder .wpgb-card .slug-public-hidden,
.wp-grid-builder .wpgb-card [class*=wpgb-block-].slug-public-hidden,
.slug-public-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}


.pac-container {
    z-index: 999999 !important;
}


.acf-google-map .title .search {
    padding-left : 30px !important;
}

/* Cache le message ACF de modification du profil */

.show-form #message.updated { display: none !important; }

/* BuddyBoss sticky header: compenser UNIQUEMENT le contenu */
.bb-buddypanel.sticky-header #primary {
  padding-top: 20px !important;
}