/* =========================================================
   Les Pros Vérifiés — thème commun
   Fichier à placer dans : assets/theme.css
   Utilisation dans les pages :
   <link rel="stylesheet" href="assets/theme.css">
   ========================================================= */

/* ------------------------------
   Variables globales
------------------------------ */
:root {
  --lpv-blue: #0a3f95;
  --lpv-blue-2: #2457e6;
  --lpv-blue-3: #eaf4ff;
  --lpv-green: #86c83d;
  --lpv-green-2: #0f8d62;
  --lpv-green-soft: #dff7ec;

  --lpv-text: #102033;
  --lpv-muted: #657184;
  --lpv-soft-text: #7a8597;

  --lpv-bg: #eaf7ff;
  --lpv-bg-2: #f7fbff;
  --lpv-card: rgba(255, 255, 255, 0.88);
  --lpv-card-solid: #ffffff;
  --lpv-border: rgba(143, 165, 190, 0.24);
  --lpv-border-strong: rgba(143, 165, 190, 0.44);

  --lpv-shadow: 0 22px 60px rgba(27, 61, 101, 0.12);
  --lpv-shadow-soft: 0 12px 34px rgba(27, 61, 101, 0.08);
  --lpv-radius-xl: 34px;
  --lpv-radius-lg: 26px;
  --lpv-radius-md: 18px;
  --lpv-radius-pill: 999px;

  --lpv-max: 1120px;
  --lpv-header-h: 124px;

  --lpv-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* ------------------------------
   Reset propre
------------------------------ */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--lpv-font);
  color: var(--lpv-text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.92) 0, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 84% 20%, rgba(119, 224, 195, 0.30) 0, rgba(119, 224, 195, 0) 28%),
    linear-gradient(145deg, #eef9ff 0%, #e2f3ff 44%, #f8fbff 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36) 0 1px, transparent 1px 44px),
    linear-gradient(45deg, rgba(10, 63, 149, 0.035) 0 1px, transparent 1px 46px);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -140px -180px auto;
  width: 440px;
  height: 440px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 87, 230, 0.14), rgba(36, 87, 230, 0));
  pointer-events: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

/* ------------------------------
   Conteneurs
------------------------------ */
.lpv-page {
  width: 100%;
  min-height: 100vh;
}

.lpv-container {
  width: min(var(--lpv-max), calc(100% - 32px));
  margin: 0 auto;
}

.lpv-section {
  padding: 34px 0;
}

.lpv-card {
  background: var(--lpv-card);
  border: 1px solid var(--lpv-border);
  border-radius: var(--lpv-radius-xl);
  box-shadow: var(--lpv-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lpv-card-solid {
  background: var(--lpv-card-solid);
  border: 1px solid var(--lpv-border);
  border-radius: var(--lpv-radius-xl);
  box-shadow: var(--lpv-shadow);
}

.lpv-panel {
  padding: clamp(22px, 4vw, 42px);
}

.lpv-mini-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--lpv-border);
  border-radius: var(--lpv-radius-lg);
  box-shadow: var(--lpv-shadow-soft);
}

/* ------------------------------
   Header / logo commun
------------------------------ */
.lpv-topbar {
  width: 100%;
  min-height: var(--lpv-header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(143, 165, 190, 0.18);
  box-shadow: 0 8px 30px rgba(22, 55, 86, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lpv-topbar-inner {
  width: min(var(--lpv-max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.lpv-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--lpv-blue);
  min-width: 0;
}

.lpv-brand-logo {
  display: block;
  height: 88px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
  margin: -4px 0;
}

.lpv-brand-separator {
  width: 2px;
  height: 58px;
  border-radius: var(--lpv-radius-pill);
  background: #8ea1ba;
  opacity: 0.9;
  flex: 0 0 auto;
}

.lpv-brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.9;
  white-space: nowrap;
  min-width: 0;
}

.lpv-brand-blue,
.lpv-brand-green {
  display: block;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -1.3px;
}

.lpv-brand-blue {
  color: var(--lpv-blue);
}

.lpv-brand-green {
  color: var(--lpv-green);
  margin-top: 3px;
}

.lpv-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ------------------------------
   Titres / textes
------------------------------ */
.lpv-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--lpv-radius-pill);
  padding: 9px 16px;
  background: rgba(225, 248, 238, 0.88);
  color: #087451;
  font-weight: 850;
  font-size: 14px;
}

.lpv-title {
  margin: 0;
  color: var(--lpv-text);
  font-size: clamp(38px, 8vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.lpv-title-md {
  margin: 0;
  color: var(--lpv-text);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.lpv-subtitle {
  margin: 18px 0 0;
  color: var(--lpv-muted);
  font-size: clamp(18px, 3.5vw, 25px);
  line-height: 1.58;
  font-weight: 500;
}

.lpv-text-muted {
  color: var(--lpv-muted);
}

.lpv-small {
  font-size: 14px;
  color: var(--lpv-soft-text);
  line-height: 1.55;
}

/* ------------------------------
   Boutons / badges
------------------------------ */
.lpv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--lpv-radius-pill);
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--lpv-blue-2), #183fd2);
  box-shadow: 0 18px 32px rgba(36, 87, 230, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.lpv-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(36, 87, 230, 0.30);
}

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

.lpv-btn-secondary {
  color: var(--lpv-blue);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--lpv-border);
  box-shadow: var(--lpv-shadow-soft);
}

.lpv-btn-green {
  background: linear-gradient(135deg, #22b875, var(--lpv-green-2));
  box-shadow: 0 18px 32px rgba(15, 141, 98, 0.22);
}

.lpv-btn-full {
  width: 100%;
}

.lpv-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lpv-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--lpv-radius-pill);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--lpv-border);
  color: #516178;
  font-weight: 850;
}

.lpv-badge-green {
  background: rgba(225, 248, 238, 0.92);
  color: #087451;
  border-color: rgba(15, 141, 98, 0.14);
}

.lpv-badge-blue {
  background: rgba(234, 244, 255, 0.96);
  color: var(--lpv-blue);
  border-color: rgba(36, 87, 230, 0.14);
}

/* ------------------------------
   Formulaires
------------------------------ */
.lpv-form {
  display: grid;
  gap: 18px;
}

.lpv-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.lpv-field {
  display: grid;
  gap: 8px;
}

.lpv-label {
  color: #46536a;
  font-weight: 900;
  font-size: 15px;
}

.lpv-input,
.lpv-select,
.lpv-textarea {
  width: 100%;
  border: 1px solid rgba(143, 165, 190, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--lpv-text);
  padding: 17px 18px;
  min-height: 58px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: border 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lpv-input::placeholder,
.lpv-textarea::placeholder {
  color: rgba(101, 113, 132, 0.72);
}

.lpv-input:focus,
.lpv-select:focus,
.lpv-textarea:focus {
  border-color: rgba(36, 87, 230, 0.52);
  box-shadow: 0 0 0 4px rgba(36, 87, 230, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.lpv-textarea {
  min-height: 130px;
  resize: vertical;
}

.lpv-help {
  color: var(--lpv-soft-text);
  font-size: 14px;
  line-height: 1.5;
}

.lpv-checkbox-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--lpv-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
}

.lpv-checkbox-row input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--lpv-blue-2);
}

.lpv-checkbox-row strong {
  color: var(--lpv-text);
}

.lpv-error {
  color: #a34812;
  background: rgba(255, 237, 213, 0.82);
  border: 1px solid rgba(251, 146, 60, 0.24);
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 750;
}

.lpv-success {
  color: #087451;
  background: rgba(225, 248, 238, 0.92);
  border: 1px solid rgba(15, 141, 98, 0.16);
  border-radius: 18px;
  padding: 12px 14px;
  font-weight: 750;
}

/* ------------------------------
   Pages inscription / connexion
------------------------------ */
.lpv-auth-page {
  min-height: 100vh;
  padding: 26px 0 54px;
}

.lpv-auth-shell {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
}

.lpv-auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.lpv-auth-card {
  padding: clamp(22px, 5vw, 46px);
  text-align: left;
}

.lpv-auth-head {
  text-align: center;
  margin-bottom: 30px;
}

.lpv-auth-title {
  margin: 16px 0 0;
  color: var(--lpv-text);
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.lpv-auth-intro {
  margin: 16px auto 0;
  color: var(--lpv-muted);
  max-width: 620px;
  font-size: clamp(17px, 3.5vw, 22px);
  line-height: 1.55;
  font-weight: 650;
}

.lpv-step-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.lpv-step {
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--lpv-border);
  background: rgba(255, 255, 255, 0.55);
}

.lpv-step strong {
  display: block;
  font-weight: 950;
  margin-bottom: 4px;
}

.lpv-siret-result {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(15, 141, 98, 0.18);
  background: rgba(225, 248, 238, 0.72);
}

.lpv-locked-box {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--lpv-border);
}

/* ------------------------------
   Cartes pros / résultats
------------------------------ */
.lpv-results {
  display: grid;
  gap: 16px;
}

.lpv-pro-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--lpv-border);
  border-radius: 26px;
  box-shadow: var(--lpv-shadow-soft);
}

.lpv-pro-title {
  margin: 0;
  font-size: 22px;
  color: var(--lpv-text);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.lpv-pro-meta {
  color: var(--lpv-muted);
  font-weight: 650;
}

.lpv-pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ------------------------------
   Utilitaires
------------------------------ */
.lpv-center {
  text-align: center;
}

.lpv-hidden {
  display: none !important;
}

.lpv-mt-1 { margin-top: 8px; }
.lpv-mt-2 { margin-top: 16px; }
.lpv-mt-3 { margin-top: 24px; }
.lpv-mt-4 { margin-top: 34px; }

.lpv-divider {
  height: 1px;
  width: 100%;
  background: var(--lpv-border);
  margin: 24px 0;
}

/* ------------------------------
   Responsive
------------------------------ */
@media (max-width: 760px) {
  :root {
    --lpv-header-h: 114px;
  }

  .lpv-container {
    width: calc(100% - 28px);
  }

  .lpv-topbar-inner {
    width: calc(100% - 28px);
  }

  .lpv-brand-logo {
    height: 88px;
  }

  .lpv-brand-separator {
    height: 58px;
  }

  .lpv-brand-blue,
  .lpv-brand-green {
    font-size: 31px;
  }

  .lpv-form-grid {
    grid-template-columns: 1fr;
  }

  .lpv-panel {
    padding: 22px;
  }

  .lpv-section {
    padding: 24px 0;
  }
}

@media (max-width: 390px) {
  .lpv-brand {
    gap: 11px;
  }

  .lpv-brand-logo {
    height: 80px;
  }

  .lpv-brand-separator {
    height: 52px;
  }

  .lpv-brand-blue,
  .lpv-brand-green {
    font-size: 28px;
    letter-spacing: -1.1px;
  }

  .lpv-title {
    font-size: 38px;
  }

  .lpv-subtitle {
    font-size: 17px;
  }
}
