/* ==========================================================================
   Activation Ticket Officiel — Landing page redesign
   Design system : fond blanc, accents noir / rouge sur sections ciblées.
   Mobile-first, premium, animations légères.
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f6f6f8;
  --color-surface: #ffffff;
  --color-surface-alt: #fafafb;
  --color-border: #e8e8ec;
  --color-border-light: #dcdce3;

  --color-red: #ef1428;
  --color-red-dark: #b60d1e;
  --color-red-light: #ff4b5c;
  --color-red-ink: #c20d21;
  --color-red-glow: rgba(239, 20, 40, 0.18);

  --color-black: #0a0a0d;
  --color-white: #ffffff;
  --color-text: #17171c;
  --color-text-muted: #5b5b66;
  --color-text-faint: #86868f;

  --color-success: #16a34a;
  --color-error: #d21329;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(20, 20, 30, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 20, 30, 0.1);
  --shadow-lg: 0 24px 60px rgba(20, 20, 30, 0.14);
  --shadow-red: 0 10px 26px rgba(239, 20, 40, 0.28);

  --container-max: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sections sombres ciblées (footer, bande partenaires...) : on réinjecte la
   palette foncée localement, tous les composants enfants suivent via les
   tokens sans dupliquer leurs règles. */
.lp-dark-section {
  --color-bg: var(--color-black);
  --color-bg-soft: #111114;
  --color-surface: #17171c;
  --color-surface-alt: #1c1c22;
  --color-border: #2a2a32;
  --color-border-light: #34343d;
  --color-text: #f4f4f6;
  --color-text-muted: #a7a7b3;
  --color-text-faint: #75757f;
  background: var(--color-bg);
  color: var(--color-text);
}

/* ---------- Reset & base ---------- */
.lp * {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

.lp {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

.lp img {
  max-width: 100%;
  display: block;
}

.lp a {
  color: inherit;
  text-decoration: none;
}

.lp ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp button {
  font-family: inherit;
}

.lp .container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.lp section {
  position: relative;
}

.lp .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-red-ink);
  margin-bottom: 14px;
}

.lp-dark-section .eyebrow {
  color: var(--color-red-light);
}

.lp .eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 0 4px var(--color-red-glow);
}

.lp h1, .lp h2, .lp h3, .lp h4 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0;
}

.lp .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.lp .section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 14px;
}

.lp .section-head p {
  color: var(--color-text-muted);
  font-size: 17px;
}

.lp :focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

.lp .skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-red);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top 0.2s var(--ease);
}

.lp .skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.lp .btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.lp .btn-primary {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.lp .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(239, 20, 40, 0.35);
}

.lp .btn-primary:active {
  transform: translateY(0);
}

.lp .btn-lg {
  padding: 18px 40px;
  font-size: 16px;
}

.lp .btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.lp .btn-ghost:hover {
  border-color: var(--color-red);
  color: var(--color-red-ink);
}

.lp-dark-section .btn-ghost:hover {
  color: var(--color-white);
}

.lp .btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-light);
}

.lp .btn-outline:hover {
  border-color: var(--color-red);
  background: var(--color-red-glow);
}

.lp .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.lp .btn.is-loading {
  color: transparent !important;
  pointer-events: none;
  transform: none !important;
}

.lp .btn.is-loading svg {
  visibility: hidden;
}

.lp .btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lp-spin 0.7s linear infinite;
}

.lp .btn-ghost.is-loading::after,
.lp .btn-outline.is-loading::after {
  border-color: rgba(23, 23, 28, 0.25);
  border-top-color: var(--color-text);
}

.lp .lp-icon-btn.is-loading {
  pointer-events: none;
}

.lp .lp-icon-btn.is-loading svg {
  visibility: hidden;
}

.lp .lp-icon-btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border: 2px solid rgba(23, 23, 28, 0.2);
  border-top-color: var(--color-text-muted);
  border-radius: 50%;
  animation: lp-spin 0.7s linear infinite;
}

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

/* ---------- Header ---------- */
.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.lp #main-content {
  padding-top: var(--header-h);
}

.lp-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.lp-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

@media (min-width: 900px) {
  .lp-header .container {
    gap: 24px;
  }
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: clamp(13.5px, 3.6vw, 17px);
  color: var(--color-text);
  letter-spacing: -0.01em;
  min-width: 0;
  flex-shrink: 1;
}

.lp-brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-logo {
  height: 28px;
  width: auto;
  max-width: 44vw;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 480px) {
  .lp-logo {
    height: 32px;
    max-width: none;
  }
}

@media (min-width: 900px) {
  .lp-logo {
    height: 36px;
  }
}

.lp-nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.lp-nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.lp-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.25s var(--ease);
}

.lp-nav-links a:hover {
  color: var(--color-text);
}

.lp-nav-links a:hover::after {
  width: 100%;
}

.lp-nav-links a.is-active {
  color: var(--color-red-ink);
  font-weight: 700;
}

.lp-nav-links a.is-active::after {
  width: 100%;
}

.lp-mobile-menu a.is-active {
  color: var(--color-red-ink);
}

.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .lp-header-actions {
    gap: 14px;
  }
}

.lp-lang {
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 479px) {
  .lp-lang-btn span,
  .lp-lang-btn svg {
    display: none;
  }

  .lp-lang-btn {
    padding: 7px;
  }
}

.lp-lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.lp-lang-btn img {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
}

.lp-lang-btn svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  transition: transform 0.2s var(--ease);
}

.lp-lang.is-open .lp-lang-btn svg {
  transform: rotate(180deg);
}

.lp-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 170px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s var(--ease);
}

.lp-lang.is-open .lp-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lp-lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--color-text);
}

.lp-lang-menu a:hover {
  background: var(--color-red-glow);
  color: var(--color-red-ink);
}

.lp-lang-menu img {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
}

.lp-header .lp-cta-btn {
  display: none;
}

.lp-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  color: var(--color-text);
  cursor: pointer;
}

.lp-burger svg {
  width: 20px;
  height: 20px;
}

.lp-mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
}

.lp-mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.lp-mobile-menu a {
  padding: 16px 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.lp-mobile-menu .lp-cta-btn {
  margin-top: 18px;
  width: 100%;
}

@media (min-width: 900px) {
  .lp-nav-links {
    display: flex;
  }

  .lp-header .lp-cta-btn {
    display: inline-flex;
  }

  .lp-burger {
    display: none;
  }
}

/* ---------- Hero ---------- */
.lp-hero {
  padding: 56px 0 80px;
  background:
    radial-gradient(circle at 88% 0%, rgba(239, 20, 40, 0.07), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(239, 20, 40, 0.05), transparent 45%),
    var(--color-bg);
  overflow: hidden;
}

.lp-hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.lp-hero-content h1 {
  font-size: clamp(34px, 5.4vw, 54px);
  letter-spacing: -0.02em;
}

.lp-hero-content .lp-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero-content p.lp-hero-subtitle {
  margin-top: 20px;
  font-size: 17.5px;
  color: var(--color-text-muted);
  max-width: 540px;
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.lp-hero-visual {
  display: none;
}

@media (min-width: 960px) {
  .lp-hero-visual {
    display: block;
    position: relative;
    height: 440px;
    justify-self: center;
    width: 100%;
    max-width: 380px;
  }
}

.lp-hero-photo {
  position: absolute;
  width: 260px;
  max-width: 74vw;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.lp-hero-photo img {
  border-radius: calc(var(--radius-lg) - 8px);
  width: 100%;
  height: auto;
}

.lp-hero-visual.is-visible .lp-hero-photo {
  opacity: 1;
  transform: translateY(0);
}

.lp-hero-photo--back {
  top: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-6deg) translateY(24px);
}

.lp-hero-visual.is-visible .lp-hero-photo--back {
  transform: rotate(-6deg) translateY(0);
  transition-delay: 0.05s;
  animation: lp-float-a 6s ease-in-out 0.8s infinite;
}

.lp-hero-photo--front {
  bottom: 0;
  right: 0;
  z-index: 2;
  width: 230px;
  transform: rotate(5deg) translateY(24px);
}

.lp-hero-visual.is-visible .lp-hero-photo--front {
  transform: rotate(5deg) translateY(0);
  transition-delay: 0.2s;
  animation: lp-float-b 7s ease-in-out 1s infinite;
}

.lp-hero-photo:hover {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  transform: rotate(0deg) translateY(-6px) scale(1.03) !important;
  box-shadow: 0 26px 55px rgba(20, 20, 30, 0.22);
  animation-play-state: paused;
  z-index: 3;
}

@keyframes lp-float-a {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-14px); }
}

@keyframes lp-float-b {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-photo--back,
  .lp-hero-photo--front {
    animation: none !important;
  }
}

@media (min-width: 960px) {
  .lp-hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .lp-hero-visual {
    justify-self: end;
  }
}

/* ---------- Reveal utility ---------- */
.lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lp-stagger .lp-reveal:nth-child(1) { transition-delay: 0.05s; }
.lp-stagger .lp-reveal:nth-child(2) { transition-delay: 0.15s; }
.lp-stagger .lp-reveal:nth-child(3) { transition-delay: 0.25s; }
.lp-stagger .lp-reveal:nth-child(4) { transition-delay: 0.35s; }

/* ---------- Partenaires (bande sombre dédiée + slide) ---------- */
.lp-partners {
  padding: 90px 0;
}

.lp-partners .section-head p {
  color: var(--color-text-muted);
}

.lp-partners-slider {
  margin-top: 44px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lp-partners-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: lp-marquee 26s linear infinite;
}

.lp-partners-slider:hover .lp-partners-track {
  animation-play-state: paused;
}

@keyframes lp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lp-partner-badge {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  width: 240px;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.lp-partner-badge img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .lp-partners-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

/* ---------- How it works ---------- */
.lp-how {
  padding: 100px 0;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.lp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.lp-step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.lp-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-red);
  box-shadow: var(--shadow-md);
}

.lp-step-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  box-shadow: var(--shadow-red);
  margin-bottom: 20px;
}

.lp-step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.lp-step-card p {
  color: var(--color-text-muted);
  font-size: 14.5px;
  margin: 0;
}

.lp-how-cta {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

@media (min-width: 700px) {
  .lp-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lp-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Activation form section ---------- */
.lp-form-section {
  padding: 70px 0 110px;
  background:
    radial-gradient(circle at 12% 0%, rgba(239, 20, 40, 0.07), transparent 40%),
    radial-gradient(circle at 100% 15%, rgba(239, 20, 40, 0.05), transparent 45%),
    var(--color-bg);
}

.lp-form-wrapper {
  width: 92%;
  max-width: 1600px;
  margin: 0 auto;
}

.lp-form-card form {
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 639px) {
  .lp-form-section .container {
    padding-inline: 0;
  }

  .lp-form-section .section-head,
  .lp-form-help {
    padding-inline: 20px;
  }

  .lp-form-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .lp-stepper {
    padding-inline: 20px;
  }

  .lp-form-card {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 26px 16px;
  }

  .lp-form-card form {
    max-width: 100%;
  }
}

/* ---------- Note d'aide sous le formulaire ---------- */
.lp-form-help {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

.lp-form-help a {
  color: var(--color-red-ink);
  font-weight: 700;
}

.lp-form-help a:hover {
  text-decoration: underline;
}

.lp-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.lp-stepper-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 220px;
}

.lp-stepper-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: var(--color-bg-soft);
  border: 2px solid var(--color-border-light);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}

.lp-stepper-item.is-active .lp-stepper-dot,
.lp-stepper-item.is-done .lp-stepper-dot {
  border-color: var(--color-red);
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: #fff;
  box-shadow: var(--shadow-red);
}

.lp-stepper-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-faint);
  display: none;
}

.lp-stepper-item.is-active .lp-stepper-label {
  color: var(--color-text);
}

.lp-stepper-line {
  flex: 1;
  height: 2px;
  background: var(--color-border-light);
  margin: 0 4px;
  position: relative;
  overflow: hidden;
}

.lp-stepper-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.lp-stepper.is-step-2 .lp-stepper-line::after {
  transform: scaleX(1);
}

@media (min-width: 560px) {
  .lp-stepper-label {
    display: block;
  }
}

.lp-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .lp-form-card {
    padding: 44px 48px;
  }
}

.lp-form-step {
  display: none;
}

.lp-form-step.is-active {
  display: block;
  animation: lp-step-in 0.45s var(--ease);
}

@keyframes lp-step-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.lp-form-step h3 {
  font-size: 21px;
  margin-bottom: 26px;
}

.lp-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .lp-field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lp-field-grid .lp-field-full {
    grid-column: 1 / -1;
  }
}

.lp-field-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .lp-field-split {
    grid-template-columns: 4fr 8fr;
  }
}

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
}

.lp-field label .req {
  color: var(--color-red);
}

.lp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lp-input-wrap svg.lp-input-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--color-text-faint);
  pointer-events: none;
}

.lp-field input[type="text"],
.lp-field input[type="email"],
.lp-field input[type="date"],
.lp-field input[type="tel"],
.lp-field input[type="password"] {
  width: 100%;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-light);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 13px 14px 13px 42px;
  font-size: 14.5px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lp-field input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px var(--color-red-glow);
}

.lp-field input.is-invalid {
  border-color: var(--color-error);
}

.lp-field input::placeholder {
  color: var(--color-text-faint);
}

.lp-error-text {
  font-size: 12.5px;
  color: var(--color-error);
  min-height: 1px;
}

.lp-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .lp-choice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lp-choice-grid.lp-choice-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.lp-choice-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.lp-choice-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.lp-choice-card .lp-choice-body {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--color-border-light);
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all 0.2s var(--ease);
}

.lp-choice-card .lp-choice-body svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--color-text-faint);
  transition: color 0.2s var(--ease);
}

.lp-choice-card input:checked + .lp-choice-body {
  border-color: var(--color-red);
  background: var(--color-red-glow);
  color: var(--color-red-ink);
  box-shadow: 0 0 0 3px var(--color-red-glow);
}

.lp-choice-card input:checked + .lp-choice-body svg {
  color: var(--color-red);
}

.lp-choice-card input:focus-visible + .lp-choice-body {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.lp-conditional {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease), margin-top 0.35s var(--ease);
}

.lp-conditional.is-open {
  max-height: 200px;
  opacity: 1;
  margin-top: 16px;
}

.lp-form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.lp-form-nav .lp-spacer {
  flex: 1;
}

.lp-recap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

@media (min-width: 560px) {
  .lp-recap {
    grid-template-columns: 1fr 1fr;
  }
}

.lp-recap-item dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  margin-bottom: 3px;
}

.lp-recap-item dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
  word-break: break-word;
}

/* ---------- Contact ---------- */
.lp-contact {
  padding: 100px 0;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
}

.lp-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .lp-contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.lp-contact-info {
  background: linear-gradient(160deg, var(--color-red-dark), #6d0712);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-red);
}

.lp-contact-info h3 {
  font-size: 21px;
  margin-bottom: 10px;
  color: #fff;
}

.lp-contact-info p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  margin: 0 0 26px;
}

.lp-contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.lp-contact-info svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.lp-contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
  .lp-contact-form {
    padding: 38px;
  }
}

.lp-contact-form textarea {
  width: 100%;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-light);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 14.5px;
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lp-contact-form textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px var(--color-red-glow);
}

.lp-contact-form .lp-field input {
  padding-left: 14px;
}

.lp-contact-form .lp-btn-row {
  margin-top: 22px;
}

/* ---------- Footer (toujours sombre) ---------- */
.lp-footer {
  padding: 64px 0 28px;
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 720px) {
  .lp-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.lp-footer-brand p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 320px;
}

.lp-footer h4 {
  font-size: 14.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 20px;
}

.lp-footer-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.lp-footer-links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}

.lp-footer-links a:hover {
  color: var(--color-red-light);
}

.lp-footer-legal p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin: 0;
}

.lp-footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lp-footer-bottom p {
  font-size: 13px;
  color: var(--color-text-faint);
  margin: 0;
}

.lp-footer-lang {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lp-footer-lang a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-faint);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-light);
}

.lp-footer-lang a:hover,
.lp-footer-lang a.is-active {
  color: var(--color-text);
  border-color: var(--color-red);
}

/* ---------- Pages admin (tableau des coupons, code d'accès) ---------- */
.lp-admin-main {
  padding: 40px 0 80px;
}

.lp-admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.lp-admin-head h1 {
  font-size: 24px;
}

.lp-admin-count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
}

.lp-admin-search {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.lp-admin-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-faint);
}

.lp-admin-search input {
  width: 100%;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-light);
  color: var(--color-text);
  border-radius: var(--radius-pill);
  padding: 11px 16px 11px 40px;
  font-size: 14px;
}

.lp-admin-search input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px var(--color-red-glow);
}

.lp-table-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.lp-table-scroll {
  overflow-x: auto;
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.lp-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  font-weight: 700;
  padding: 16px 18px;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.lp-table td {
  padding: 15px 18px;
  font-size: 14px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.lp-table tbody tr {
  transition: background 0.15s var(--ease);
}

.lp-table tbody tr:hover {
  background: var(--color-bg-soft);
}

.lp-table tbody tr:last-child td {
  border-bottom: none;
}

.lp-table tbody tr[hidden] {
  display: none;
}

.lp-table-name {
  font-weight: 600;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--color-red-glow);
  color: var(--color-red-ink);
  white-space: nowrap;
}

.lp-code-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-light);
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--color-text-muted);
}

.lp-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  color: var(--color-text-faint);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.lp-copy-btn svg {
  width: 13px;
  height: 13px;
}

.lp-copy-btn:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.lp-copy-btn.is-copied {
  border-color: var(--color-success);
  color: var(--color-success);
}

.lp-copy-btn .icon-check {
  display: none;
}

.lp-copy-btn.is-copied .icon-copy {
  display: none;
}

.lp-copy-btn.is-copied .icon-check {
  display: block;
}

.lp-table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.lp-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

.lp-icon-btn svg {
  width: 15px;
  height: 15px;
}

.lp-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.lp-icon-btn--success:hover { border-color: var(--color-success); color: var(--color-success); }
.lp-icon-btn--danger:hover { border-color: var(--color-error); color: var(--color-error); }
.lp-icon-btn--warning:hover { border-color: #b45309; color: #b45309; }
.lp-icon-btn--delete { color: var(--color-error); border-color: rgba(210, 19, 41, 0.25); }
.lp-icon-btn--delete:hover { background: var(--color-error); color: #fff; }

.lp-table-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--color-text-muted);
}

.lp-table-empty svg {
  width: 40px;
  height: 40px;
  color: var(--color-text-faint);
  margin-bottom: 14px;
}

/* ---------- Cartes coupons (mobile) ---------- */
.lp-coupon-cards {
  display: none;
}

.lp-coupon-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.lp-coupon-card[hidden] {
  display: none;
}

.lp-coupon-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.lp-coupon-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}

.lp-coupon-card-body > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-coupon-card-body dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
  flex-shrink: 0;
}

.lp-coupon-card-body dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
  word-break: break-word;
}

.lp-coupon-card .lp-table-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.lp-table-empty-card {
  display: none;
}

@media (max-width: 767px) {
  .lp-table-card--desktop {
    display: none;
  }

  .lp-coupon-cards {
    display: block;
  }

  .lp-table-empty-card {
    display: block;
  }
}

/* ---------- Pagination coupons ---------- */
.lp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.lp-pagination[hidden] {
  display: none;
}

.lp-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 10px);
  color: var(--color-text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.lp-page-btn:hover:not(:disabled) {
  border-color: var(--color-red);
  color: var(--color-red);
}

.lp-page-btn.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
}

.lp-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Page code d'accès ---------- */
.lp-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(239, 20, 40, 0.08), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(239, 20, 40, 0.06), transparent 45%),
    var(--color-bg);
}

.lp-gate-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lp-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--color-red), var(--color-black) 130%);
}

.lp-gate-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: #fff;
  box-shadow: var(--shadow-red);
}

.lp-gate-icon svg {
  width: 26px;
  height: 26px;
}

.lp-gate-card h1 {
  font-size: 21px;
  margin-bottom: 8px;
}

.lp-gate-card p.lp-gate-subtitle {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 26px;
}

.lp-gate-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(210, 19, 41, 0.08);
  border: 1px solid rgba(210, 19, 41, 0.25);
  color: var(--color-red-ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: left;
}

.lp-gate-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lp-gate-alert--success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.25);
  color: #15803d;
}

.lp-gate-links {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

.lp-gate-links a {
  color: var(--color-red-ink);
  font-weight: 700;
}

.lp-gate-links a:hover {
  text-decoration: underline;
}

.lp-gate-card .lp-field {
  text-align: left;
  margin-bottom: 22px;
}

.lp-gate-card .btn {
  width: 100%;
}

/* ---------- Toast (fallback léger, en plus de SweetAlert) ---------- */
.lp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-black);
  border: 1px solid #2a2a32;
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.lp-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Pages d'erreur (404, 403, 500...) ---------- */
.lp-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(239, 20, 40, 0.1), transparent 45%),
    radial-gradient(circle at 88% 88%, rgba(239, 20, 40, 0.07), transparent 45%),
    var(--color-bg);
}

.lp-error-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.lp-error-blob--a {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(239, 20, 40, 0.16), transparent 70%);
}

.lp-error-blob--b {
  width: 380px;
  height: 380px;
  bottom: -120px;
  right: -100px;
  background: radial-gradient(circle, rgba(10, 10, 13, 0.08), transparent 70%);
}

.lp-error-card {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 32px 40px;
  animation: lp-error-in 0.6s var(--ease);
}

@keyframes lp-error-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-error-card { animation: none; }
}

.lp-error-code {
  font-size: clamp(58px, 15vw, 88px);
  font-weight: 800;
  line-height: 1;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-red-light), var(--color-red) 55%, var(--color-black));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: #fff;
  box-shadow: var(--shadow-red);
}

.lp-error-icon svg {
  width: 30px;
  height: 30px;
}

.lp-error-card h1 {
  font-size: clamp(19px, 3.6vw, 24px);
  margin: 0 0 12px;
}

.lp-error-card p.lp-error-message {
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 30px;
}

.lp-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.lp-error-actions .btn {
  flex: 1 1 auto;
  min-width: 160px;
}

@media (max-width: 380px) {
  .lp-error-card {
    padding: 36px 22px 32px;
  }
}
