/* =========================================================
   PAGE REJOINDRE LE RÉSEAU — styles spécifiques
   Cohérent avec la home (palette bleue, ocre, italic serif)
   ========================================================= */

/* --- HERO PAGE INTERIEURE --- */
body.batipro-page .bp-page-hero-blue {
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 122, 44, 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(11, 29, 58, 0.20), transparent 60%),
    var(--c-blue-deep);
  color: #fff;
  padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.batipro-page .bp-page-hero-blue .bp-kicker {
  color: var(--c-ocre);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
body.batipro-page .bp-page-hero-blue .bp-kicker-bar {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
body.batipro-page .bp-page-hero-title {
  color: #fff;
  font-size: clamp(36px, 5.5vw, 64px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.034em !important;
  margin: 0 auto 24px;
  max-width: 880px;
  font-weight: 700;
}
body.batipro-page .bp-page-hero-title em {
  color: var(--c-ocre);
  font-style: italic;
  font-weight: 500;
}
body.batipro-page .bp-page-hero-title .hl {
  color: #fff;
  background: rgba(200, 122, 44, 0.42);
  padding: 0 6px;
  border-radius: 4px;
  display: inline;
}
body.batipro-page .bp-page-hero-lead {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto 36px;
}
body.batipro-page .bp-page-hero-lead strong { color: #fff; }

body.batipro-page .bp-hero-cta-block--center {
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}
body.batipro-page .bp-hero-disclaimer {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13.5px;
  margin: 0;
}
body.batipro-page .bp-hero-disclaimer strong {
  color: var(--c-ocre);
  font-weight: 600;
}

/* --- BÉNÉFICES (4 cards icônes) --- */
body.batipro-page .bp-rj-benefits {
  background: var(--c-cream);
  color: var(--c-text);
  padding: clamp(40px, 5vw, 72px) 0 !important;
  border-top: 1px solid rgba(11, 29, 58, 0.06);
}
body.batipro-page .bp-rj-benefits h2 { color: var(--c-ink); }
body.batipro-page .bp-rj-benefits h2 em { color: var(--c-ocre); }

body.batipro-page .bp-rj-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 980px) {
  body.batipro-page .bp-rj-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}
body.batipro-page .bp-rj-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.08);
  border-top: 3px solid var(--c-ocre);
  border-radius: 12px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 14px -4px rgba(11, 29, 58, 0.08);
  transition: transform 320ms var(--bp-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow 320ms var(--bp-ease, cubic-bezier(0.16, 1, 0.3, 1));
}
body.batipro-page .bp-rj-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 16px 36px -10px rgba(11, 29, 58, 0.18);
}
body.batipro-page .bp-rj-num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--ff-serif, Georgia, serif);
  font-style: italic;
  font-size: 36px;
  font-weight: 600;
  color: var(--c-ocre);
  opacity: 0.22;
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}
/* Badge icone premium : carre arrondi avec inset highlight + ocre subtle gradient */
body.batipro-page .bp-rj-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(200, 122, 44, 0.14), rgba(200, 122, 44, 0.06));
  border: 1px solid rgba(200, 122, 44, 0.22);
  color: var(--c-ocre);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 12px -4px rgba(200, 122, 44, 0.12);
  transition: transform 320ms var(--bp-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              border-color 320ms,
              background 320ms;
}
body.batipro-page .bp-rj-card:hover .bp-rj-icon {
  transform: translateY(-2px) rotate(-2deg);
  border-color: rgba(200, 122, 44, 0.45);
  background:
    linear-gradient(135deg, rgba(200, 122, 44, 0.22), rgba(200, 122, 44, 0.10));
}
body.batipro-page .bp-rj-icon svg {
  width: 30px !important;
  height: 30px !important;
  display: block;
  flex-shrink: 0;
}
/* Garde-fou : aucun SVG dans cette page ne doit deborder de son container */
body.batipro-page .bp-rj-card svg,
body.batipro-page .bp-rj-step svg,
body.batipro-page .bp-rj-form-section svg {
  max-width: 100%;
  max-height: 100%;
}
/* Animation subtile a l'apparition de l'icone au hover */
body.batipro-page .bp-rj-icon svg path,
body.batipro-page .bp-rj-icon svg circle {
  transition: opacity 280ms var(--bp-ease, cubic-bezier(0.16, 1, 0.3, 1));
}
body.batipro-page .bp-rj-card:hover .bp-rj-icon svg circle[fill="currentColor"] {
  opacity: 1 !important;
}
body.batipro-page .bp-rj-card h3 {
  color: var(--c-ink);
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
}
body.batipro-page .bp-rj-card p {
  color: rgba(11, 29, 58, 0.74);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* --- COMMENT ÇA MARCHE (3 étapes) --- */
body.batipro-page .bp-rj-howto {
  background: var(--c-blue-deep);
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(40px, 5vw, 72px) 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
body.batipro-page .bp-rj-howto h2 { color: #fff; }
body.batipro-page .bp-rj-howto h2 em { color: var(--c-ocre-soft, var(--c-ocre)); }

body.batipro-page .bp-rj-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.batipro-page .bp-rj-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: transform 240ms var(--bp-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              border-color 240ms,
              background 240ms;
}
body.batipro-page .bp-rj-step:hover {
  transform: translateX(4px);
  border-color: rgba(200, 122, 44, 0.32);
  background: rgba(255, 255, 255, 0.06);
}
body.batipro-page .bp-rj-step-num {
  font-family: var(--ff-serif, Georgia, serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 600;
  color: var(--c-ocre);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}
body.batipro-page .bp-rj-step-body {
  flex: 1;
}
body.batipro-page .bp-rj-step h3 {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}
body.batipro-page .bp-rj-step p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
body.batipro-page .bp-rj-step p strong { color: #fff; }

@media (max-width: 600px) {
  body.batipro-page .bp-rj-step { gap: 16px; padding: 18px 18px; }
  body.batipro-page .bp-rj-step-num { font-size: 24px; width: 40px; }
}

/* --- FORMULAIRE DIRECTORIST WRAPPER --- */
body.batipro-page .bp-rj-form-section {
  background: var(--c-cream);
  color: var(--c-text);
  padding: clamp(40px, 5vw, 72px) 0 !important;
  border-top: 1px solid rgba(11, 29, 58, 0.06);
}
body.batipro-page .bp-rj-form-section h2 { color: var(--c-ink); }
body.batipro-page .bp-rj-form-section h2 em { color: var(--c-ocre); }
body.batipro-page .bp-rj-form-section .lead {
  color: rgba(11, 29, 58, 0.78);
  max-width: 600px;
  margin: 16px auto 0;
}
body.batipro-page .bp-rj-form-shell {
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.08);
  border-radius: 14px;
  padding: 32px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 24px -6px rgba(11, 29, 58, 0.10);
  margin-top: 32px;
}
@media (max-width: 600px) {
  body.batipro-page .bp-rj-form-shell { padding: 24px 18px; }
}

/* Override Directorist : le formulaire sur fond blanc avec spacing aere */
body.batipro-page .bp-rj-form-shell .directorist-form-group,
body.batipro-page .bp-rj-form-shell .form-group {
  margin-bottom: 18px;
}
body.batipro-page .bp-rj-form-shell label {
  color: var(--c-ink);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}
body.batipro-page .bp-rj-form-shell input[type="text"],
body.batipro-page .bp-rj-form-shell input[type="email"],
body.batipro-page .bp-rj-form-shell input[type="tel"],
body.batipro-page .bp-rj-form-shell input[type="number"],
body.batipro-page .bp-rj-form-shell input[type="url"],
body.batipro-page .bp-rj-form-shell select,
body.batipro-page .bp-rj-form-shell textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(11, 29, 58, 0.14);
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: var(--c-ink);
  transition: border-color 200ms, box-shadow 200ms;
}
body.batipro-page .bp-rj-form-shell input:focus,
body.batipro-page .bp-rj-form-shell select:focus,
body.batipro-page .bp-rj-form-shell textarea:focus {
  outline: none;
  border-color: var(--c-ocre);
  box-shadow: 0 0 0 3px rgba(200, 122, 44, 0.18);
}
body.batipro-page .bp-rj-form-shell button[type="submit"],
body.batipro-page .bp-rj-form-shell input[type="submit"],
body.batipro-page .bp-rj-form-shell .directorist-btn {
  background: linear-gradient(180deg, #c87a2c 0%, #b16a25 60%, #9a5e22 100%);
  color: #fff !important;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 220ms var(--bp-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow 220ms;
  box-shadow: 0 6px 18px -4px rgba(11, 29, 58, 0.22);
}
body.batipro-page .bp-rj-form-shell button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(11, 29, 58, 0.28);
}
