/* DefPro — animations & composants (Tailwind pour le layout) */

.font-display {
  font-family: "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.defpro-main {
  min-height: 60vh;
}

/* Header / nav */
.defpro-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(71 45 70);
  transition: background 0.2s, color 0.2s;
}
.defpro-nav__link:hover {
  background: rgb(243 232 245);
  color: rgb(122 74 121);
}
.defpro-nav__link--active {
  background: linear-gradient(135deg, rgb(146 92 145), rgb(192 38 211));
  color: #fff;
}
.defpro-nav-mobile .defpro-nav__link {
  display: block;
  margin-bottom: 0.25rem;
}

/* Hero */
.defpro-hero {
  --hero-slide-duration: 11s;
  --hero-fade-duration: 2s;
  min-height: min(88vh, 720px);
}
.defpro-hero__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.defpro-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity var(--hero-fade-duration) ease-in-out;
}
.defpro-hero__slide--active {
  opacity: 1;
  z-index: 1;
}
.defpro-hero__slide-bg {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  will-change: transform, opacity;
}
.defpro-hero__slide--active .defpro-hero__slide-bg {
  animation: defpro-hero-kenburns var(--hero-slide-duration) linear forwards;
}
/* Slide sortante : conserve le zoom pendant le fondu (géré en JS) */
@keyframes defpro-hero-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.09);
  }
}
.defpro-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(30 20 35 / 0.25) 0%, rgb(30 20 35 / 0.45) 100%),
    linear-gradient(120deg, rgb(71 45 70 / 0.62) 0%, rgb(71 45 70 / 0.38) 55%, rgb(100 50 110 / 0.4) 100%);
}
.defpro-hero__content h1,
.defpro-hero__content p,
.defpro-hero__content .defpro-badge {
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.35);
}
.defpro-hero__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.4);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.defpro-hero__dot--active {
  background: #fff;
  transform: scale(1.35);
}

.defpro-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgb(255 255 255 / 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
}

/* Buttons */
.defpro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.defpro-btn:hover {
  transform: translateY(-2px);
}
.defpro-btn--primary {
  background: linear-gradient(135deg, #925c91, #c026d3);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgb(192 38 211 / 0.5);
}
.defpro-btn--ghost {
  border: 2px solid rgb(255 255 255 / 0.7);
  color: #fff;
  backdrop-filter: blur(4px);
}
.defpro-btn--ghost:hover {
  background: rgb(255 255 255 / 0.12);
}
.defpro-btn--outline {
  border: 2px solid rgb(146 92 145);
  color: rgb(122 74 121);
  background: #fff;
}
.defpro-btn--outline:hover {
  background: rgb(243 232 245);
}
.defpro-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}
.defpro-btn__spinner {
  display: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: defpro-spin 0.65s linear infinite;
  flex-shrink: 0;
}
.defpro-btn.is-loading {
  pointer-events: none;
  cursor: wait;
  transform: none;
}
.defpro-btn.is-loading .defpro-btn__spinner {
  display: inline-block;
}
.defpro-btn.is-loading .defpro-btn__label {
  opacity: 0.92;
}
@keyframes defpro-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Stats */
.defpro-stats {
  margin-top: -3rem;
  position: relative;
  z-index: 5;
}
.defpro-stats__inner {
  border-radius: 2rem;
  border: 2px solid rgb(232 208 236);
  background: linear-gradient(180deg, #fff 0%, rgb(250 245 251) 100%);
  padding: 2rem 1.5rem;
  box-shadow:
    0 12px 40px -12px rgb(71 45 70 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.9);
}
@media (min-width: 640px) {
  .defpro-stats__inner {
    padding: 2.5rem 2rem;
    border-radius: 2.25rem;
  }
}
.defpro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1.25rem 1rem;
  text-align: center;
  border-radius: 1.25rem;
  border: 1.5px solid rgb(232 208 236);
  background: #fff;
  box-shadow: 0 4px 16px -4px rgb(146 92 145 / 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.defpro-stat:hover {
  border-color: rgb(212 168 217);
  box-shadow: 0 8px 24px -6px rgb(192 38 211 / 0.15);
  transform: translateY(-2px);
}
.defpro-stat__value {
  display: block;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: rgb(122 74 121);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.defpro-stat__suffix {
  font-size: 1.125rem;
  font-weight: 700;
}
.defpro-stat__label {
  display: block;
  margin-top: 0.5rem;
  max-width: 11rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgb(100 116 139);
}

/* Catalogue */
.defpro-catalog {
  padding-bottom: 2.5rem;
}
.defpro-catalog--compact {
  padding-top: 0.5rem;
  padding-bottom: 0;
}
.defpro-catalog-cta {
  padding-top: 2.5rem;
}

/* Cards */
.defpro-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgb(232 208 236);
  background: #fff;
  box-shadow: 0 12px 40px -12px rgb(71 45 70 / 0.12);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s;
}
.defpro-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -12px rgb(192 38 211 / 0.25);
}
.defpro-card__media {
  position: relative;
  aspect-ratio: 3/4;
}
.defpro-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.defpro-card:hover .defpro-card__img {
  transform: scale(1.05);
}
.defpro-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #c026d3, #e879f9);
  color: #fff;
}
.defpro-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1rem 1.25rem;
}
.defpro-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgb(71 45 70);
}
.defpro-card__title a:hover {
  color: rgb(192 38 211);
}
.defpro-card__rating {
  font-size: 0.75rem;
  color: rgb(192 38 211);
  font-weight: 600;
}
.defpro-card__session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: rgb(71 85 105);
}
.defpro-card__session-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: rgb(148 163 184);
}
.defpro-card__session-dot--open {
  background: rgb(34 197 94);
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.25);
}
.defpro-card__spots {
  margin-left: auto;
  font-weight: 600;
  color: rgb(34 197 94);
}
.defpro-card__price {
  font-weight: 700;
  color: rgb(122 74 121);
}

/* Sessions list (detail & agenda) */
.defpro-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.defpro-session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(241 245 249);
  background: #fff;
  font-size: 0.875rem;
}
.defpro-session--open,
.defpro-session--available {
  border-color: rgb(187 247 208);
  background: rgb(240 253 244);
}
.defpro-session--full {
  opacity: 0.85;
  background: rgb(248 250 252);
}
.defpro-session--past {
  opacity: 0.7;
  background: rgb(248 250 252);
  border-color: rgb(226 232 240);
}
.defpro-session__badge {
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}
.defpro-session--open .defpro-session__badge,
.defpro-session--available .defpro-session__badge {
  background: rgb(34 197 94);
  color: #fff;
}
.defpro-session--full .defpro-session__badge {
  background: rgb(148 163 184);
  color: #fff;
}
.defpro-session--past .defpro-session__badge {
  background: rgb(100 116 139);
  color: #fff;
}
.defpro-session__spots {
  font-weight: 700;
  color: rgb(22 163 74);
}

/* Agenda */
.defpro-agenda-block {
  scroll-margin-top: 6rem;
}
.defpro-agenda-block + .defpro-agenda-block {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgb(232 208 236);
}
.defpro-agenda__thumb {
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgb(232 208 236);
  box-shadow: 0 8px 24px -8px rgb(71 45 70 / 0.15);
  width: min(100%, 11rem);
  margin: 0 auto;
}
@media (min-width: 640px) {
  .defpro-agenda__thumb {
    width: 10.5rem;
    margin: 0;
  }
}
.defpro-agenda__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

/* Inscription */
.defpro-inscription {
  margin-top: 4rem;
}
.defpro-inscription__card {
  position: relative;
  z-index: 1;
  overflow: visible;
  border-radius: 1.5rem;
  border: 1px solid rgb(232 208 236);
  background: #fff;
  box-shadow: 0 12px 40px -12px rgb(71 45 70 / 0.18);
}
.defpro-inscription__feedback {
  position: relative;
  z-index: 2;
  margin-bottom: 1.25rem;
}
.defpro-inscription__feedback:last-of-type {
  margin-bottom: 1.5rem;
}
.defpro-inscription__header {
  padding: 0 1.25rem;
  background: linear-gradient(180deg, rgb(243 232 245) 0%, #fff 100%);
  border-radius: 1.5rem 1.5rem 0 0;
  border-bottom: 1px solid rgb(241 245 249);
}
.defpro-inscription__header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.5rem 1.25rem;
  text-align: center;
}
.defpro-inscription__avatar {
  position: relative;
  z-index: 3;
  width: 9.5rem;
  height: 11.5rem;
  margin-top: -5.75rem;
  border-radius: 1.25rem;
  border: 4px solid #fff;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 12px 28px -8px rgb(71 45 70 / 0.35);
}
.defpro-inscription__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgb(232 208 236), rgb(243 232 245));
  font-size: 2rem;
  color: rgb(146 92 145);
}
.defpro-inscription__header-kicker {
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(146 92 145);
}
.defpro-inscription__header-title {
  margin-top: 0.25rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: rgb(71 45 70);
  letter-spacing: -0.02em;
}
.defpro-inscription__header-inner--empty .defpro-inscription__header-title {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.defpro-inscription__header-sub {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: rgb(100 116 139);
}
.defpro-inscription__header-session {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(22 163 74);
}
.defpro-inscription__header-price {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: rgb(192 38 211);
}
.defpro-inscription__header-price span {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(100 116 139);
}
.defpro-inscription__body {
  padding: 1.5rem 1.5rem 2rem;
}
@media (min-width: 640px) {
  .defpro-inscription__body {
    padding: 1.75rem 2rem 2.25rem;
  }
}

/* Forms */
.defpro-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(71 45 70);
}
.defpro-form input:not([type="checkbox"]):not([type="radio"]),
.defpro-form select,
.defpro-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(212 168 217);
  background: #fff;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.defpro-form__checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.defpro-form__checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: rgb(51 65 85);
  line-height: 1.4;
}
.defpro-form__checkbox input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: rgb(146 92 145);
  cursor: pointer;
}
.defpro-form input:not([type="checkbox"]):not([type="radio"]):focus,
.defpro-form select:focus,
.defpro-form textarea:focus {
  outline: none;
  border-color: rgb(192 38 211);
  box-shadow: 0 0 0 3px rgb(192 38 211 / 0.15);
}
.defpro-alert {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.defpro-alert--success {
  background: rgb(220 252 231);
  color: rgb(22 101 52);
  border: 1px solid rgb(134 239 172);
}
.defpro-alert--error {
  background: rgb(254 226 226);
  color: rgb(153 27 27);
  border: 1px solid rgb(252 165 165);
}

/* Page header */
.defpro-page-head {
  padding: 3rem 0 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgb(250 245 251) 0%, transparent 100%);
}
.defpro-page-head h1 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgb(71 45 70);
}
.defpro-page-head p {
  margin-top: 0.75rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  color: rgb(100 116 139);
}

/* Reveal on scroll */
.defpro-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.defpro-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.defpro-reveal--delay-1 { transition-delay: 0.1s; }
.defpro-reveal--delay-2 { transition-delay: 0.2s; }
.defpro-reveal--delay-3 { transition-delay: 0.3s; }

/* Content prose */
.defpro-prose section {
  margin-bottom: 2rem;
}
.defpro-prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(122 74 121);
  margin-bottom: 0.5rem;
}
.defpro-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: rgb(71 85 105);
}
.defpro-prose li + li {
  margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .defpro-reveal,
  .defpro-hero__slide,
  .defpro-hero__slide--active,
  .defpro-card {
    transition: none !important;
    animation: none !important;
  }
  .defpro-hero__slide--active .defpro-hero__slide-bg {
    animation: none;
    transform: scale(1);
  }
  .defpro-reveal {
    opacity: 1;
    transform: none;
  }
}
