/*
Theme Name: OceanWP Child
Template: oceanwp
Author: Lionel Geiger
Description: Thème enfant OceanWP pour personnalisation du site lbdt.
Version: 1.0
Text Domain: oceanwp-child
*/

/* CSS personnalié ci-dessous */

/* CSS pour test de cache */
/*body {*/
/*  body::before {
  content: "LBDT STYLE CSS CHARGE";
  background-color: red;
  color: white;
  display: block;
  padding: 0.5rem;
  text-align: center;
}  */
  /*border: 10px solid pink !important;
}*/


/* =========================================
/* Masquer le menu de navigation des onglets du profil Ultimate Member */
.um-profile .um-profile-nav {
    display: none !important;
}


/* =========================================
/* Masque la photo de couverture sur la page profil UM */
.um-cover {
    display: none !important;
}


/* =========================================
/* 2 boutons placés dans le profil membre*/
.um-custom-buttons {
    margin: 20px 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
}

/* =========================================
/*2 boutons du compte*/

/* Conteneurs parents et intermédiares */
.um-col-alt .um-left { /* Force le conteneur parent et intermédiaire à 100%*/
  width: 100%;
}
/* Conteneur parent et conteneur créé qui inclu les 2 boutons*/
.um-col-alt-b .lbdt-buttons-flex {
 	display: flex;
 	justify-content: space between;
 	gap: 10px;
  	width: 100%;
}

/*Conteneurs parents et boutons*/
.um-col-alt-b.lbdt-buttons-flex .um-button {
  	flex: 1 1 0;
  	text-align: center;
}


/*Responsive des 2 boutons*/
@media (max-width: 600px) {
  .lbdt-buttons-flex {
    flex-direction: column;
  }

  .lbdt-buttons-flex .um-button {
    width: 100%;
  }
}

/* =========================================
   Boutons personnalisés UM - Style global
   Pour uniformiser les boutons natifs UM et les boutons ajoutés manuellement (.um-button)
   ========================================== */

a.um-button,
input.um-button[type="submit"],
input.um-button[type="button"] {
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  background-color: #33b1da;
  border: none;
  padding: 16px 20px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
  /*border-radius: 4px;*/
  letter-spacing: normal; /* Uniformise l’espacement entre les lettres */
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

/* 🟦 Hover : effet au survol */
a.um-button:hover,
input.um-button:hover {
  background-color: #299cc0;
  text-decoration: none;
}

/* =========================================
   Responsive design
   Réduction de la taille de police et ajustement éventuel de la largeur sur petits écrans
   ========================================== */
@media (max-width: 768px) {
  a.um-button,
  input.um-button[type="submit"],
  input.um-button[type="button"] {
    font-size: 14px;
    width: 100%;
  }
}



/* =========================================
  Page Profil
  Alignement des boutons "Mettre à jour le profil" et "Annuler"
   ========================================== */

/* Conteneur des boutons sur la page PROFIL */
.um-profile .um-col-alt {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px; /* espace horizontal entre les boutons */
  flex-wrap: nowrap;
}

/* Chaque colonne occupe 50% */
.um-profile .um-left.um-half,
.um-profile .um-right.um-half {
  width: 50%;
  max-width: 50%;
  padding: 0;
  box-sizing: border-box;
}

/* Forcer les boutons à s'étendre sur toute leur moitié */
.um-profile input.um-button,
.um-profile a.um-button {
  width: 100%;
  margin: 0;
}

/* Responsive : empiler les boutons sur petit écran */
@media screen and (max-width: 600px) {
  .um-profile .um-left.um-half,
  .um-profile .um-right.um-half {
    width: 100%;
    max-width: 100%;
  }
}

/* ===========================================
   Mise en page des boutons de connexion et inscription
   =========================================== */

/* Ne change pas le comportement de la case à cocher */
.um-login .um-col-alt {
  display: block;
}

/* Affiche UNIQUEMENT les deux boutons côte à côte */
.um-login .um-left.um-half,
.um-login .um-right.um-half {
  display: inline-block;
  vertical-align: top;
  width: 49%;
  box-sizing: border-box;
}

/* Espacement horizontal entre les boutons */
.um-login .um-left.um-half {
  margin-right: 2%;
}

/* Force les boutons à remplir leur conteneur */
.um-login .um-button {
  display: block;
  width: 100%;
  margin: 0;
}

/* Responsive : empile les boutons sur petit écran */
@media screen and (max-width: 600px) {
  .um-login .um-left.um-half,
  .um-login .um-right.um-half {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
}

/* =========================================================================================
   Mise en page des boutons d"S'inscrire" et "Connexion" de la page d'inscription (register)
   ======================================================================================== */

.page-id-49 .um-col-alt {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap;
}

.page-id-49 .um-left.um-half,
.page-id-49 .um-right.um-half {
  width: 50%;
  max-width: 50%;
  padding: 0;
  box-sizing: border-box;
}

.page-id-49 input.um-button,
.page-id-49 a.um-button {
  width: 100%;
  margin: 0;
}

@media screen and (max-width: 600px) {
  .page-id-49 .um-col-alt {
    display: block !important;
  }

  .page-id-49 .um-left.um-half,
  .page-id-49 .um-right.um-half {
    display: block !important;
    width: 100% !important;
	max-width: 100%;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }

  .page-id-49 input.um-button,
  .page-id-49 a.um-button {
    width: 100% !important;
  }



/* =========================================
  Chat Wise : colonne des membres masquée
   ========================================== */
.wcBrowserArea {
    display: none !important;
}


/* =========================================
  The Events Calendar : Couleur de fond par catégorie pour la vue "Mois"
   ========================================== */
.tribe-events-calendar-month__day.event-cat-repetition {
    background-color: #f8e372 !important;
}

.tribe-events-calendar-month__day.event-cat-prestation {
    background-color: #f7b17b !important;
}

.tribe-events-calendar-month__day.event-cat-vie-associative {
    background-color: #b2d7f5 !important;
}

/* =========================================
  The Events Calendar : Couleur de fond par catégorie pour la vue "Liste"
   ========================================== */
.tribe-events-view--list .tribe-events-calendar-list__event.tribe_events_cat-repetition {
  background-color: #ffe97f;
}

.tribe-events-view--list .tribe-events-calendar-list__event.tribe_events_cat-atelier {
  background-color: #fff176;
}

.tribe-events-view--list .tribe-events-calendar-list__event.tribe_events_cat-prestation {
  background-color: #ffccbc;
}

.tribe-events-view--list .tribe-events-calendar-list__event.tribe_events_cat-vie-associative {
  background-color: #b3e5fc;
}


/* =========================================
  The Events Calendar :
  	La mise en forme des boutons des choix de l'inscription pour la catégorie "prestation"
 	s'effectue dans le fichier "boutons-participation.js"
	La mise ne forme responsiv peut se faire ici
   ========================================== */

/* Responsive */
@media (max-width: 768px) {
  .lbdt-bouton {
    display: block !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }
}

/* =========================================
  The Events Calendar :
  	Mise en forme de la fenêtre "modal.js" permettant de choisir l'instrument lors d'un clic
  	sur un des 4 boutons de choix
   ========================================== */  
.lbdt-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}

.lbdt-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.lbdt-modal-content h3 {
  margin-top: 0;
}

.lbdt-modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.lbdt-modal-buttons button {
  flex: 1;
  margin: 0 5px;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.lbdt-modal .lbdt-modal-buttons button.valider {
  Background-color: #03A9F4 !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
}

.lbdt-modal .lbdt-modal-buttons button.annuler {
  background-color: #ccc !important;
  color: black !important;
  border: none !important;
  border-radius: 4px !important;
}

.lbdt-modal-buttons button:hover {
  filter: brightness(1.1);
}
/* =========================================
  The Events Calendar : Ajout du TABLEAU sous les 3 boutons du choix inscription
pour la catégorie "prestation"
   ========================================== */
.lbdt-tableau-participation {
    margin-top: 2rem;
    overflow-x: auto;
}

.lbdt-tableau-participation table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.lbdt-tableau-participation th,
.lbdt-tableau-participation td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}
.lbdt-tableau-participation th {
    text-align: center;
    font-weight: bold;
    background-color: #f5f5f5; /* Optionnel : léger fond pour contraster */
}

.lbdt-tableau-participation td {
    text-align: center;
    font-weight: normal;
}



/* =========================================
  The Events Calendar : Couleurs des pastilles -> Choix isncription membre dans le tableau
   ========================================== */
/*.lbdt-tableau-participation {*/
.lbdt-statuts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lbdt-pastille {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.lbdt-pastille-vert { background-color: #4CAF50; }
.lbdt-pastille-orange { background-color: #FF9800; }
.lbdt-pastille-rouge { background-color: #F44336; }