/* =====================================================
   VARIABLES & BASE
   ===================================================== */
:root {
  --esp-primary:   #C8102E;   /* rouge Espaces */
  --esp-dark:      var(--color-services);   /* #1a1a2e, défini dans tokens.css */
  --esp-light:     #f8f5f0;
  --esp-border:    #e2ddd8;
  --esp-muted:     #6b6560;
  --esp-stat-bg:   #fff9f0;
}
[data-bs-theme="dark"] {
  --esp-light:     var(--bs-gray-800);
  --esp-border:    var(--bs-gray-700);
  --esp-muted:     var(--bs-gray-400);
  --esp-stat-bg:   var(--bs-gray-800);
}

/* =====================================================
   HERO
   ===================================================== */
.hero-emploi {
  background: var(--esp-dark);
  color: #fff;
  padding: 3.5rem 2rem;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero-emploi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(200,16,46,.35) 0%, transparent 60%);
  pointer-events: none;
}
.hero-emploi .badge-leader {
  display: inline-block;
  background: rgba(200,16,46,.18);
  color: #f7a8b5;
  border: 1px solid rgba(200,16,46,.4);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}
.hero-emploi h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.hero-emploi h1 span {
  color: #f7a8b5;
}
.hero-emploi .hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-emploi .hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .5rem;
  padding: .6rem 1.2rem;
  margin-bottom: 1.5rem;
}
.hero-emploi .price-amount {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}
.hero-emploi .price-label {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.btn-hero {
  background: var(--esp-primary);
  color: #fff;
  border: none;
  padding: .85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: .5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s, transform .15s;
}
.btn-hero:hover {
  background: #a50d26;
  color: #fff;
  transform: translateY(-1px);
}
.btn-hero-outline {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.3);
  padding: .85rem 1.5rem;
  font-size: 1rem;
  border-radius: .5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: border-color .2s, color .2s;
}
.btn-hero-outline:hover {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.hero-reassurance {
  margin-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* =====================================================
   STATS CHIFFRÉES
   ===================================================== */
.stats-band {
  background: var(--esp-stat-bg);
  border: 1px solid var(--esp-border);
  border-radius: .75rem;
  padding: 2rem 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-item {
  text-align: center;
  padding: .75rem 1rem;
}
.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--esp-primary);
  line-height: 1.1;
  display: block;
}
.stat-item .stat-label {
  font-size: .82rem;
  color: var(--esp-muted);
  margin-top: .3rem;
  line-height: 1.4;
}
.stats-divider {
  width: 1px;
  background: var(--esp-border);
  margin: .5rem 0;
}

/* =====================================================
   RÉSULTATS (sondage)
   ===================================================== */
.results-section {
  margin-bottom: 2.5rem;
}
.results-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.results-section .section-sub {
  font-size: .9rem;
  color: var(--esp-muted);
  margin-bottom: 1.5rem;
}
.result-card {
  background: var(--surface-page);
  border: 1px solid var(--esp-border);
  border-radius: .65rem;
  padding: 1.4rem 1.25rem;
  height: 100%;
}
.result-card .result-pct {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--esp-primary);
  line-height: 1;
  margin-bottom: .4rem;
}
.result-card .result-text {
  font-size: .9rem;
  color: #333;
  line-height: 1.5;
}
.result-note {
  font-size: .75rem;
  color: var(--esp-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* =====================================================
   BÉNÉFICES
   ===================================================== */
.benefits-section {
  margin-bottom: 2.5rem;
}
.benefits-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.benefits-section .section-sub {
  font-size: .9rem;
  color: var(--esp-muted);
  margin-bottom: 1.5rem;
}
.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--surface-page);
  border: 1px solid var(--esp-border);
  border-radius: .65rem;
  height: 100%;
}
.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fdeef1;
  color: var(--esp-primary);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.benefit-item h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .2rem;
}
.benefit-item p {
  font-size: .85rem;
  color: var(--esp-muted);
  margin: 0;
  line-height: 1.5;
}

/* =====================================================
   DIFFUSION (canaux)
   ===================================================== */
.diffusion-section {
  background: var(--esp-light);
  border: 1px solid var(--esp-border);
  border-radius: .75rem;
  padding: 2rem 1.75rem;
  margin-bottom: 2.5rem;
}
.diffusion-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.diffusion-section .section-sub {
  font-size: .9rem;
  color: var(--esp-muted);
  margin-bottom: 1.5rem;
}
.channel-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  background: var(--surface-page);
  border-radius: .5rem;
  border: 1px solid var(--esp-border);
  margin-bottom: .75rem;
}
.channel-icon {
  color: var(--esp-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.channel-item strong {
  font-size: .9rem;
  display: block;
  margin-bottom: .1rem;
}
.channel-item span {
  font-size: .8rem;
  color: var(--esp-muted);
}

/* =====================================================
   OFFRE & PRIX
   ===================================================== */
.offer-section {
  margin-bottom: 2.5rem;
}
.offer-card {
  border: 2px solid var(--esp-primary);
  border-radius: .75rem;
  overflow: hidden;
}
.offer-card-header {
  background: var(--esp-primary);
  color: #fff;
  padding: 1.25rem 1.75rem;
}
.offer-card-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 .2rem;
}
.offer-card-header p {
  font-size: .85rem;
  opacity: .8;
  margin: 0;
}
.offer-card-body {
  padding: 1.75rem;
  background: var(--surface-page);
}
.offer-price-block {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.offer-price-main {
  font-size: 3rem;
  font-weight: 800;
  color: var(--esp-primary);
  line-height: 1;
}
.offer-price-detail {
  font-size: .85rem;
  color: var(--esp-muted);
  line-height: 1.5;
}
.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  color: #333;
  padding: .45rem 0;
  border-bottom: 1px solid #f0ece8;
}
.offer-list li:last-child { border-bottom: none; }
.offer-list li i {
  color: #1a9e6e;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.offer-reassurance {
  font-size: .78rem;
  color: var(--esp-muted);
  background: #f8f5f0;
  border-radius: .4rem;
  padding: .65rem .9rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

/* =====================================================
   TUNNEL (3 étapes)
   ===================================================== */
.tunnel-section {
  margin-bottom: 2.5rem;
}
.tunnel-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.tunnel-section .section-sub {
  font-size: .9rem;
  color: var(--esp-muted);
  margin-bottom: 1.75rem;
}
.tunnel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.tunnel-step-num {
  width: 52px;
  height: 52px;
  background: var(--esp-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.tunnel-step h3 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .3rem;
}
.tunnel-step p {
  font-size: .83rem;
  color: var(--esp-muted);
  line-height: 1.5;
  margin: 0;
}
.tunnel-arrow {
  color: var(--esp-border);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  padding-top: .5rem;
}

/* =====================================================
   CTA FINAL
   ===================================================== */
.cta-final {
  background: var(--esp-dark);
  color: #fff;
  border-radius: .75rem;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(200,16,46,.4) 0%, transparent 65%);
  pointer-events: none;
}
.cta-final h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.cta-final p {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta-main {
  background: var(--esp-primary);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: .5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: background .2s, transform .15s;
}
.btn-cta-main:hover {
  background: #a50d26;
  color: #fff;
  transform: translateY(-2px);
}
.cta-modes {
  margin-top: 1.25rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* =====================================================
   MODE SOMBRE — cas isolés
   ===================================================== */
[data-bs-theme="dark"] .result-card .result-text,
[data-bs-theme="dark"] .offer-list li {
  color: var(--bs-gray-300);
}
[data-bs-theme="dark"] .offer-list li {
  border-bottom-color: var(--bs-gray-700);
}

