/*
🎨 GFL Custom Stylesheet
Version      : 2025-06-24 — 15:24
Fichier      : gfl-custom-styles.css
Auteur       : Christophe La Taupe GPT
Projet       : GOSPEL FOR LIFE
Description  : Styles front-end harmonisés pour tableaux, formulaires, badges, boutons, layout responsive, et panneau flottant.
*/

/* ================================
   ✅ GENERAL – TABLEAUX AGENDA
================================== */
.tabletournee {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  border-spacing: 0;
  margin: 0 auto;
}
.tabletournee td,
.tabletournee th {
  border: 1px solid grey;
  max-width: 100%;
  word-break: break-word;
  padding: 0.4em 0.6em;
}
ul.tournee {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.event-date {
  font-size: 18px;
  font-weight: bold;
  text-transform: capitalize;
  margin-bottom: 5px;
}
.event-location,
.event-name {
  font-size: 14px;
}

/* 📱 Responsive */
@media (max-width: 767px) {
  .tabletournee {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tabletournee thead,
  .tabletournee tbody,
  .tabletournee tr {
    display: table;
    width: 100%;
    table-layout: auto;
  }
}

/* ================================
   📋 TABLEAU MY BOOKINGS
================================== */
#dbem-bookings-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff9f5;
  border: 1px solid #ddd;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: #222;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
#dbem-bookings-table thead {
  background-color: #008000;
  color: white !important;
  text-transform: uppercase;
  font-weight: bold;
}
#dbem-bookings-table th,
#dbem-bookings-table td {
  padding: 10px 14px;
  text-align: left;
  border-top: 1px solid #eee;
}
#dbem-bookings-table tbody tr:nth-child(even) {
  background-color: #f7f1ea;
}
#dbem-bookings-table tbody tr:hover {
  background-color: #e6f4e6;
}
/* 🎯 Bouton "Actions" */
#dbem-bookings-table .button-secondary {
  background-color: #00aa00;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.9em;
  cursor: pointer;
}
#dbem-bookings-table .button-secondary:hover {
  background-color: #00cc00;
}
/* Menu déroulant */
.em-my-bookings-actions-content {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  font-size: 0.9em;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
a.em-bookings-cancel {
  color: #c02227;
  font-weight: bold;
  text-decoration: none;
}
a.em-bookings-cancel:hover {
  text-decoration: underline;
}
/* Responsive */
@media (max-width: 767px) {
  #dbem-bookings-table,
  #dbem-bookings-table thead,
  #dbem-bookings-table tbody,
  #dbem-bookings-table th,
  #dbem-bookings-table td,
  #dbem-bookings-table tr {
    display: block;
    width: 100%;
  }
  #dbem-bookings-table thead {
    display: none;
  }
  #dbem-bookings-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
  }
}

/* ================================
   🎫 FORMULAIRE INSCRIPTION
================================== */
.em-booking-form-tickets-title,
.em-booking-form-ticket,
.em-booking-form-details,
label[for="booking_comment"],
textarea[name="booking_comment"],
input[name="booking_comment"],
#booking_comment,
input[type="checkbox"][name^="em_bookings"],
input[name="em_bookings_agree"],
label[for="em_bookings_agree"],
.em-booking-summary,
#em-booking-summary,
.em-booking-form-totals,
.em-booking-summary td,
.em-booking-summary th,
section[id^="em-booking-form-section-details"],
section.em-booking-form-section-summary,
h3.em-booking-form-tickets-title,
h3.em-booking-section-title.em-booking-form-summary-title,
.em-event-bookings h2,
.em-event-bookings-meta h3,
.em-event-prices,
#em-booking-buttons,
a.button.input.with-icon-right[href="#em-event-booking-form"],
.em-booking-form-section-summary,
.em-booking-form-section-details {
  display: none !important;
}
div#em-booking-submit {
  display: block !important;
  margin-top: 0.4em;
}

/* ================================
   🎟️ PANEL FLOTTANT [my_bookings]
================================== */
#gfl-mybookings.mybookings-fixed {
  position: fixed;
  top: 290px; /* ⇦ augmente pour passer sous le header */
  right: 50px;
  max-height: 80vh;
  overflow-y: auto;
  width: 400px;
  z-index: 999999; /* ⇦ plus haut pour passer au-dessus de tout */
  background-color: #fff;
  border: 2px solid #008000;
  box-shadow: 0 0 12px rgba(0, 128, 0, 0.3);
  padding: 1em;
  border-radius: 10px;
}
#gfl-mybookings.mybookings-normal {
  position: static;
  width: 100%;
  padding: 0;
  border: none;
  box-shadow: none;
}
#toggle-mybookings-btn {
  background-color: #008000;
  color: #fff;
  padding: 10px 20px;
  margin-bottom: 1em;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
#toggle-mybookings-btn:hover {
  background-color: #00cc00;
}

/* ================================
   🔰 BADGE INSCRIPTION
================================== */
#badge_inscription {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  background-color: #fff8f4;
  border-left: 6px solid #c02227;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 1em;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  #badge_inscription {
    max-width: 500px;
  }
}
#badge_inscription img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.alert_deconnection_inscription {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.alert_deconnection_inscription a {
  background-color: #ddd;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.9em;
  text-decoration: none;
  color: #444;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}
.alert_deconnection_inscription a:hover {
  background-color: #c02227;
  color: #fff;
}

/* ================================
   🎶 TITRES & BOUTONS
================================== */
#inscrit_title h2 {
  font-size: 28px;
  color: #00aa00;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  margin: 30px auto 20px auto;
  letter-spacing: 1px;
  background: none;
}
a.et_pb_button[href="/mon-gospel-for-life"] {
  background-color: #008000;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 128, 0, 0.4);
  cursor: pointer;
}
a.et_pb_button[href="/mon-gospel-for-life"]:hover {
  background-color: #00cc00;
  transform: scale(1.05);
}
a.et_pb_button[href="/mon-gospel-for-life"]:active {
  background-color: #005500;
}

/* Choristes inscription boutons */
a.et_pb_button[href*="inscription="] {
  background-color: #007c00;
  color: #fff !important;
  border-radius: 40px;
  padding: 14px 24px;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  margin: 10px;
  box-shadow: 0 0 10px rgba(0, 128, 0, 0.3);
  transition: all 0.3s ease-in-out;
  display: inline-block;
}
a.et_pb_button[href*="inscription="]:hover {
  background-color: #00cc00;
  transform: scale(1.05);
}

/* 📱 Mobile layout */
@media (max-width: 768px) {
  .et_pb_row_2.et_pb_row_4col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .et_pb_row_2 .et_pb_column {
    width: 100% !important;
    margin-bottom: 10px;
  }
  div#em-booking-submit input[type="submit"] {
    max-width: 100%;
    font-size: 0.9em;
    padding: 10px 15px;
    white-space: normal;
  }
}
/* 🎯 Fix visuels tableau MY BOOKINGS */
#dbem-bookings-table thead th {
  color: #ffffff !important;
}
#dbem-bookings-table th,
#dbem-bookings-table td {
  padding: 12px 16px !important;
}
#dbem-bookings-table a {
  color: #008000;
  text-decoration: none;
  font-weight: bold;
}
#dbem-bookings-table a:hover {
  color: #00cc00;
  text-decoration: underline;
}
#dbem-bookings-table tbody tr:nth-child(even) {
  background-color: #f3f8f3;
}
#dbem-bookings-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}
/* ✅ Titres "Agenda des Répétitions / Concerts" */
.agenda-header {
  background-color: #008000;
  color: #fff;
  text-align: center;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #006600;
}

.agenda-header a {
  color: #fff !important;
  text-decoration: none;
}

/* ✅ Liens dans les tableaux (évènements) */
#dbem-bookings-table a,
.tabletournee a {
  color: #333;
  font-weight: bold;
  text-decoration: none;
}

#dbem-bookings-table a:hover,
.tabletournee a:hover {
  color: #008000;
  text-decoration: underline;
}

/* ✅ Padding amélioré pour cellules */
#dbem-bookings-table th,
#dbem-bookings-table td,
.tabletournee td,
.tabletournee th {
  padding: 12px 16px !important;
}

/* ✅ Optionnel : forcer fond vert si overwrite */
.agenda-header,
.agenda-header a {
  background-color: #008000 !important;
  color: #fff !important;
}
/* 🎯 Bouton principal "Inscription comme choriste à ce concert" */
#em-booking-submit input [type="submit"] {
  background-color: #007c00;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  font-size: 1em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0, 128, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: inline-block;
  margin-top: 10px;
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

#em-booking-submit input[type="submit"]:hover {
  background-color: #00cc00;
  box-shadow: 0 0 18px rgba(0, 255, 0, 0.5);
  transform: scale(1.03);
}
.gfl-bouton-secondaire {
  display: inline-block;
  background-color: transparent;
  border: 2px solid #c02227;
  color: #c02227;
  padding: 10px 20px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  border-radius: 30px;
  transition: all 0.3s ease-in-out;
  margin: 10px 0;
  text-decoration: none;
  font-size: 0.95em;
  white-space: normal;
}

.gfl-bouton-secondaire:hover {
  background-color: #c02227;
  color: #fff;
  box-shadow: 0 0 10px rgba(192, 34, 39, 0.5);
}
.alert_avatar_inscription{
    display:none;
}
.info_user_inscription {
  text-align: center;
  margin-top: 10px;
  font-family: 'Open Sans', sans-serif;
}

.user_grade_inscription {
  font-size: 1.1em;
  font-weight: bold;
  color: #c02227; /* Rouge Gospel */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.user_name_inscription {
  font-size: 1.4em;
  font-weight: 800;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.2em;
}

.user_name_inscription span:first-child {
  text-transform: capitalize;
}

.user_name_inscription span:last-child {
  text-transform: uppercase;
}

.user_company_inscription {
  font-size: 0.95em;
  color: #555;
  font-style: italic;
}
.em-notice-success {
  position: relative;
  background-color: #e6f4e6;
  border-left: 6px solid #008000;
  color: #006400;
  padding: 15px 20px 15px 55px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 128, 0, 0.1);
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  font-family: 'Open Sans', sans-serif;
}

.em-notice-success::before {
  content: '✔️';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
}

.em-notice-success p {
  margin: 0;
}