/* Page B Secure — préfixe .bs-page (évite les conflits avec base.html) */
.bs-page {
  --bs-green:      var(--color-primary);
  --bs-green-btn:  var(--color-primary-dark);
  --bs-green-hover:var(--color-primary-hover);
  --bs-blue:       var(--color-secondary);
  --bs-blue-mid:   var(--color-secondary-mid);
  --bs-blue-pale:  var(--color-secondary-pale-alt);
  --bs-green-pale: var(--color-primary-pale);
  --bs-text-dark:  var(--color-text-dark);
  --bs-text-mid:   var(--color-text-mid);
  --bs-text-light: var(--color-text-light);
  --bs-bg-light:   var(--color-bg-light);
  --bs-white:      var(--color-white);
  --bs-radius:     var(--radius-sm);
  --bs-radius-lg:  var(--radius-lg);
  --bs-radius-full:var(--radius-full);
  font-family: var(--font-brand);
  font-size: 1.1rem;
  color: var(--bs-text-dark);
  line-height: 1.6;
  background: var(--bs-white);
  overflow-x: hidden;
}

.bs-page *,
.bs-page *::before,
.bs-page *::after {
  box-sizing: border-box;
}

.bs-page h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; font-weight: 900; margin: 0; }
.bs-page h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.2; font-weight: 900; margin: 0; }
.bs-page h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); line-height: 1.3; font-weight: 900; margin: 0; }
.bs-page h5 { font-size: 1rem; font-weight: 700; margin: 0; }
.bs-page p { margin-bottom: 1rem; }
.bs-page p:last-child { margin-bottom: 0; }
.bs-page a { color: var(--bs-blue); text-decoration: none; }
.bs-page a:hover { text-decoration: underline; }
.bs-page strong { font-weight: 700; }

.bs-page .container {
  max-width: 1088px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* HERO */
.bs-page .hero {
  margin-top: calc(120px + 2.5rem);
  padding-bottom: 4rem;
  background: linear-gradient(270deg, var(--bs-green-pale) 0%, var(--bs-blue-pale) 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.bs-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='1349' height='544' viewBox='0 0 1349 544' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1316.58 462.614C1323.54 486.715 1308.74 500.561 1283.68 493.384L1185.41 465.237C1160.35 458.06 1154.66 438.341 1172.75 421.417L1243.71 355.046C1261.81 338.12 1282.31 343.993 1289.27 368.096L1316.58 462.614Z' fill='%239ADF3E' stroke='%2399DF2B' stroke-width='10'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M345.797 54.974C345.462 64.969 338.14 68.389 329.528 62.576L295.755 39.777C287.142 33.964 287.417 25.786 296.365 21.605L331.455 5.207C340.404 1.025 347.45 5.782 347.113 15.777L345.797 54.974Z' fill='%239ADF3E' stroke='%239ADF3E' stroke-width='6'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.444 376.073C6.487 368.93 9.077 361.318 19.198 359.157L58.892 350.685C69.014 348.524 74.706 354.368 71.54 363.672L59.128 400.159C55.963 409.464 47.681 411.232 40.725 404.087L13.444 376.073Z' stroke='%2382BFE9' stroke-width='5'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1123.51 164.542C1110.3 160.862 1108.12 150.02 1118.65 140.45L1159.96 102.917C1170.49 93.346 1181.29 96.357 1183.97 109.608L1194.44 161.573C1197.11 174.825 1188.5 182.655 1175.29 178.974L1123.51 164.542Z' stroke='%2382BFE9' stroke-width='5'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M68.046 141.315C72.582 137.835 76.75 139.827 77.309 145.74L79.501 168.931C80.06 174.845 76.349 177.692 71.254 175.258L51.275 165.714C46.18 163.281 45.722 158.442 50.259 154.963L68.046 141.315Z' fill='%2382BFE9' stroke='%2382BFE9' stroke-width='6'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  pointer-events: none;
}

.bs-page .hero-inner {
  max-width: 1088px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.bs-page .hero-text { flex: 1; }
.bs-page .hero-text h1 { color: var(--bs-text-dark); margin-bottom: 2rem; }

.bs-page .hero-bullets {
  list-style: none;
  margin-bottom: 2.5rem;
  padding: 0;
}

.bs-page .hero-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--bs-text-dark);
  margin-bottom: 0.6rem;
}

.bs-page .hero-bullets li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bs-green-btn), var(--bs-blue-mid));
  flex-shrink: 0;
}

.bs-page .anchor-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0;
}

.bs-page .anchor-nav li a {
  font-size: 0.82rem;
  color: var(--bs-blue-mid);
  border-bottom: 1px solid var(--bs-blue-mid);
  padding-bottom: 1px;
  white-space: nowrap;
}

.bs-page .anchor-nav li a:hover {
  text-decoration: none;
  color: var(--bs-blue);
  border-color: var(--bs-blue);
}

.bs-page .hero-visual {
  flex: 0 0 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bs-page .hero-shield {
  width: 240px;
  height: 240px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(135deg, var(--bs-blue-pale) 0%, var(--bs-green-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: 0 8px 32px rgba(43, 141, 219, 0.15);
}

/* Boutons page (noms distincts de base.html) */
.bs-page .bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--bs-radius-full);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.bs-page .bs-btn-primary {
  background: var(--bs-green-btn);
  color: #fff;
}

.bs-page .bs-btn-primary:hover {
  background: var(--bs-green-hover);
  text-decoration: none;
  color: #fff;
}

.bs-page .bs-btn-outline {
  background: transparent;
  color: var(--bs-blue);
  border: 2px solid var(--bs-blue);
}

.bs-page .bs-btn-outline:hover {
  background: var(--bs-blue);
  color: #fff;
  text-decoration: none;
}

.bs-page .bs-btn-lg {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2.25rem;
  border-radius: var(--bs-radius-full);
}

/* SECTIONS */
.bs-page .section { padding: 3.5rem 0; }
.bs-page .section-alt { background: var(--bs-bg-light); }
.bs-page .section-grad { background: linear-gradient(270deg, var(--bs-green-pale) 0%, var(--bs-blue-pale) 100%); }

.bs-page .two-col {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.bs-page .two-col .col-text { flex: 1; }
.bs-page .two-col .col-visual {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-page .col-illustration {
  width: 220px;
  height: 260px;
  border-radius: var(--bs-radius-lg);
  background: linear-gradient(180deg, var(--bs-blue-pale) 0%, var(--bs-green-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 8px 24px rgba(43, 141, 219, 0.12);
}

.bs-page #what-is { scroll-margin-top: 80px; }
.bs-page #what-is h2 { margin-bottom: 1.25rem; }
.bs-page #what-is p { font-size: 1rem; color: var(--bs-text-mid); line-height: 1.8; }

.bs-page .highlight-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(270deg, var(--bs-green-pale) 0%, var(--bs-blue-pale) 100%);
  border-radius: var(--bs-radius-full);
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bs-text-dark);
  margin: 1rem 0;
}

.bs-page .highlight-line::before { content: '⚡'; }

.bs-page .insurance-box {
  background: var(--bs-white);
  border-radius: var(--bs-radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.07);
  margin-top: 2rem;
}

.bs-page .insurance-box h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.bs-page .insurance-box p { font-size: 1rem; color: var(--bs-text-mid); line-height: 1.8; }

.bs-page #activate { scroll-margin-top: 80px; }
.bs-page #activate h2 { margin-bottom: 2rem; }

.bs-page .steps-list { list-style: none; margin-bottom: 2.5rem; padding: 0; }
.bs-page .steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.bs-page .step-num {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(-90deg, var(--bs-green-btn) 20%, var(--bs-blue-mid) 75%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}

.bs-page .step-body { padding-top: 0.75rem; }
.bs-page .step-body p { font-size: 1rem; color: var(--bs-text-mid); line-height: 1.7; margin: 0; }

.bs-page #fees { scroll-margin-top: 80px; }
.bs-page #fees h2 { margin-bottom: 1.25rem; }

.bs-page .fees-highlight {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bs-text-dark);
  margin-bottom: 1.5rem;
}

.bs-page .fees-highlight span {
  color: var(--bs-blue-mid);
  font-size: 1.5rem;
}

.bs-page .fees-list { list-style: none; margin-bottom: 1.5rem; padding: 0; }
.bs-page .fees-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.97rem;
  color: var(--bs-text-mid);
  line-height: 1.7;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #e8e8e8;
}

.bs-page .fees-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bs-page .fees-list li::before {
  content: '•';
  color: var(--bs-blue-mid);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.bs-page #terms { scroll-margin-top: 80px; }
.bs-page .terms-block { margin-top: 2rem; }

.bs-page .terms-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bs-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.bs-page .terms-block p {
  font-size: 0.9rem;
  color: var(--bs-text-mid);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* CTA */
.bs-page .cta-banner {
  padding: 3.5rem 0;
  background: linear-gradient(270deg, var(--bs-green-pale) 0%, var(--bs-blue-pale) 100%);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.bs-page .cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='1349' height='544' viewBox='0 0 1349 544' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1316.58 462.614C1323.54 486.715 1308.74 500.561 1283.68 493.384L1185.41 465.237C1160.35 458.06 1154.66 438.341 1172.75 421.417L1243.71 355.046C1261.81 338.12 1282.31 343.993 1289.27 368.096L1316.58 462.614Z' fill='%239ADF3E' stroke='%2399DF2B' stroke-width='10' opacity='.4'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
}

.bs-page .cta-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 3rem;
  align-items: center;
}

.bs-page .cta-banner-text { flex: 1; }
.bs-page .cta-banner-text h2 { margin-bottom: 1.5rem; }

.bs-page .cta-banner-visual {
  flex: 0 0 280px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bs-page .cta-person {
  width: 200px;
  height: 300px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, var(--bs-blue-pale) 0%, var(--bs-green-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  box-shadow: 0 8px 24px rgba(43, 141, 219, 0.12);
}

@media (max-width: 991px) {
  .bs-page .hero-visual { flex: 0 0 240px; }
  .bs-page .hero-shield { width: 180px; height: 180px; font-size: 4.5rem; }
  .bs-page .cta-banner-visual { flex: 0 0 200px; }
  .bs-page .cta-person { width: 160px; height: 240px; }
  .bs-page .two-col .col-visual { flex: 0 0 200px; }
  .bs-page .col-illustration { width: 170px; height: 210px; }
}

@media (max-width: 767px) {
  .bs-page .hero-inner { flex-direction: column; }
  .bs-page .hero-visual { display: none; }
  .bs-page .two-col { flex-direction: column; }
  .bs-page .two-col .col-visual { display: none; }
  .bs-page .cta-banner-inner { flex-direction: column; }
  .bs-page .cta-banner-visual { display: none; }
}

@media (max-width: 639px) {
  .bs-page .anchor-nav { flex-direction: column; }
}
