/* ============================
   Variables & reset
   ============================ */

:root {
  --bg-top: #4b1c7d;
  --bg-bottom: #120434;
  --green-main: #1fb56a;
  --green-dark: #0c8b72;
  --blue-deep: #020617;
  --yellow: #1fb56a;
  --yellow-soft: #a7f3d0;
  --red-main: #e11d48;
  --red-dark: #b91c1c;
  --text-light: #f9fafb;
  --text-soft: #e5e7eb;
  --text-muted: #cbd5f5;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.5);
  --transition-fast: 160ms ease-out;
  --transition-normal: 220ms ease-out;
  --max-width: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at -10% -10%, rgba(16, 185, 129, 0.45), transparent 55%),
    radial-gradient(circle at 110% -10%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(circle at 50% 130%, rgba(15, 23, 42, 0.9), transparent 65%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 62%, #000000 100%);
  color: var(--text-light);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.page-wrapper::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(15, 23, 42, 0.65) 0, transparent 55%),
    radial-gradient(circle at 80% 0, rgba(15, 23, 42, 0.7) 0, transparent 55%),
    repeating-linear-gradient(
      -45deg,
      rgba(15, 23, 42, 0.6),
      rgba(15, 23, 42, 0.6) 1px,
      transparent 1px,
      transparent 6px
    );
  opacity: 0.4;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.main {
  flex: 1;
}

/* Layout helper */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================
   HEADER (titre + logo carte)
   ============================ */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.6rem 1.8rem 0.6rem;
}

.header__left {
  max-width: 560px;
}

.header__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.header__title {
  margin: 0 0 0.9rem;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header__title-line {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.header__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff7ed;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  transform: rotate(-10deg);
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.6);
}

.header__theme {
  border-left: 3px solid var(--green-main);
  padding-left: 0.7rem;
}

.header__theme-label {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.header__theme-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-soft);
}

.header__logo-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  transform: rotate(3deg);
}

.header__logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.header__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header__logo-card::before {
  content: "";
  position: absolute;
  inset: -10px -14px;
  border-radius: 26px;
  background: #ffffff;
  opacity: 0.9;
  z-index: -1;
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.65);
  transform: rotate(-4deg);
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.header__logo-subtitle {
  font-size: 0.68rem;
  color: #6b21a8;
  font-style: italic;
}

/* ============================
   HERO
   ============================ */

.hero {
  position: relative;
  padding: 1.2rem 1.8rem 2.6rem;
}

.hero__background {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 5% 10%, rgba(255, 255, 255, 0.07) 0, transparent 55%),
    radial-gradient(circle at 85% 5%, rgba(56, 189, 248, 0.22) 0, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(3, 79, 74, 0.85) 0, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1;
}

.hero__left {
  max-width: 560px;
  text-align: center;
}

.hero__value {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--yellow-soft);
}

.hero-cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.6);
}

.hero-theme {
  display: inline-block;
  width: 100%;
  max-width: 520px;
  padding: 0.9rem 1.1rem 1rem;
  margin-bottom: 1.4rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.75), transparent 60%),
    rgba(15, 23, 42, 0.85);
  border-left: 4px solid var(--yellow);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  text-align: left;
}

.hero-theme__label {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--yellow);
}

.hero-theme__text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-theme__highlight {
  color: var(--yellow);
}

.hero__date-time {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 1.4rem;
  justify-content: center;
}

.circle-card {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.circle-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0f766e;
  margin: 0 0 0.2rem;
}

.circle-card__main {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #4c1d95;
}

.circle-card__sub {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.circle-card--time {
  border: 4px solid #1d3557;
}

.circle-card__time {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1d3557;
}

.circle-card__center-tag {
  margin: 0.2rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #16a34a;
}

.hero__right {
  display: flex;
  justify-content: flex-end;
}

.speakers-stack {
  position: relative;
  width: 340px;
  height: 340px;
}

.speaker-card {
  position: absolute;
  border-radius: 32px;
  background: linear-gradient(135deg, #0b1120, #020617);
  border: 3px solid rgba(148, 163, 184, 0.7);
  box-shadow: var(--shadow-strong);
}

.speaker-card--back {
  top: -6%;
  left: -2%;
  width: 72%;
  height: auto;
  max-height: 92%;
  opacity: 0.95;
  border-color: rgba(34, 197, 94, 0.9);
  transform: translateX(-16px) rotate(-6deg);
}

.speaker-card--front {
  bottom: -8%;
  right: -44%;
  width: 62%;
  height: auto;
  max-height: 98%;
  border-color: var(--yellow);
  transform: translateX(4px) rotate(4deg);
  z-index: 2;
}

.speaker-card__photo {
  width: 100%;
  height: auto;
  min-height: 180px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  background: radial-gradient(circle at 10% 0, #10b981, #1e293b);
  overflow: hidden;
}

.speaker-card__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.speaker-card__label {
  padding: 0.55rem 0.8rem 0.75rem;
}

.speaker-card__label--regis {
  padding-top: 0.5rem;
  padding-bottom: 0.75rem;
}

.speaker-card__name {
  margin: 0 0 0.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow);
}

.speaker-card__role {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero__signature {
  position: absolute;
  bottom: -3.2rem;
  left: 4%;
  max-width: 260px;
}

.hero__signature-name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--yellow-soft);
}

.hero__signature-role {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================
   SECTION INTERVENANTS + FORM
   ============================ */

.section {
  padding: 2.4rem 1.8rem 2.8rem;
}

.section--middle {
  background: transparent;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
  justify-items: center;
}

.section__column--speakers {
  color: var(--text-soft);
}

.section__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.25), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.profile-card + .profile-card {
  margin-top: 0.9rem;
}

.profile-card__avatar-inner {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #022c22;
  background: radial-gradient(circle at 20% 0, #4ade80, #16a34a);
  border: 2px solid rgba(15, 23, 42, 0.9);
}

.profile-card__name {
  margin: 0 0 0.1rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-light);
}

.profile-card__role {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Formulaire */

.section__column--form {
  display: flex;
  justify-content: center;
  width: 100%;
}

#inscription {
  scroll-margin-top: 1.5rem;
}

.form-card {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
  padding: 1.8rem 1.9rem 2rem;
  border-top: 3px solid var(--yellow);
}

.form-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--yellow);
  text-align: center;
}

.form-card__subtitle {
  margin: 0 0 1.1rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form__row--two {
  flex-direction: column;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__input {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.7rem 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-light);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-normal);
}

.form__input::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.form__input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.6);
}

.form__input--select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.form__consent {
  margin-top: 0.2rem;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.form__checkbox {
  margin-top: 0.15rem;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  accent-color: var(--green-main);
}

.form__checkbox-text {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.form__consent-required {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--yellow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background 150ms ease-out;
}

.button--primary {
  width: 100%;
  background: linear-gradient(135deg, var(--green-main), var(--green-dark));
  color: #f9fafb;
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.55);
}

.button--primary:hover {
  transform: translateY(-1px) scale(1.01);
  background: linear-gradient(135deg, #22c55e, var(--green-dark));
}

.button--primary:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 10px 20px rgba(248, 113, 113, 0.55);
}

/* ============================
   BANDEAU BAS ROUGE + QR
   ============================ */

.bottom-banner {
  padding: 0 1.2rem 1.2rem;
}

.bottom-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  border-radius: 40px;
  background: linear-gradient(90deg, #3b0764, #1e093f);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.7);
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.bottom-banner__qr-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 3px solid #f9fafb;
}

.bottom-banner__qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f172a;
}

.bottom-banner__qr-square {
  position: absolute;
  background: #e5e7eb;
}

.bottom-banner__qr-square--1 {
  inset: 10% 10% 55% 10%;
}

.bottom-banner__qr-square--2 {
  inset: 48% 48% 18% 10%;
}

.bottom-banner__qr-square--3 {
  inset: 22% 64% 22% 64%;
}

.bottom-banner__qr-text {
  margin: 0.25rem 0 0;
  font-size: 0.7rem;
  color: #fee2e2;
}

.bottom-banner__text {
  flex: 1;
  text-align: center;
}

.bottom-banner__line {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fefce8;
}

.bottom-banner__line--secondary {
  margin-top: 0.15rem;
}

.bottom-banner__qr {
  flex-shrink: 0;
}

/* ============================
   FOOTER
   ============================ */

.footer {
  padding: 1.4rem 1.8rem 1.8rem;
  background: #020617;
  border-top: 1px solid #020617;
}

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer__copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================
   RESPONSIVE
   ============================ */

@media (min-width: 800px) {
  .hero__content {
    flex-direction: row;
    align-items: center;
  }

  .form__row--two {
    flex-direction: row;
  }

  .form__row--two .form__field {
    flex: 1;
  }
}

@media (max-width: 1024px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header__logo-card {
    align-self: center;
    margin-top: 0.6rem;
  }

  .header__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero {
    padding-inline: 1.1rem;
  }

  .section {
    padding-inline: 1.1rem;
  }

  .section__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__column--form {
    justify-content: stretch;
  }

  .bottom-banner__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bottom-banner__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bottom-banner__qr-placeholder {
    margin: 0 auto;
  }

  .bottom-banner__qr-text {
    text-align: center;
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
  }

  .bottom-banner__text {
    text-align: center;
  }

  .hero__date-time {
    justify-content: center;
  }

  .hero__right {
    justify-content: center;
    width: 100%;
    margin-top: 1.6rem;
  }

  .speakers-stack {
    position: static;
    width: 260px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .speaker-card {
    position: static;
    width: 100%;
    height: auto;
    transform: none;
  }

  .speaker-card__photo {
    min-height: 200px;
    height: auto;
  }
}

/* ============================
   Écran de chargement (logo filigrane + barre)
   ============================ */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #022c22 0%, #020617 50%, #000 100%);
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__watermark {
  position: absolute;
  inset: 0;
  background-image: url("/public/logo/logo-cep.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(50vw, 320px);
  opacity: 0.12;
  pointer-events: none;
}

.page-loader__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.page-loader__bar-wrap {
  width: min(280px, 85vw);
  height: 4px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.page-loader__bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 999px;
  animation: page-loader-progress 1.2s ease-in-out infinite;
}

@keyframes page-loader-progress {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(250%); }
  100% { transform: translateX(-100%); }
}

.page-loader__text {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  letter-spacing: 0.05em;
}

