/* ================================================================
   B2B Professionnel de sante - Proparo
   Agence Influa 2026
   ================================================================ */

/* === Page wrapper === */
.b2b-page {
  padding-top: 48px;
  padding-bottom: 80px;
}

/* === Hero === */
.b2b-hero {
  text-align: center;
  margin-bottom: 48px;
}

.b2b-hero__title {
  font-family: var(--font-title, 'Playfair Display', serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #111;
  margin-bottom: 12px;
}

.b2b-hero__sub {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === Carte succes === */
.b2b-card {
  max-width: 540px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
  padding: 48px 40px;
  text-align: center;
}

.b2b-card--success {
  border-top: 4px solid #28a745;
}

.b2b-card__icon {
  display: inline-flex;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f8ed;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #28a745;
}

.b2b-card h2 {
  font-family: var(--font-title, 'Playfair Display', serif);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.b2b-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* === Layout === */
.b2b-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .b2b-layout {
    grid-template-columns: 1fr;
  }
}

/* === Avantages === */
.b2b-benefits {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 24px;
  position: sticky;
  top: 100px;
}

.b2b-benefits__title {
  font-family: var(--font-title, 'Playfair Display', serif);
  font-size: 1.1rem;
  color: #111;
  margin-bottom: 20px;
}

.b2b-benefits__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.b2b-benefits__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .92rem;
  color: #444;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.4;
}

.b2b-benefits__list li:last-child {
  border-bottom: none;
}

.b2b-benefits__list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.b2b-benefits__note {
  font-size: .82rem;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

/* === Formulaire === */
.b2b-form-wrap {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
  padding: 40px;
}

@media (max-width: 576px) {
  .b2b-form-wrap {
    padding: 24px 16px;
  }
}

.b2b-form__title {
  font-family: var(--font-title, 'Playfair Display', serif);
  font-size: 1.3rem;
  color: #111;
  margin-bottom: 28px;
}

.b2b-fieldset {
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 20px 20px 12px;
  margin-bottom: 24px;
}

.b2b-fieldset legend {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #D40012;
  padding: 0 8px;
}

.b2b-fieldset__help {
  font-size: .88rem;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.5;
}

.b2b-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .b2b-row {
    grid-template-columns: 1fr;
  }
}

.b2b-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.b2b-label {
  font-size: .875rem;
  font-weight: 600;
  color: #333;
}

.b2b-required {
  color: #D40012;
}

.b2b-hint {
  font-weight: 400;
  color: #999;
  font-size: .8rem;
  margin-left: 4px;
}

.b2b-input {
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .95rem;
  color: #111;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  font-family: inherit;
}

.b2b-input:focus {
  outline: none;
  border-color: #D40012;
  box-shadow: 0 0 0 3px rgba(212,0,18,.12);
}

.b2b-input[readonly] {
  background: #f8f8f8;
  color: #888;
}

.b2b-textarea {
  resize: vertical;
  min-height: 80px;
}

/* === Alert === */
.b2b-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

.b2b-alert--error {
  background: #fff5f5;
  border: 1px solid #ffc7c7;
  color: #c0392b;
}

/* === GDPR === */
.b2b-gdpr {
  margin-bottom: 24px;
}

.b2b-checkbox-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .875rem;
  color: #555;
  cursor: pointer;
  line-height: 1.5;
}

.b2b-checkbox-wrap input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #D40012;
}

.b2b-checkbox-wrap a {
  color: #D40012;
  text-decoration: underline;
}

/* === Bouton submit === */
.b2b-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #D40012;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: inherit;
}

.b2b-submit:hover {
  background: #b8000f;
  transform: translateY(-1px);
}

.b2b-submit:active {
  transform: none;
}

/* === Bouton generique === */
.b2b-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.b2b-btn--primary {
  background: #D40012;
  color: #fff;
}

.b2b-btn--primary:hover {
  background: #b8000f;
  color: #fff;
}

/* === Bloc compte client === */
.b2b-account-block {
  margin-top: 16px;
}

.b2b-account-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #D40012;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid #D40012;
  border-radius: 8px;
  padding: 10px 20px;
  transition: background .2s, color .2s;
}

.b2b-account-link:hover {
  background: #D40012;
  color: #fff;
}

.b2b-account-pending {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: #666;
  background: #fff8e6;
  border: 1px solid #ffd166;
  border-radius: 8px;
  padding: 10px 16px;
}
