/* ==========================================================================
   Pages publiques : accueil, connexion, inscription.
   Mêmes tokens que l'appli (tokens.css) ; seule la police d'affichage s'ajoute.
   Les documents d'exemple sont des feuilles claires, comme les PDF exportés.
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-display: "Instrument Serif", var(--font-serif);
  --font-paper: var(--font-serif);
  /* Bandeau Deep Search : indigo de l'appli, identique dans les deux thèmes (texte blanc AA). */
  --lp-band-bg: #5a56e0;
  --lp-band-text: #ffffff;
  --lp-band-muted: #ebeaff;
  /* Bouton principal : l'indigo des fonds pleins (AA dans les deux thèmes). */
  --lp-cta-bg: var(--color-accent-solid);
  --lp-cta-bg-hover: var(--color-accent-solid-hover);
  --lp-mark: #e7e6ff;
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --lp-width: 1200px;
}

.lp { overflow-x: clip; }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
}
.skip-link:focus { top: var(--space-4); }

/* --- Boutons et liens des pages publiques -------------------------------------------------- */
.lp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-full);
  background: var(--lp-cta-bg);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 6px 14px -8px rgba(0, 0, 0, 0.55);
  transition: background-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}
.lp-pill:hover { background: var(--lp-cta-bg-hover); }
.lp-pill:active { transform: translateY(1px); }
.lp-pill-lg { padding: 0.875rem 1.5rem; font-size: var(--text-md); }

.lp-link {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.lp-link:hover { color: var(--color-text); }

.lp-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}
.lp-ghost:hover { background: var(--color-surface-2); }

.lp main a:not([class]), .lp-hint a, .auth a:not([class]) {
  color: var(--color-accent-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* --- Bandeau d'annonce + navigation ---------------------------------------------------------- */
.lp-announce {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-2) var(--lp-gutter);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}
.lp-announce a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-text);
  font-weight: var(--weight-semibold);
}
.lp-announce a:hover { color: var(--color-accent-hover); }

.lp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: calc(var(--lp-width) + 2 * var(--lp-gutter));
  margin: 0 auto;
  padding: var(--space-3) var(--lp-gutter);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.lp-logo { padding: 0; font-size: 1.0625rem; }
.lp-logo .logo-dot { box-shadow: none; }
.lp-nav-links { display: flex; gap: var(--space-6); margin-left: var(--space-4); }
.lp-nav-links a { color: var(--color-text-muted); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.lp-nav-links a:hover { color: var(--color-text); }
.lp-nav-actions { display: flex; align-items: center; gap: var(--space-4); margin-left: auto; }

/* --- Hero ---------------------------------------------------------------------------------------- */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--space-12);
  max-width: calc(var(--lp-width) + 2 * var(--lp-gutter));
  margin: 0 auto;
  padding: clamp(2.5rem, 1rem + 5vw, 6rem) var(--lp-gutter) clamp(3rem, 2rem + 4vw, 6rem);
}

.lp h1, .lp-section-head h2, .lp-quote p, .lp-cta h2, .auth h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lp h1 {
  font-size: clamp(3.25rem, 1.75rem + 5vw, 6rem);
  line-height: 0.95;
}
.lp-lede {
  max-width: 34rem;
  margin-top: var(--space-6);
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

.lp-invite {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 30rem;
  margin-top: var(--space-8);
  padding: 0.3125rem 0.3125rem 0.3125rem var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
}
.lp-invite:focus-within { border-color: var(--color-accent-border); box-shadow: 0 0 0 3px var(--color-accent-subtle); }
.lp-invite input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  padding: var(--space-2) 0;
  color: var(--color-text);
  font-size: var(--text-md);
}
.lp-invite input::placeholder { color: var(--color-text-muted); }
.lp-invite input:focus { outline: none; box-shadow: none; }

.lp-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Kit d'exemple : trois documents en éventail (unités relatives au conteneur). */
.lp-kit {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 6 / 5;
  margin: 0 0 var(--space-8) auto;
}
.lp-doc {
  position: absolute;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 24px 48px -16px rgba(0, 0, 0, 0.45);
  transition: translate var(--duration-slow) var(--lp-ease), box-shadow var(--duration-slow) var(--lp-ease);
}
.lp-doc p, .lp-doc ul { margin: 0; }
.lp-doc-cv, .lp-doc-letter {
  padding: 5.5cqi 5cqi;
  background: var(--cv-paper-bg);
  color: var(--cv-paper-text);
  font-family: var(--font-paper);
  font-size: clamp(7px, 1.85cqi, 11px);
  line-height: 1.35;
}
.lp-doc-cv { left: 0; top: 2%; width: 54%; rotate: -5deg; z-index: 1; }
.lp-doc-letter { left: 34%; top: 9%; width: 50%; min-height: 64%; rotate: 3deg; z-index: 2; }
.lp-doc-mail {
  right: 0;
  bottom: 4%;
  width: 56%;
  z-index: 3;
  rotate: -1.5deg;
  display: flex;
  flex-direction: column;
  gap: 1.4cqi;
  padding: 3.4cqi;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: clamp(9px, 2.2cqi, 13px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 12px 20px -10px rgba(0, 0, 0, 0.5);
}
@media (hover: hover) {
  .lp-doc:hover { translate: 0 -6px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 32px 56px -16px rgba(0, 0, 0, 0.5); }
}

.lpd-name { text-align: center; font-size: 2.1em; font-weight: 700; line-height: 1.1; }
.lpd-headline { text-align: center; color: var(--cv-paper-strong); }
.lpd-contact { text-align: center; margin-bottom: 0.8em !important; color: var(--cv-paper-muted); font-size: 0.85em; }
.lpd-section {
  margin: 0.9em 0 0.35em !important;
  padding-bottom: 0.15em;
  border-bottom: 1px solid var(--cv-paper-rule);
  color: var(--cv-paper-accent);
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lpd-entry { display: flex; justify-content: space-between; gap: 0.6em; }
.lpd-entry span { color: var(--cv-paper-muted); white-space: nowrap; }
.lp-doc-cv ul { padding-left: 1.1em; }
.lp-doc-cv li { margin-top: 0.2em; }
.lp-doc mark { padding: 0 0.15em; border-radius: 2px; background: var(--lp-mark); color: inherit; }

.lp-doc-letter { display: flex; flex-direction: column; gap: 0.75em; }
.lpd-meta { color: var(--cv-paper-muted); }
.lpd-object { font-weight: 700; }

.lpm-row { display: flex; gap: 0.6em; min-width: 0; color: var(--color-text); }
.lpm-row > span:first-child { flex-shrink: 0; width: 3.2em; color: var(--color-text-muted); }
.lpm-value { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lpm-body { padding-top: 0.8em; border-top: 1px solid var(--color-border); color: var(--color-text-muted); }
.lpm-files { display: flex; gap: 0.5em; }
.lpm-files .pill { font-size: 0.85em; }

.lp-kit-score, .lp-kit-check {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-2);
}
.lp-kit-score { top: 3%; right: 6%; }
.lp-kit-check { left: 4%; bottom: 24%; padding-left: 0.75rem; color: var(--color-success); }
.lp-kit-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.25rem;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-align: right;
}

/* Le moment d'entrée : les documents partent d'une pile et s'ouvrent en éventail. */
@media (prefers-reduced-motion: no-preference) {
  .lp-doc-cv { animation: lp-fan-cv 1100ms var(--lp-ease) 120ms both; }
  .lp-doc-letter { animation: lp-fan-letter 1100ms var(--lp-ease) 60ms both; }
  .lp-doc-mail { animation: lp-fan-mail 1100ms var(--lp-ease) both; }
  .lp-kit-score, .lp-kit-check { animation: lp-chip 700ms var(--lp-ease) 700ms both; }
}
@keyframes lp-fan-cv { from { translate: 30% 14%; rotate: 2deg; } }
@keyframes lp-fan-letter { from { translate: -4% 8%; rotate: 0deg; } }
@keyframes lp-fan-mail { from { translate: -22% -8%; rotate: 1deg; } }
@keyframes lp-chip { from { scale: 0.85; filter: blur(4px); } }

/* --- Sources -------------------------------------------------------------------------------------- */
.lp-sources {
  max-width: calc(var(--lp-width) + 2 * var(--lp-gutter));
  margin: 0 auto;
  padding: 0 var(--lp-gutter) clamp(3rem, 2rem + 4vw, 6rem);
}
.lp-sources-title {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-align: center;
}
.lp-sources-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  margin: 0;
  padding: var(--space-6) 0 0;
  border-top: 1px solid var(--color-border);
  list-style: none;
}
.lp-sources-list li {
  position: relative;
  color: var(--color-text);
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
}
@media (min-width: 900px) {
.lp-sources-list li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--space-8) / -2 - 2px);
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}
}

/* --- Sections ------------------------------------------------------------------------------------- */
.lp-section {
  max-width: calc(var(--lp-width) + 2 * var(--lp-gutter));
  margin: 0 auto;
  padding: clamp(4rem, 2.5rem + 6vw, 8rem) var(--lp-gutter) 0;
  scroll-margin-top: 4rem;
}
.lp-section-head { max-width: 46rem; margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4rem); text-align: center; }
.lp-section-head h2 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); line-height: 1.02; }
.lp-section-head p {
  max-width: 38rem;
  margin: var(--space-4) auto 0;
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

.lp-sample {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
}

/* Bento « kit » */
.lp-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-4);
}
.lp-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.lp-tile h3, .lp-panel h3 { padding-right: 4.5rem; font-size: 1.125rem; font-weight: var(--weight-semibold); letter-spacing: -0.01em; }
.lp-tile > p, .lp-panel > p { color: var(--color-text-muted); line-height: var(--leading-relaxed); }
.lp-tile-feed { grid-row: span 2; }

.lp-feed { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: var(--space-4) 0 0; list-style: none; }
.lp-feed li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.lp-feed li span:nth-child(2) { display: flex; flex-direction: column; color: var(--color-text-muted); font-size: var(--text-sm); }
.lp-feed strong { color: var(--color-text); font-size: var(--text-base); font-weight: var(--weight-semibold); }
.lp-feed .score { min-width: 48px; padding: var(--space-1) var(--space-2); font-size: var(--text-sm); }
.lp-feed li.is-open { border-color: var(--color-accent-border); }
.lp-feed-why {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.lp-diff { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.lp-diff-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
}
.lp-diff-line.is-down { color: var(--color-text-muted); }
.lp-diff-tag {
  flex-shrink: 0;
  padding: 1px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}
.is-up .lp-diff-tag { background: var(--color-success-subtle); color: var(--color-success); }
.is-down .lp-diff-tag { background: var(--color-neutral-subtle); color: var(--color-text-muted); }

.lp-check {
  margin: var(--space-4) 0 0;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--cv-paper-bg);
  color: var(--cv-paper-text);
  font-family: var(--font-paper);
  font-size: 1.0625rem;
}
.lp-check p { margin: 0; }
.lp-check del { color: #b42318; text-decoration-thickness: 1.5px; }
.lp-check ins { color: #0b7a55; text-decoration: none; background: #e3f7ee; padding: 0 0.2em; }
.lp-check footer {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid #e3e3e9;
  color: #0b7a55;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
}

/* --- « Deux plumes » : bascule CSS (boutons radio), sans JavaScript ------------------------- */
.lp-plume-demo { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.lp-plume-switch {
  display: inline-flex;
  padding: 0.3125rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
}
.lp-plume-switch label {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.lp-plume-switch label:hover { color: var(--color-text); }
#plume-camille:checked ~ .lp-plume-switch label[for="plume-camille"],
#plume-yanis:checked ~ .lp-plume-switch label[for="plume-yanis"] {
  background: var(--lp-cta-bg);
  color: #ffffff;
}
#plume-camille:focus-visible ~ .lp-plume-switch label[for="plume-camille"],
#plume-yanis:focus-visible ~ .lp-plume-switch label[for="plume-yanis"] { box-shadow: var(--focus-ring); }

.lp-plume-stage {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 40rem);
  justify-content: center;
  align-items: start;
  gap: var(--space-8);
  width: 100%;
}
.lp-plume-rules { display: grid; }
.lp-rules {
  grid-area: 1 / 1;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.lp-rules-title { color: var(--color-text-muted); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.lp-rules ul { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.lp-rules li {
  align-self: flex-start;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-md);
  background: var(--color-accent-subtle);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.lp-plume-sheet {
  display: grid;
  gap: var(--space-4);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border-radius: 6px;
  background: var(--cv-paper-bg);
  color: var(--cv-paper-text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 24px 48px -20px rgba(0, 0, 0, 0.4);
}
.lp-plume-salute, .lp-plume-text { margin: 0; font-family: var(--font-paper); font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); }
.lp-plume-text {
  grid-area: 2 / 1;
  margin: 0;
  font-family: var(--font-paper);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
}
.lp-plume-text, .lp-rules {
  transition: opacity 420ms var(--lp-ease), filter 420ms var(--lp-ease), translate 420ms var(--lp-ease), visibility 0s;
}
#plume-camille:checked ~ .lp-plume-stage .lp-plume-yanis,
#plume-camille:checked ~ .lp-plume-stage .lp-rules-yanis,
#plume-yanis:checked ~ .lp-plume-stage .lp-plume-camille,
#plume-yanis:checked ~ .lp-plume-stage .lp-rules-camille {
  opacity: 0;
  filter: blur(6px);
  translate: 0 6px;
  visibility: hidden;
  transition: opacity 420ms var(--lp-ease), filter 420ms var(--lp-ease), translate 420ms var(--lp-ease), visibility 0s linear 420ms;
}
.lp-plume-demo > .lp-sample { position: static; }

/* --- Bandeau indigo (Deep Search) ---------------------------------------------------------- */
.lp-band {
  margin-top: clamp(4rem, 2.5rem + 6vw, 8rem);
  padding: clamp(4rem, 2.5rem + 6vw, 7rem) var(--lp-gutter);
  background: var(--lp-band-bg);
  color: var(--lp-band-text);
  scroll-margin-top: 3rem;
}
.lp-band-inner { max-width: var(--lp-width); margin: 0 auto; }
.lp-band .lp-section-head p { color: var(--lp-band-muted); }
.lp-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-4);
}
.lp-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 24px 40px -24px rgba(0, 0, 0, 0.45);
}
.lp-panel-table { grid-row: span 2; }
.lp-panel-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding-right: 4.5rem; }
.lp-panel-head h3 { padding-right: 0; }
.lp-progress { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.lp-progress-bar { display: inline-block; width: 7rem; height: 6px; border-radius: var(--radius-full); background: var(--color-surface-3); overflow: hidden; }
.lp-progress-bar span { display: block; width: 80%; height: 100%; border-radius: inherit; background: var(--color-accent); }

.lp-results { width: 100%; margin-top: var(--space-4); border-collapse: collapse; font-size: var(--text-sm); }
.lp-panel-foot {
  margin-top: auto !important;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}
.lp-results th {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-align: left;
}
.lp-results td { padding: var(--space-3); border-bottom: 1px solid var(--color-border); }
.lp-results tr:last-child td { border-bottom: none; }
.lp-results td:first-child { font-weight: var(--weight-semibold); }
.lp-results td:nth-child(2) { color: var(--color-text-muted); }
.lp-results td:nth-child(3) { color: var(--color-text-muted); white-space: nowrap; }
.lp-results td:nth-child(3) .icon { color: var(--color-success); vertical-align: -2px; }
.lp-results td:last-child { text-align: right; }

.lp-emails { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.lp-emails li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
}
.lp-emails li .icon { flex-shrink: 0; margin-top: 2px; }
.lp-emails li span { display: flex; flex-direction: column; font-weight: var(--weight-medium); font-variant-numeric: tabular-nums; }
.lp-emails em { font-family: var(--font-sans); font-style: normal; color: var(--color-text-muted); font-size: var(--text-xs); }
.lp-emails .is-kept .icon { color: var(--color-success); }
.lp-emails .is-dropped .icon { color: var(--color-danger); }
.lp-emails s { text-decoration-color: var(--color-danger); text-decoration-thickness: 1.5px; }

.lp-pipeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.lp-stage {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.lp-stage-head { padding: 0 var(--space-1); color: var(--color-text-muted); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.lp-stage-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.lp-stage-card strong { overflow: hidden; font-weight: var(--weight-semibold); white-space: nowrap; text-overflow: ellipsis; }
.lp-stage-card span { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.lp-stage-card.is-hot { border-color: var(--color-accent-border); background: var(--color-accent-subtle); }

/* --- Confiance ------------------------------------------------------------------------------------ */
.lp-trust { text-align: center; }
.lp-quote { margin: 0 auto; max-width: 52rem; }
.lp-quote p { font-size: clamp(3rem, 1.5rem + 6vw, 6rem); line-height: 1; }
.lp-quote footer {
  max-width: 34rem;
  margin: var(--space-6) auto 0;
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}
.lp-vows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-12);
  max-width: 64rem;
  margin: clamp(3rem, 2rem + 4vw, 5rem) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.lp-vows li {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.25;
  text-wrap: pretty;
}
.lp-vows li span { color: var(--color-text); }

/* --- Appel final ---------------------------------------------------------------------------------- */
.lp-cta {
  position: relative;
  width: calc(100% - 2 * var(--lp-gutter));
  max-width: var(--lp-width);
  margin: clamp(4rem, 2.5rem + 6vw, 8rem) auto 0;
  padding: clamp(3rem, 2rem + 5vw, 6rem) var(--lp-gutter) clamp(8rem, 6rem + 6vw, 11rem);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: var(--color-surface);
  text-align: center;
  overflow: hidden;
}
.lp-cta h2 { font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem); line-height: 1; }
.lp-cta > p {
  max-width: 34rem;
  margin: var(--space-4) auto 0;
  color: var(--color-text-muted);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}
.lp-cta-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }
.lp-cta-sheets {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(560px, 86%);
  height: 100%;
  translate: -50% 0;
  container-type: size;
  pointer-events: none;
}
.lp-sheet {
  position: absolute;
  bottom: 0;
  translate: 0 58%;
  width: 30%;
  aspect-ratio: 210 / 297;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: 1.3em 1.15em;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--cv-paper-bg);
  color: var(--cv-paper-text);
  font-family: var(--font-paper);
  font-size: clamp(6.5px, 1.6cqi, 9.5px);
  line-height: 1.35;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 16px 32px -16px rgba(0, 0, 0, 0.4);
}
.lp-sheet p { margin: 0; }
.lps-name { text-align: center; font-size: 1.9em; font-weight: 700; line-height: 1.1; }
.lps-sub, .lps-meta { color: var(--cv-paper-muted); }
.lps-sub { text-align: center; }
.lps-section {
  margin-top: 0.4em !important;
  border-bottom: 1px solid var(--cv-paper-rule);
  color: var(--cv-paper-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lp-sheet:nth-child(1) { left: 8%; rotate: -8deg; }
.lp-sheet:nth-child(2) { left: 35%; translate: 0 50%; rotate: 1deg; z-index: 1; }
.lp-sheet:nth-child(3) { right: 8%; rotate: 7deg; }

/* --- Pied de page -------------------------------------------------------------------------------- */
.lp-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: var(--space-8) var(--space-12);
  max-width: calc(var(--lp-width) + 2 * var(--lp-gutter));
  margin: clamp(4rem, 2.5rem + 5vw, 7rem) auto 0;
  padding: var(--space-12) var(--lp-gutter) var(--space-8);
  border-top: 1px solid var(--color-border);
}
.lp-footer-brand p { max-width: 22rem; margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.lp-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.lp-footer-cols h2 { margin-bottom: var(--space-3); color: var(--color-text); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.lp-footer-cols ul { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.lp-footer-cols a { color: var(--color-text-muted); font-size: var(--text-sm); }
.lp-footer-cols a:hover { color: var(--color-text); }
.lp-footer-legal { grid-column: 1 / -1; padding-top: var(--space-6); border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: var(--text-xs); }

/* --- Responsive ------------------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .lp-nav-links { display: none; }
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .lp-hero-copy { max-width: 40rem; }
  .lp-kit { margin: 0 auto var(--space-8); }
  .lp-kit-caption { text-align: center; }

}

@media (max-width: 760px) {
  .lp-bento, .lp-band-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-tile-feed, .lp-panel-table { grid-row: auto; }
  .lp-plume-stage { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .lp-plume-rules { padding-top: 0; }
  .lp-rules { flex-direction: row; flex-wrap: wrap; }
  .lp-results th:nth-child(2), .lp-results td:nth-child(2) { display: none; }
  .lp-vows { grid-template-columns: minmax(0, 1fr); }
  .lp-footer { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .lp-nav { gap: var(--space-3); }
  .lp-nav-actions { gap: var(--space-2); }
  .lp-nav-actions .lp-link { display: none; }
  .lp-nav-actions .lp-pill { padding: 0.5rem 0.875rem; }
  .lp-invite { flex-direction: column; align-items: stretch; padding: var(--space-2); border-radius: var(--radius-lg); }
  .lp-invite input { padding: var(--space-2) var(--space-2); }
  .lp-kit-check { left: 4%; }
  .lp-sources-list { gap: var(--space-2) var(--space-6); }
  .lp-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-tile, .lp-panel { padding: var(--space-4); }
  .lp-sheet { width: 47%; font-size: clamp(6.5px, 2.5cqi, 9px); }
  .lp-sheet:nth-child(1) { left: 1%; }
  .lp-sheet:nth-child(2) { left: auto; right: 1%; }
  .lp-sheet:nth-child(3) { display: none; }
  .lp-sample { top: var(--space-3); right: var(--space-3); }
}

/* ==========================================================================
   Connexion et inscription
   ========================================================================== */
.auth {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--lp-gutter);
}
.auth-main { display: grid; place-items: center; padding: var(--space-6) var(--lp-gutter) var(--space-12); }
.auth-card { width: 100%; max-width: 26rem; display: flex; flex-direction: column; gap: var(--space-6); }
.auth h1 { font-size: clamp(2.75rem, 2rem + 3vw, 3.75rem); line-height: 1; }
.auth-lede { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-md); line-height: var(--leading-relaxed); }
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }
.auth-form .field input { padding: 0.6875rem var(--space-3); font-size: var(--text-md); }
.auth-form .field input::placeholder { color: var(--color-text-muted); }
.auth-form .field input[readonly] { color: var(--color-text-muted); }
.auth-form .lp-pill { width: 100%; padding: 0.8125rem 1.25rem; font-size: var(--text-md); }
.auth-alt { color: var(--color-text-muted); font-size: var(--text-sm); text-align: center; }
.auth-foot { padding: var(--space-4) var(--lp-gutter); color: var(--color-text-muted); font-size: var(--text-xs); text-align: center; }

.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 2.75rem !important; }
.password-toggle {
  position: absolute;
  right: 0.375rem;
  bottom: 0.375rem;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.password-toggle:hover { color: var(--color-text); background: var(--color-surface-3); }
.password-toggle[aria-pressed="true"] { color: var(--color-accent-hover); }
