body.lei-sensitive-unlocked .button-sensitive {
  display: none !important;
}

ul.lei-guest-list {
  list-style-type: none;
  padding-inline-start: 0px;
}

ul.lei-guest-list li.lei-guest-item:not(:first-child) {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--wp--preset--color--brand-blue);
}

/* Cache le wrapper si le paragraphe est vide */
.event-compte-rendu-wrapper:has(.event-compte-rendu:empty) {
  display: none !important;
}





/* =========================================================
   LEI — Event Registration (Modal + Form)
   Design system aligné avec le thème Swebetech (FSE)
   ========================================================= */

/* ---------- Variables locales (hérite des presets WP) ---------- */
#leiEventReg {
  --lei-text: var(--wp--preset--color--text);
  --lei-bg: var(--wp--preset--color--background);
  --lei-coral: var(--wp--preset--color--brand-coral);
  --lei-blue: var(--wp--preset--color--brand-blue);

  --lei-radius-lg: 20px;
  --lei-radius-md: 14px;
  --lei-radius-pill: 100rem;

  --lei-border: rgba(0, 0, 0, .14);
  --lei-border-strong: rgba(0, 0, 0, .20);

  --lei-shadow: 0 10px 25px rgba(0, 0, 0, .10);
  --lei-shadow-hover: 0 18px 45px rgba(0, 0, 0, .14);

  --lei-ease: cubic-bezier(.2, .8, .2, 1);
  --lei-ring: 0 0 0 4px rgba(255, 107, 89, .22);
  /* ring coral */

  --lei-gap: var(--wp--preset--spacing--20);
  --lei-gap-sm: var(--wp--preset--spacing--10);
  --lei-gap-md: var(--wp--preset--spacing--30);
}

/* ---------- Base overlay ---------- */
.lei-event-reg {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  color: var(--lei-text);
}

.lei-event-reg.is-open {
  display: block;
}

.lei-event-reg[aria-hidden="true"] {
  display: none;
}

/* Backdrop */
.lei-event-reg__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
}

/* Dialog */
.lei-event-reg__dialog {
  position: relative;
  width: min(720px, calc(90vw - 2 * var(--wp--preset--spacing--20)));
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: scroll;
  margin: 6vh auto;
  background: var(--lei-bg);
  border-radius: var(--lei-radius-lg);
  padding: var(--wp--preset--spacing--40);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  transform: translateY(0);
  transition: transform .22s var(--lei-ease), box-shadow .22s var(--lei-ease);
  border: 1px solid rgba(255, 255, 255, .10);
}

/* Petite animation d’entrée */
.lei-event-reg.is-open .lei-event-reg__dialog {
  animation: lei-modal-pop .22s var(--lei-ease);
}

@keyframes lei-modal-pop {
  from {
    transform: translateY(8px);
    opacity: .92;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Close */
.lei-event-reg__close {
  position: absolute;
  top: 14px;
  right: 14px;

  width: 44px;
  height: 44px;
  border-radius: var(--lei-radius-pill);
  border: 1px solid rgba(0, 0, 0, .10);
  background: rgba(0, 0, 0, .04);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  line-height: 1;
  cursor: pointer;

  transition: transform .22s var(--lei-ease), background-color .22s var(--lei-ease), border-color .22s var(--lei-ease);
}

.lei-event-reg__close:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, .06);
  border-color: rgba(0, 0, 0, .14);
}

.lei-event-reg__close:active {
  transform: translateY(0) scale(.98);
}

.lei-event-reg__close:focus {
  outline: none;
}

.lei-event-reg__close:focus-visible {
  box-shadow: var(--lei-ring);
}

/* Title + hint */
.lei-event-reg__dialog h3 {
  margin: 0;
}

.lei-event-reg__hint {
  margin-top: 8px;
  margin-bottom: 0;
  opacity: .85;
}

/* Messages */
.lei-event-reg__messages {
  margin: var(--wp--preset--spacing--30) 0 0;
  padding: 12px 14px;
  border-radius: var(--lei-radius-md);
  font-weight: 600;
  border: 1px solid transparent;
}

.lei-event-reg__messages.info {
  background: rgba(0, 0, 0, .05);
  border-color: rgba(0, 0, 0, .08);
}

.lei-event-reg__messages.success {
  background: rgba(25, 135, 84, .12);
  border-color: rgba(25, 135, 84, .18);
}

.lei-event-reg__messages.error {
  background: rgba(220, 53, 69, .10);
  border-color: rgba(220, 53, 69, .18);
}

/* ---------- Form layout ---------- */
.lei-event-reg__form {
  margin-top: var(--wp--preset--spacing--30);
}

.lei-event-reg__form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 8px;
}

/* Inputs / selects : même logique que ton thème (modern, clean, accessible) */
.lei-event-reg__form input,
.lei-event-reg__form select {
  width: 100%;
  width: -moz-available;
  width: -webkit-fill-available;
  width: stretch;
  min-height: 30px;
  padding: 10px 14px;

  border-radius: var(--lei-radius-md);
  border: 1px solid var(--lei-border);
  background: var(--lei-bg);
  color: var(--lei-text);

  transition:
    border-color .22s var(--lei-ease),
    box-shadow .22s var(--lei-ease),
    transform .22s var(--lei-ease),
    filter .22s var(--lei-ease);
}

.lei-event-reg__form input::placeholder {
  opacity: .6;
}

/* Focus : ring cohérent boutons */
.lei-event-reg__form input:focus,
.lei-event-reg__form select:focus {
  outline: none;
  border-color: rgba(255, 107, 89, .55);
  box-shadow: var(--lei-ring);
}

/* Hover léger */
.lei-event-reg__form input:hover,
.lei-event-reg__form select:hover {
  border-color: var(--lei-border-strong);
}

/* ---------- Fieldset type (radio) ---------- */
.lei-event-reg__fieldset {
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: var(--lei-radius-lg);
  padding: var(--wp--preset--spacing--30);
  margin: 0;

  background: rgba(0, 0, 0, .02);
}

.lei-event-reg__fieldset legend {
  padding: 0 10px;
  font-weight: 700;
}

/* Radio rows : façon “cards” */
.lei-radio {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 14px;
  border-radius: var(--lei-radius-md);
  border: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .55);

  cursor: pointer;
  user-select: none;

  transition:
    transform .22s var(--lei-ease),
    box-shadow .22s var(--lei-ease),
    border-color .22s var(--lei-ease),
    background-color .22s var(--lei-ease);
}

.lei-radio+.lei-radio {
  margin-top: 12px;
}

.lei-radio:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, .14);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

/* Input radio custom (look proche de ton screenshot mais “site-like”) */
.lei-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;

  width: 22px;
  height: 22px;
  padding: 0px;
  min-height: auto;
  border-radius: 999px;

  border: 2px solid rgba(0, 0, 0, .25);
  background: #fff;

  display: inline-grid;
  place-content: center;

  margin: 0;
  margin-right: 10px;
  cursor: pointer;

  transition: border-color .22s var(--lei-ease), box-shadow .22s var(--lei-ease), transform .22s var(--lei-ease);
}

/* Pastille */
.lei-radio input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform .18s var(--lei-ease);
  background: var(--lei-blue);
}

/* Checked */
.lei-radio input[type="radio"]:checked {
  border-color: rgba(89, 156, 255, .85);
  box-shadow: 0 0 0 4px rgba(89, 156, 255, .18);
}

.lei-radio input[type="radio"]:checked::before {
  transform: scale(1);
}

/* Highlight whole row when checked */
.lei-radio:has(input[type="radio"]:checked) {
  border-color: rgba(89, 156, 255, .30);
  background: rgba(89, 156, 255, .06);
}

/* Texte */
.lei-radio span {
  font-weight: 600;
}

/* ---------- Panels ---------- */
.lei-event-reg__panel {
  margin-top: var(--wp--preset--spacing--30);
}

/* Grid prénom/nom */
.lei-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--preset--spacing--20);
}

/* ---------- Buttons (reprend EXACTEMENT la logique des boutons thème) ---------- */
.lei-btn {
  /* variables proches de .primary-button */
  --btn-bg: var(--lei-coral);
  --btn-fg: var(--lei-bg);
  --btn-border: var(--lei-coral);

  --btn-shadow: 0 10px 25px rgba(0, 0, 0, .10);
  --btn-shadow-hover: 0 18px 45px rgba(0, 0, 0, .14);
  --btn-ring: 0 0 0 4px rgba(255, 107, 89, .28);

  --btn-translate-hover: -2px;
  --btn-translate-active: 0px;

  --btn-ease: cubic-bezier(.2, .8, .2, 1);

  width: 100%;
  margin-top: var(--wp--preset--spacing--30);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;

  min-height: 52px;
  padding: .9rem 1.15rem;

  line-height: 1;
  font-weight: 700;
  letter-spacing: .01em;

  border-radius: var(--lei-radius-pill);
  border-style: solid;
  border-width: 1px;

  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-border);

  box-shadow: var(--btn-shadow);
  transform: translateY(0);

  transition:
    transform .22s var(--btn-ease),
    box-shadow .22s var(--btn-ease),
    filter .22s var(--btn-ease),
    background-color .22s var(--btn-ease),
    color .22s var(--btn-ease),
    border-color .22s var(--btn-ease);

  will-change: transform, box-shadow;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;

  cursor: pointer;
}

/* Shine subtil */
.lei-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .40), rgba(255, 255, 255, 0) 45%);
  opacity: .35;
  mix-blend-mode: overlay;
  transition: opacity .22s var(--btn-ease);
}

/* Sheen animé */
.lei-btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -140%;
  width: 120%;
  height: 220%;
  pointer-events: none;

  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0) 22%,
      rgba(255, 255, 255, .18) 35%,
      rgba(255, 255, 255, .55) 50%,
      rgba(255, 255, 255, .18) 65%,
      rgba(255, 255, 255, 0) 78%,
      transparent 100%);

  transform: translateX(0) skewX(-20deg);
  opacity: 0;
  filter: blur(0.2px);
}

.lei-btn:hover {
  transform: translateY(var(--btn-translate-hover));
  box-shadow: var(--btn-shadow-hover), 0 0 0 1px rgba(255, 107, 89, .20), 0 18px 50px rgba(255, 107, 89, .18);
  filter: saturate(1.05);
}

.lei-btn:hover::before {
  opacity: .55;
}

.lei-btn:hover::after {
  opacity: 1;
  animation: lei-btn-sheen 1.5s var(--btn-ease);
}

@keyframes lei-btn-sheen {
  0% {
    transform: translateX(0) skewX(-20deg);
  }

  100% {
    transform: translateX(260%) skewX(-20deg);
  }
}

.lei-btn:active {
  transform: translateY(var(--btn-translate-active)) scale(.99);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  filter: saturate(1.0);
}

.lei-btn:focus {
  outline: none;
}

.lei-btn:focus-visible {
  box-shadow: var(--btn-shadow), var(--btn-ring);
}

/* Loader/text */
.lei-btn__loader {
  font-weight: 800;
}

/* Disabled */
.lei-btn:disabled,
.lei-btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.lei-btn:disabled::after {
  display: none;
}

/* Ghost */
.lei-btn--ghost {
  --btn-bg: var(--lei-bg);
  --btn-fg: var(--lei-text);
  --btn-border: rgba(0, 0, 0, .20);

  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.lei-btn--ghost::after {
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(40, 40, 40, 0) 22%,
      rgba(40, 40, 40, .12) 35%,
      rgba(40, 40, 40, .35) 50%,
      rgba(40, 40, 40, .12) 65%,
      rgba(40, 40, 40, 0) 78%,
      transparent 100%);
}

.lei-btn--ghost:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, .10);
  filter: brightness(1.03) saturate(1.02);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .lei-event-reg__dialog {
    margin: 3vh auto;
    padding: var(--wp--preset--spacing--30);
  }

  .lei-grid {
    grid-template-columns: 1fr;
  }

  .lei-event-reg__fieldset {
    padding: var(--wp--preset--spacing--20);
  }
}

/* Désactive sheen si pas de hover (perf) */
@media (hover: none) {
  .lei-btn::after {
    display: none;
  }
}

/* Optionnel : éviter scroll body quand modale ouverte (si tu ajoutes class JS) */
.no-scroll .lei-event-reg {
  overscroll-behavior: contain;
}