/* Pages d'avant-première. La couleur vient du body. */

.page-profs {
  --ld-bg: #f4f7fb;
  --ld-hero-a: #f8fbff;
  --ld-hero-b: #e7eef8;
  --ld-ink: #10233f;
  --ld-muted: #5c6b80;
  --ld-accent: #1d4ed8;
  --ld-accent-d: #1e3a8a;
  --ld-soft: #e8f0fe;
  --ld-glow: rgba(37, 99, 235, 0.18);
  --ld-card: #ffffff;
  --ld-line: rgba(16, 35, 63, 0.08);
}
.page-coeur {
  --ld-bg: #f6f5fb;
  --ld-hero-a: #f7f5ff;
  --ld-hero-b: #ece7ff;
  --ld-ink: #1e1b4b;
  --ld-muted: #5b5678;
  --ld-accent: #ea580c;
  --ld-accent-d: #c2410c;
  --ld-soft: #efeaff;
  --ld-glow: rgba(79, 70, 229, 0.2);
  --ld-card: #ffffff;
  --ld-line: rgba(30, 27, 75, 0.08);
  --ld-indigo: #4f46e5;
}

.page-profs,
.page-coeur { background: var(--ld-bg); color: var(--ld-ink); }
.page-profs .site-footer,
.page-coeur .site-footer { margin-top: 0; }

.ld-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(ellipse 55% 70% at 100% 0%, var(--ld-glow), transparent 62%),
    linear-gradient(180deg, var(--ld-hero-a) 0%, var(--ld-hero-b) 100%);
}
.page-coeur .ld-hero {
  background:
    radial-gradient(ellipse 40% 50% at 100% 10%, rgba(234, 88, 12, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 70% at 0% 100%, var(--ld-glow), transparent 62%),
    linear-gradient(180deg, var(--ld-hero-a), var(--ld-hero-b));
}
.ld-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.ld-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--ld-soft);
  color: var(--ld-accent-d);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-coeur .ld-kicker { color: var(--ld-indigo); }
.ld-hero h1 {
  max-width: 16em;
  color: var(--ld-ink);
  font-size: clamp(2.35rem, 4.4vw, 3.7rem);
}
.ld-lede {
  max-width: 38rem;
  margin-top: 16px;
  color: var(--ld-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}
.ld-slot { margin-top: 26px; max-width: 36rem; }
.ld-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ld-form input[type="email"] {
  flex: 1 1 16rem;
  width: auto;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  border-radius: 999px;
  border: 1.5px solid var(--ld-line);
  background: #fff;
  padding: 0 18px;
  font-size: 1rem;
}
.ld-submit {
  min-height: 54px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ld-accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.22);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.page-coeur .ld-submit { box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28); }
.ld-submit:hover { background: var(--ld-accent-d); transform: translateY(-1px) scale(1.02); color: #fff; }
.ld-submit:disabled { opacity: 0.7; cursor: progress; transform: none; }
.ld-fine {
  margin-top: 10px;
  color: var(--ld-muted);
  font-size: 0.86rem;
}
.ld-error {
  flex-basis: 100%;
  margin: 0;
  color: #9f1239;
  font-weight: 800;
  font-size: 0.92rem;
}
.ld-success h3 {
  font-family: var(--head);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 8px;
}
.ld-success p { color: var(--ld-muted); }
.ld-success-kicker {
  margin: 0;
  color: var(--ld-accent-d);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ld-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ld-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ld-soft);
  color: var(--ld-accent);
  margin-bottom: 14px;
}
.page-coeur .ld-icon { color: var(--ld-indigo); background: #efeaff; }
.ld-icon svg { width: 22px; height: 22px; }

.ld-section { padding: 80px 0; }
.ld-section h2 { color: var(--ld-ink); max-width: 18em; }
.ld-intro { max-width: 38rem; margin: 12px 0 32px; color: var(--ld-muted); }

.ld-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ld-card {
  background: var(--ld-card);
  border: 1px solid var(--ld-line);
  border-radius: 22px;
  padding: 24px 22px 26px;
  box-shadow: 0 10px 30px rgba(16, 35, 63, 0.04);
}
.ld-problem {
  margin: 0 0 6px;
  color: var(--ld-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ld-card h3,
.ld-feature h3 {
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ld-ink);
}
.ld-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.ld-card p:last-child,
.ld-feature-copy p { color: var(--ld-muted); line-height: 1.6; }

.ld-reassure {
  padding: 28px 0 88px;
}
.ld-reassure-box {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--ld-line);
}
.ld-reassure-box strong {
  display: block;
  font-family: var(--head);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.ld-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.ld-points li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ld-soft);
  color: var(--ld-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.ld-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: 22px 0;
}
.ld-feature + .ld-feature { border-top: 1px solid var(--ld-line); }
.ld-feature:nth-child(even) .ld-feature-copy { order: 2; }
.ld-feature h3 { font-size: 1.45rem; margin: 8px 0; color: var(--ld-ink); }
.ld-feature-kicker {
  margin: 0;
  color: var(--ld-indigo, var(--ld-accent));
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ld-mock {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--ld-line);
  box-shadow: 0 18px 40px rgba(16, 35, 63, 0.08);
  padding: 18px;
}
.ld-mock-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ld-muted);
}
.ld-mock-top b { color: var(--ld-ink); }
.ld-rows { list-style: none; display: grid; gap: 8px; }
.ld-rows li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ld-bg);
  font-weight: 800;
  font-size: 0.92rem;
}
.ld-rows span { color: var(--ld-muted); font-weight: 700; }
.ld-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #047857;
  font-size: 0.75rem;
}
.ld-pill.is-wait { background: #fff4e8; color: #c2410c; }

.ld-times { list-style: none; display: grid; gap: 8px; }
.ld-times li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  font-size: 0.92rem;
}
.ld-times i {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--ld-indigo), #a5b4fc);
  display: block;
}
.ld-times small { color: var(--ld-muted); font-weight: 700; }

.ld-cloze {
  font-family: var(--head);
  font-size: 1.35rem;
  line-height: 1.45;
}
.ld-cloze u {
  text-decoration: none;
  display: inline-block;
  min-width: 4.2em;
  border-bottom: 2px solid var(--ld-indigo);
  color: transparent;
}
.ld-parent-score {
  font-family: var(--head);
  font-size: 2.4rem;
  line-height: 1;
}
.ld-parent-score span { display: block; margin-top: 4px; font-family: var(--body); font-size: 0.85rem; color: var(--ld-muted); font-weight: 800; }

.ld-uses { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ld-uses li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 14px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--ld-line);
  font-weight: 800;
}
.ld-uses svg { flex: none; color: var(--ld-accent); margin-top: 2px; }

.ld-close {
  padding: 0 0 88px;
}
.ld-close-box {
  padding: 36px 32px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, var(--ld-glow), transparent 60%),
    #fff;
  border: 1px solid var(--ld-line);
}
.ld-close-box h2 { margin-bottom: 8px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--d, 0) * 70ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .ld-hero { padding: 48px 0 40px; }
  .ld-hero-grid,
  .ld-cols,
  .ld-feature,
  .ld-uses { grid-template-columns: 1fr; }
  .ld-feature:nth-child(even) .ld-feature-copy { order: 0; }
  .ld-section { padding: 56px 0; }
  .ld-hero h1 { max-width: none; }
}
@media (max-width: 560px) {
  .ld-form { flex-direction: column; align-items: stretch; }
  .ld-form input[type="email"],
  .ld-submit { flex: none; width: 100%; height: 54px; }
  .ld-times li { grid-template-columns: 64px 1fr; }
  .ld-times small { grid-column: 2; }
  .ld-close-box { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ld-submit { transition: none; }
}
