select,
input,
button,
textarea {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  -ms-appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
  font-family: system-ui !important;
}

/* Empêche le drag d’images/liens */
img,
a,
svg {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

html,
body {
  font-family: Nunito !important;
  overflow-x: hidden;
  -ms-overflow-style: none; /* IE et Edge */
  scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

:focus-visible {
  outline: var(--bde-brand-primary-color) auto 1px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-block-start: 0;
  margin-block-end: 0;
}

#adherent-container,
#calendar-events,
#historique-container,
#historiques-container,
#coach-container,
#adherent-container,
#mon-compte-container,
#accueil-container {
  width: 100%;
}

.event-places-left {
  min-height: 44px;
}

#calendar-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto;
}

.duration-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: black;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  color: white;
}

.event-card {
  background-color: var(--bde-brand-primary-color);
  background-size: 120%;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2 / 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 270px;
  flex-direction: column;
  justify-content: flex-end;
  transition: background-size 0.5s cubic-bezier(0.33, 1.5, 0.68, 1),
    box-shadow 0.25s cubic-bezier(0.33, 1.5, 0.68, 1),
    transform 0.25s cubic-bezier(0.33, 1.5, 0.68, 1);
}

.event-card:hover {
  background-size: 140%;
  box-shadow: 0 12px 32px rgba(30, 30, 30, 0.15), 0 2px 7px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px) scale(1.01);
}

@media (max-width: 767px) {
  .event-card:hover {
    background-size: 120%;
    box-shadow: none;
    transform: none;
  }
}

.nom-cours {
  text-align: left !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  color: white !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  text-shadow: 0px 0px 18px black !important;
  margin-bottom: 18px !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

.date-cours {
  margin-right: 9px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-shadow: 0px 0px 18px black !important;
}

.event-register-button {
  background: black;
  color: white;
  text-transform: uppercase;
  font-weight: 900;
  font-family: "Nunito";
  line-height: 1;

  padding: 12px;
  border: none;
  cursor: pointer;
}

.event-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  text-align: center;
}

.event-places-left {
  margin-block-start: 0;
  margin-block-end: 0;
  font-size: 14px;
  padding: 12px;
}

.event-card-content {
  width: 100%;
  padding: 12px 0 12px 12px;
  background: #00000080;
  color: white;
}

.event-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.event-info span {
  display: inline-block;
  font-size: 13px;
  text-align: left;
}

@media (max-width: 1024px) {
  #calendar-events {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #calendar-events {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  #calendar-events {
    grid-template-columns: 1fr;
  }
}

#historique-container {
  width: 100%;
}

.hist-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: inherit;
}
.hist-table thead tr th {
  background: none;
  color: #111;
  font-size: 15px;
  font-weight: bold;
  text-align: left;
  border: none;
  padding: 0 18px 6px 0;
}
.hist-table tbody tr {
  background: #fff;
  border-radius: 15px;
  border-bottom: solid 1px #d6d6d6;
  transition: box-shadow 0.2s;
}
#historique-container > div.hist-table-scroll > table > tbody > tr:last-child {
  border-bottom: none !important;
}
.hist-table tbody tr:hover {
  background: #ffe14c;
}
@media (max-width: 767px) {
  .hist-table tbody tr:hover {
    background: #fff !important;
  }
}
#historique-container
  > div.hist-table-scroll
  > table
  > tbody
  > tr
  > td:nth-child(1) {
  text-align: left;
}
.hist-table td {
  padding: 12px 8px 10px 8px;
  font-size: 14px;
  border: none;
  color: #222;
  vertical-align: middle;
}
.hist-table td:last-child {
  text-align: right;
}
.hist-table tbody tr:hover .show-inscrits,
.hist-table tbody tr:hover .show-coach-details {
  background: black !important;
  color: white !important;
}
@media (max-width: 767px) {
  .hist-table tbody tr:hover .show-inscrits,
  .hist-table tbody tr:hover .show-coach-details {
    background: #ffe14c !important;
    color: #222 !important;
  }
}
.hist-table .show-inscrits,
.hist-table .show-coach-details {
  background: #ffe14c;
  color: #222;
  border: none;
  border-radius: 99px;
  font-weight: bold;
  padding: 12px 18px;
  cursor: pointer;
}
.hist-table .show-inscrits:hover,
.hist-table .show-coach-details:hover {
  background: #fff3b0;
}

.hist-table .level-icon {
  margin-right: 4px;
  vertical-align: middle;
}

#hist-pagination,
#adherent-pagination,
#coach-pagination {
  text-align: center;
  width: 100%;
  margin: 24px auto 0 auto;
  position: relative;
  max-width: 380px;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#hist-pagination .pag-btn,
#adherent-pagination .pag-btn,
#coach-pagination .pag-btn {
  background: #dedede;
  border: none;
  border-radius: 99px;
  font-weight: bold;
  margin: 0 2px;
  color: #222;
  cursor: pointer;
  transition: background 0.17s;
  min-width: 32px;
  min-height: 32px;
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  font-size: 11px;
  line-height: 0;
}
/* === Historiques compact pager (keeps base style) === */

/* === Coach compact pager (same visual as historiques) === */
#coach-pagination .pag-btn.active,
#hist-pagination .pag-btn.active,
#adherent-pagination .pag-btn.active {
  background: #222 !important;
  color: #ffe14c !important;
}
#coach-pagination .pag-btn.nav,
#hist-pagination .pag-btn.nav,
#adherent-pagination .pag-btn.nav {
  font-weight: 900;
}
#coach-pagination .pag-btn.nav[disabled],
#hist-pagination .pag-btn.nav[disabled],
#adherent-pagination .pag-btn.nav[disabled] {
  opacity: 0.4;
  cursor: default;
}
#coach-pagination .pag-ellipsis,
#hist-pagination .pag-ellipsis,
#adherent-pagination .pag-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  padding: 0 4px;
  color: #cfcfcf;
  font-weight: 700;
  font-size: 11px;
}

/* ================================================ */
#hist-pagination .pag-btn[style*="background:#222"],
#adherent-pagination .pag-btn[style*="background:#222"],
#coach-pagination .pag-btn[style*="background:#222"] {
  background: #222 !important;
  color: #ffe14c !important;
}

@media (max-width: 900px) {
  #historique-container {
    overflow-x: unset !important;
  }

  #historique-container .hist-table-scroll,
  #coach-container .hist-table-scroll,
  #adherent-container .hist-table-scroll,
  #historique-container .hist-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: 12px;
  }
}

.hist-table thead tr th {
  display: none !important;
}

.pulse-spinner {
  min-width: 38px;
  min-height: 38px;
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  border: 4px solid #eee;
  border-top: 4px solid #ffe53f;
  border-radius: 50%;
  animation: pulse-spin 0.85s linear infinite;
  margin: 20px auto;
  display: block;
}

@keyframes pulse-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.event-date-label {
  display: none !important;
  font-size: 18px;
  font-weight: 900;
  margin: 22px 0 -12px 0;
  text-transform: uppercase;
  color: #171717;
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 767px) {
  .event-date-label {
    display: block !important;
  }
  #calendar-events > .event-date-label:nth-child(1) {
    margin: 0px 0 -12px 0 !important;
  }
}

@media (max-width: 480px) {
  .breakdance .bde-section-18-133 .section-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-bottom: 62px !important;
    padding-top: 62px !important;
  }
}

.titre-page-pulse {
  background-image: url(/wp-content/uploads/logo-orano-pulse.png);
  background-position: 0;
  background-repeat: no-repeat;
  background-position-x: 0px;
  background-size: 60px;
  padding: 20px 0 0 0;
  text-align: left;
  line-height: 0.9;
}

#force-sync-btn,
#add-adherent-btn,
#add-coach-btn {
  background: var(--bde-brand-primary-color);
  color: black;
  border: none;
  border-radius: 99px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 38px;
}

#logout-btn {
  background: var(--bde-brand-primary-color);
  border: none;
  border-radius: 99px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  font-weight: 700;
  padding: 12px 18px;
  line-height: 1;
}

#force-sync-btn > svg,
#add-adherent-btn > svg,
#add-coach-btn > svg {
  width: 18px;
  height: 18px;
}

.suppr-inscrit-btn {
  background: rgb(234, 39, 22);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 99px 0 0 99px;
  margin-left: auto;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  height: 28px;
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 24px;
  text-align: left;
  width: 100%;
}

.element-menu-mobile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  text-align: left;
}

.element-menu-mobile {
  text-decoration: none !important;
}

.element-menu-mobile > svg {
  width: 24px;
  height: 24px;
}

.element-menu-mobile > svg {
  stroke: #d7d7d7 !important;
  transition: all 200ms ease-in-out;
}

.element-menu-mobile:hover > svg {
  stroke: var(
    --bde-palette-color-1-a98fb641-d851-4d16-af91-038d01766471
  ) !important;
  transition: all 200ms ease-in-out;
}

.element-menu-mobile.active > svg {
  stroke: var(--bde-brand-primary-color) !important;
  transition: all 200ms ease-in-out;
}

.element-menu-mobile.active {
  border-bottom: solid 3px var(--bde-brand-primary-color) !important;
  padding-bottom: 12px;
  margin-bottom: -15px;
}

.element-menu-mobile-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0px;
  text-align: left;
  font-size: 10px;
  color: black !important;
  width: 100%;
}

.element-menu-mobile-bar {
  text-decoration: none !important;
}

.element-menu-mobile-bar > svg {
  width: 32px;
  height: 32px;
}

.element-menu-mobile-bar > svg {
  stroke: #000000c5 !important;
  transition: all 200ms ease-in-out;
}

h2.titre-page-pulse {
  font-size: 30px !important;
  font-weight: 900;
}

@media (max-width: 360px) {
  h2.titre-page-pulse {
    font-size: 26px !important;
  }
  .titre-page-pulse {
    background-size: 46px !important;
    padding: 14px 0 0 0 !important;
  }
}

@media (max-width: 767px) {
  #mon-compte-password {
    flex-direction: column !important;
  }
  #mon-compte-password > div {
    width: 100% !important;
    max-width: unset !important;
  }
  #app-content > div:nth-child(1) > div {
    align-items: start !important;
    margin-top: 24px !important;
  }
  #app-content > div:nth-child(1) > div > div:nth-child(1) {
    margin-top: 0px !important;
  }
  #app-content > div:nth-child(1) > p {
    line-height: 1.6 !important;
  }
  div.compte-intro #force-sync-block {
    width: 100% !important;
  }
  div.compte-intro > div > div {
    flex-direction: column !important;
  }
  div.compte-intro > div > div:nth-child(1) {
    display: none !important;
  }
  #mon-compte-main > div:nth-child(1) {
    width: 100% !important;
  }
  #mon-compte-info {
    text-align: center !important;
  }
}

@media (max-width: 767px) {
  #mon-compte-main {
    flex-direction: column !important;
  }
  #adherent-container > div:nth-child(1) {
    flex-direction: column-reverse !important;
    gap: 24px !important;
    width: 100% !important;
    align-items: flex-start !important;
  }
  #adh-search {
    width: 100% !important;
    max-width: unset !important;
    padding: 12px 12px !important;
  }
}

@media (max-width: 1023px) {
  .is-webapp section.bde-section-18-168.bde-section > div {
    padding-bottom: 24px;
  }
}

/* Masque l'app quand en paysage */
@media screen and (orientation: landscape) {
  #orientation-warning {
    display: flex !important;
  }
}
#orientation-warning {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: #fff;
  color: #111;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.limite-long-nom-intervention {
  display: inline-block;
  max-width: 140px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.limite-long-nom {
  display: inline-block;
  max-width: 230px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.limite-long-email {
  display: inline-block;
  max-width: 230px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .limite-long-nom-intervention {
    max-width: 140px;
  }
  .limite-long-nom {
    font-size: 12px;
    max-width: 140px;
    margin-bottom: -3px;
  }
  .limite-long-email {
    margin-top: -3px;
    font-size: 11px;
    max-width: 140px;
  }
}

.image-user-profil {
  min-width: 52px;
  width: 52px;
  max-width: 52px;
}

.image-profil-user {
  min-width: 38px;
  min-height: 38px;
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
  margin-bottom: -5px;
}

.nom-gestion {
  font-weight: bold;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: -8px;
}

.date-gestion {
  color: #666;
  font-size: 14px;
  margin-left: -8px;
}

.popup-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e1e1e1;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: black;
  height: 28px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 99px;
}

.popup-inscrit-row:nth-child(odd) {
  background-color: white;
}

.popup-inscrit-row:nth-child(even) {
  background-color: #f5f5f5;
}

.popup-caract {
  background-image: url(/wp-content/uploads/logo-orano-pulse-opacite-40.png) !important;
  background-position: -10px -20px !important;
  background-repeat: no-repeat !important;
  background-size: 110px !important;
}

.inscription-popup {
  background-image: none !important;
  background-position: none !important;
  background-repeat: none !important;
  background-size: none !important;
}

#historique-container > div > table > tbody > tr > td:nth-child(1) {
  padding: 12px 8px 10px 16px;
}

.popup-close-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 767px) {
  .is-webapp > section.bde-section-18-100.bde-section > div {
    padding-top: 0px !important;
  }
  .breakdance .bde-section-18-100,
  .breakdance .bde-section-18-168 {
    z-index: 10000 !important;
  }
  .popup-close-btn {
    height: 36px !important;
    width: 36px !important;
    top: 14px !important;
    right: 14px !important;
  }
  .popup-caract {
    padding-top: 60px !important;
  }
  .popup-close-btn svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 420px) {
  .image-profil-user {
    min-width: 28px !important;
    min-height: 28px !important;
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
  .image-user-profil {
    min-width: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
  }
  .nom-gestion {
    font-size: 12px;
  }
  .date-gestion {
    font-size: 11px;
  }
  #historique-container
    > div.hist-table-scroll
    > table
    > tbody
    > tr
    > td:nth-child(3) {
    display: none !important;
  }
}

.btn-spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#mentions-legales {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#mentions-legales h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: -6px;
}

#mentions-legales h2 {
  margin-bottom: -9px;
}

#mentions-legales h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: -12px;
}

form > label > input,
#mc-pwd1,
#mc-pwd2 {
  border-radius: 12px 45px 45px 12px !important;
  background-color: var(--bde-background-color) !important;
  line-height: 1 !important;
  padding: 12px 10px !important;
}

@media (max-width: 295px) {
  .event-info {
    flex-direction: column !important;
    align-items: flex-end !important;
    width: 100% !important;
  }
  .date-cours {
    width: 63% !important;
    margin-right: auto !important;
  }
  #calendar-events > div > div.event-card-content > div > span:nth-child(2) {
    width: fit-content !important;
    margin-top: -16px !important;
  }
  .event-card {
    background-size: cover !important;
  }
}
