/*
Theme Name: Bridge Child
Theme URI: http://bridgelanding.qodeinteractive.com/
Description: A child theme of Bridge Theme
Author: Qode Interactive
Author URI: https://qodeinteractive.com
Version: 1.0.0
Text Domain: bridge
Template: bridge
*/

/* =========================================================
   Filter Bar (The Events Calendar) — style des filtres
   À coller dans : Apparence → Personnaliser → CSS additionnel
   (ou dans le CSS du thème enfant)
   ========================================================= */
 
:root {
  --fb-accent: #161827;        /* couleur principale (pastilles actives, cases cochées) */
  --fb-accent-texte: #ffffff;
  --fb-survol: #f1efe9;        /* fond au survol d'une option */
  --fb-bordure: #d6d3cc;
  --fb-fond: #ffffff;
  --fb-rayon: 8px;
}
 
/* ---------- 1. Z-index : la barre et ses fenêtres passent par-dessus la liste d'événements ---------- */
/* On ne change la position d'aucun élément de Filter Bar (ça brisait les clics).
   On remonte seulement les conteneurs QUI CONTIENNENT un filtre ouvert. */
.tribe-events .tribe-events-header:has(.tribe-filter-bar-c-filter--open),
.tribe-events .tribe-filter-bar:has(.tribe-filter-bar-c-filter--open),
.tribe-filter-bar__filters-container:has(.tribe-filter-bar-c-filter--open) {
  z-index: 999;
}
 
.tribe-filter-bar-c-filter--open {
  z-index: 1000;
}
 
/* La vraie cause : certains éléments de la liste (date, titre, lieu) ont leur propre z-index.
   On « enferme » la liste dans sa propre couche, sous l'en-tête.
   Corrige les filtres (bureau + mobile) ET le calendrier (datepicker). */
.tribe-events .tribe-events-calendar-list,
.tribe-events .tribe-events-calendar-month,
.tribe-events .tribe-events-calendar-day,
.tribe-events .tribe-events-pro-photo,
.tribe-events .tribe-events-pro-week-grid,
.tribe-events .tribe-events-pro-map,
.tribe-events .tribe-events-pro-summary {
  isolation: isolate;
  z-index: 0;
}
 
.tribe-events .tribe-events-header {
  z-index: 100;
}
 
/* ---------- 2. La fenêtre qui s'ouvre sous une pastille ---------- */
.tribe-filter-bar .tribe-filter-bar-c-filter__container {
  z-index: 100;
  background: var(--fb-fond);
  border: 1px solid var(--fb-bordure);
  border-radius: var(--fb-rayon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  padding: 16px;
  min-width: 300px;
}
 
/* ---------- 3. La liste d'options : intégrée dans la fenêtre, fond opaque ---------- */
.tribe-filter-bar .select2-container--open .select2-dropdown {
  position: static !important;   /* la liste fait partie de la fenêtre au lieu de flotter par-dessus le texte */
  width: 100% !important;
  background: var(--fb-fond);
  border: 0;
  box-shadow: none;
  margin-top: 8px;
}
 
.tribe-filter-bar .select2-results__options {
  max-height: 260px;
  overflow-y: auto;
  padding: 0;
  margin: 0;
}
 
/* Chaque option ressemble à une case à cocher cliquable */
.tribe-filter-bar .select2-results__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  color: #222 !important;
  background: transparent !important;
  cursor: pointer;
  opacity: 1 !important;
  font-size: 15px;
  line-height: 1.3;
  white-space: normal !important;   /* les longs libellés passent à la ligne au lieu de déborder */
}
 
.tribe-filter-bar .select2-results__option::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--fb-bordure);
  border-radius: 4px;
  background: var(--fb-fond);
  box-sizing: border-box;
}
 
.tribe-filter-bar .select2-results__option--highlighted,
.tribe-filter-bar .select2-results__option:hover {
  background: var(--fb-survol) !important;
}
 
/* Retire la bordure noire de focus au clic (garde un repère discret au clavier) */
.tribe-filter-bar .select2-results__option:focus,
.tribe-filter-bar .select2-results__options:focus {
  outline: none !important;
  box-shadow: none !important;
}
 
.tribe-filter-bar .select2-results__option:focus-visible {
  box-shadow: inset 0 0 0 2px var(--fb-bordure) !important;
}
 
/* Option sélectionnée : case cochée */
.tribe-filter-bar .select2-results__option[data-selected="true"] {
  font-weight: 600;
}
 
.tribe-filter-bar .select2-results__option[data-selected="true"]::before {
  background: var(--fb-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 11px no-repeat;
  border-color: var(--fb-accent);
}
 
/* ---------- 4. Zone des choix sélectionnés + champ de recherche ---------- */
.tribe-filter-bar .select2-selection--multiple {
  border: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
  padding: 0 !important;
}
 
.tribe-filter-bar .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 !important;
}
 
.tribe-filter-bar .select2-search--inline {
  flex: 1 0 100%;
}
 
.tribe-filter-bar .select2-search__field {
  width: 100% !important;
  margin-top: 6px !important;
  padding: 8px 12px 8px 34px !important;
  border: 1px solid var(--fb-bordure) !important;
  border-radius: 6px !important;
  background: var(--fb-fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") 10px center / 16px no-repeat !important;
  font-size: 14px !important;
  min-height: 38px;
}
 
.tribe-filter-bar .select2-selection__clear {
  display: none;
}
 
/* ---------- 5. Pastilles de la barre : on voit qu'elles sont cliquables ---------- */
.tribe-filter-bar .tribe-filter-bar-c-pill__pill {
  cursor: pointer;
  border: 1px solid var(--fb-bordure);
  background: var(--fb-fond);
  transition: border-color .15s, box-shadow .15s;
}
 
/* Petite flèche ▾ sur les pastilles sans sélection */
.tribe-filter-bar .tribe-filter-bar-c-filter:not(.tribe-filter-bar-c-filter--has-selections) .tribe-filter-bar-c-pill__pill::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
 
.tribe-filter-bar .tribe-filter-bar-c-pill__pill:hover,
.tribe-filter-bar .tribe-filter-bar-c-pill__pill:focus-visible {
  border-color: var(--fb-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
 
/* Pastille avec un filtre actif : remplie */
.tribe-filter-bar .tribe-filter-bar-c-filter--has-selections .tribe-filter-bar-c-pill__pill {
  background: var(--fb-accent);
  border-color: var(--fb-accent);
  color: var(--fb-accent-texte);
}
 
.tribe-filter-bar .tribe-filter-bar-c-filter--has-selections .tribe-filter-bar-c-pill__pill svg path {
  stroke: var(--fb-accent-texte);
}

.tribe-events-meta-group.tribe-events-meta-group-other,
.post-type-archive-tribe_events .tribe-events-c-subscribe-dropdown{
    display: none;
}

.single-tribe_events .tribe-events-single .tribe-events-event-meta {
    width: 100%;
}

header .header_top .q_social_icon_holder {
    margin-right: 10px;
}

nav.main_menu {
    left: 34%;
}

@media (max-width: 1800px) {
  nav.main_menu {
      left: 34%;
  }
}

@media (max-width: 1620px) {
  nav.main_menu {
      left: 36%;
  }
}

@media only screen and (min-width: 1001px) and (max-width: 1450px){
    .header_inner_right {
        padding-right: 1% !important;
    }
    .header_top, .fixed_top_header .top_header {
        padding: 0 1% !important;
    }
    header .header_inner_left {
        left: 2% !important;
    }
}
/* =========================================================
   MENU BOUTONS (#menu-menu-btn) + RECHERCHE — Bridge
   ========================================================= */

/* ===== Desktop : loupe avant les boutons (garde la mise en page Bridge) ===== */
header .side_menu_button_wrapper {
  direction: rtl; /* inverse l'ordre des cellules : loupe à gauche */
}
header .side_menu_button_wrapper > * {
  direction: ltr; /* texte normal à l'intérieur */
}

/* ===== Bouton recherche (loupe) ===== */
header .side_menu_button .search_button {
  color: #1b2a4e !important;
  padding: 0 6px !important;
  border-radius: 4px;
  transition: color .2s;
}
header .side_menu_button .search_button:focus-visible {
  outline: 3px solid #4a6cf7;
  outline-offset: 2px;
}

/* ===== Liste des boutons ===== */
#menu-menu-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu-menu-btn,
#menu-menu-btn * {
  box-sizing: border-box !important;
}

#menu-menu-btn > li {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 170px;
}

#menu-menu-btn > li::marker,
#menu-menu-btn > li::before {
  content: none;
}

/* ===== Style commun des boutons ===== */
#menu-menu-btn > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: auto;
  min-height: 50px;
  padding: 6px 16px;
  border: 2px solid transparent;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: left;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

#menu-menu-btn > li > a:focus-visible {
  outline: 3px solid #4a6cf7;
  outline-offset: 2px;
}

/* ===== 1. Alumni : contour ===== */
#menu-menu-btn .btn-alumnis > a {
  background: #fff;
  color: #000;
  border-color: #da4c4b;
}

/* ===== 2. Trouver un service : marine + icône repère ===== */
#menu-menu-btn .btn-trouver-service > a {
  background: #6F2383;
  color: #fff;
  border-color: #6F2383;
}
#menu-menu-btn .btn-trouver-service > a::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===== 3. Soutenir notre mission : jaune + icône cœur ===== */
#menu-menu-btn .btn-don > a {
  background: #eca700;
  color: #1b2a4e;
  border-color: #eca700;
  max-width: 175px; /* 2 lignes : SOUTENIR / NOTRE MISSION */
}
#menu-menu-btn .btn-don > a::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-9-8.6C1.6 8.3 3.6 5 6.8 5c2 0 3.4 1.1 5.2 3 1.8-1.9 3.2-3 5.2-3 3.2 0 5.2 3.3 3.8 6.4C19 15.6 12 20 12 20z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-9-8.6C1.6 8.3 3.6 5 6.8 5c2 0 3.4 1.1 5.2 3 1.8-1.9 3.2-3 5.2-3 3.2 0 5.2 3.3 3.8 6.4C19 15.6 12 20 12 20z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ===== Survol : seulement avec souris ===== */
@media (hover: hover) {
  #menu-menu-btn > li > a:hover {
    transform: translateY(-1px);
  }
  #menu-menu-btn .btn-alumnis > a:hover {
    background: #da4c4b;
    color: #fff;
    border-color: #da4c4b;
  }
  #menu-menu-btn .btn-trouver-service > a:hover {
    background: #9A65A8;
    border-color: #9A65A8;
  }
  #menu-menu-btn .btn-don > a:hover {
    background: #FFB000;
    border-color: #FFB000;
  }
  header .side_menu_button .search_button:hover {
    color: #4a6cf7 !important;
  }
}

/* =========================================================
   MOBILE / TABLETTE (≤ 1000px) : recherche + boutons au-dessus du logo
   ========================================================= */
@media only screen and (max-width: 1000px) {

  header .header_bottom {
    display: flex !important;
    flex-wrap: wrap !important;
    height: auto !important;
  }
  header .header_bottom::before,
  header .header_bottom::after {
    content: none !important;
  }

  /* Bloc recherche + boutons : en premier */
  header .header_bottom .header_inner_right {
    order: -1;
    float: none !important;
    width: 100%;
    height: auto !important;
    padding: 10px 0 0 !important;
    margin: 0 !important;
  }
  header .header_inner_right .side_menu_button_wrapper {
    display: flex !important;
    direction: ltr; /* annule l'inversion desktop */
    align-items: center;
    gap: 8px;
    float: none !important;
    width: 100%;
    max-width: 690px;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  header .header_inner_right .side_menu_button {
    order: -1;
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  header .header_inner_right .header_bottom_right_widget_holder {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    float: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  header .header_inner_right .header_bottom_widget,
  header .header_inner_right .menu-menu-btn-container {
    display: block !important;
    float: none !important;
    width: 100%;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Rangée logo + hamburger */
  header .header_bottom .header_inner_left {
    order: 0;
    position: relative !important;
    float: none !important;
    width: 100%;
  }
  header .header_bottom .header_inner_left,
  header .header_bottom .logo_wrapper {
    height: 60px !important;
  }

  header .header_bottom nav.mobile_menu {
    order: 1;
    width: 100%;
  }

  /* Les 3 boutons sur une ligne */
  #menu-menu-btn {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }
  #menu-menu-btn > li {
    flex: 1 1 0;
    min-width: 0;
  }
  #menu-menu-btn > li > a,
  #menu-menu-btn .btn-don > a {
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 6px 8px;
    font-size: 11px;
    gap: 5px;
  }
}

/* =========================================================
   PETITS ÉCRANS (≤ 480px) : boutons empilés
   ========================================================= */
@media only screen and (max-width: 600px) {
  header .header_inner_right .side_menu_button_wrapper {
    align-items: flex-start;
  }
  #menu-menu-btn {
    flex-direction: column;
    gap: 6px;
  }
  #menu-menu-btn > li {
    flex: none;
  }
  #menu-menu-btn > li > a,
  #menu-menu-btn .btn-don > a {
    min-height: 38px;
  }
  #menu-menu-btn > li {
    max-width: 100% !important; 
  }
}
@media only screen and (max-width: 1000px) {
  .mobile_menu_button {
    float: left;
    height: 60px;
    margin: 0 20px 0 66px;
  }
}

  

/* =========================================================
   1301px à 1450px : menu principal compact
   ========================================================= */
@media only screen and (min-width: 1301px) and (max-width: 1450px) {
  nav.main_menu > ul > li > a {
    padding: 0 9px !important;
    font-size: 15px !important;
  }
  #menu-menu-btn {
    gap: 6px;
  }
  #menu-menu-btn > li > a {
    padding: 5px 10px;
    font-size: 13px;
  }
}

/* =========================================================
   1001px à 1300px : burger entre le logo et les boutons
   ========================================================= */
@media only screen and (min-width: 1001px) and (max-width: 1300px) {
  /* Donne une largeur réelle au logo (images en absolu dans Bridge) */
  header .header_inner_left .logo_wrapper {
    flex: 0 0 auto;
    width: 130px; /* ajuste à la largeur de ton logo */
  }
  header .header_inner_left .q_logo,
  header .header_inner_left .q_logo a {
    width: 100%;
  }
  /* Cache le menu principal */
  header nav.main_menu {
    display: none !important;
  }

  /* Logo puis burger, alignés verticalement */
  header .header_inner_left {
    display: flex !important;
    align-items: center;
  }
  header .header_inner_left .logo_wrapper {
    order: 0;
  }
  header .header_inner_left .mobile_menu_button {
    order: 1;
    display: flex !important;
    align-items: center;
    float: none !important;
    height: auto !important;
    margin: 0 0 0 28px !important;
    cursor: pointer;
  }
  header .mobile_menu_button span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    color: #1b2a4e;
    font-size: 20px;
  }

  /* Panneau du menu mobile sous le header */
  header nav.mobile_menu {
    display: block !important;
    clear: both;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Boutons un peu plus compacts */
  #menu-menu-btn {
    gap: 6px;
  }
  #menu-menu-btn > li > a {
    padding: 5px 10px;
    font-size: 12px;
  }
}

@media (hover: hover) and (min-width: 1001px) and (max-width: 1300px) {
  header .mobile_menu_button span:hover {
    background: #f1ece0;
  }
}


/* Loupe du top header : cercle marine assorti aux icônes sociales */
header .header_bottom .side_menu_button .search_button {
  display: none !important;
}
header .header_top .search_button {
  color: #1b2a4e !important;
  margin-right: 8px;
}

header .header_top .top-search {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 0 0 8px;
  border-radius: 50%;
  background: #eca700;
  color: #fff !important;
  font-size: 15px;
  line-height: 1;
  vertical-align: middle;
  text-decoration: none;
  transition: background-color .2s, transform .2s;
}
header .header_top .top-search i {
  color: inherit !important;
  font-size: inherit;
  line-height: 1;
}

@media (hover: hover) {
  header .header_top .top-search:hover {
    background: #FFB000;
    transform: translateY(-1px);
  }
}

header .header_top .top-search:focus-visible {
  outline: 3px solid #eca700;
  outline-offset: 2px;
}

.header_top, .fixed_top_header .top_header {
    padding: 5px 4%;
}

.cf7_custom_style_2 input.wpcf7-form-control.wpcf7-submit, .cf7_custom_style_2 input.wpcf7-form-control.wpcf7-submit:not([disabled]) {
    background-color: #6F2383;
    border-color: #6F2383;
    height: 50px;
    line-height: 50px;
}

.cf7_custom_style_2 input.wpcf7-form-control.wpcf7-submit:hover, .cf7_custom_style_2 input.wpcf7-form-control.wpcf7-submit:not([disabled]):hover {
    color: #ffffff;
    background-color: #9A65A8;
    border-color: #9A65A8;
}