/* rse : ex-bloc <style> de page-rse-blueprint-light.php, source de vérité depuis le 09/09/2026 (plan poids-html-blueprint-light, lot 2). Tokens : var(--color-*) uniquement. */
/* ═══════════════════════════════════════════════════════════════════
   PAGE RSE - KYTOM Design System v1.0.0
   ═══════════════════════════════════════════════════════════════════ */

.rse-hero {
  position: relative;
  /* Hero capé à 100vh - au-dessus de la ligne de flottaison */
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 12vh, 140px) clamp(24px, 5vw, 80px) clamp(60px, 8vh, 100px);
  background: var(--color-bleu, #0d2857);
  overflow: hidden;
}

.rse-hero__glow {
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--color-mint);
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
  animation: rseHeroGlow 8s ease-in-out infinite;
}

@keyframes rseHeroGlow {
  0%, 100% { opacity: 0.08; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.1); }
}

.rse-hero__container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.rse-hero__bigtitle {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(100px, 18vw, 240px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.07);
  margin: 0 0 clamp(40px, 6vh, 80px);
  user-select: none;
  pointer-events: none;
}

.rse-hero__eyebrow {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-orange, #F27E33);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.rse-hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-orange, #F27E33);
}

.rse-hero__title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 0 0 28px;
  max-width: 900px;
}

.rse-hero__subtitle {
  font-family: var(--font-body, sans-serif);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0;
}

/* ── Sections 01-06 : pattern carte + photo (agences style) ── */

.rse-blocks {
  padding: clamp(80px, 10vh, 140px) 0;
  background: var(--color-gray-light, #F2F2F2);
  overflow: hidden;
}

.rse-blocks__container {
  max-width: var(--container-wide, 1400px);
  margin: 0 auto;
  padding: 0 60px;
}

.rse-block {
  position: relative;
  display: grid;
  grid-template-columns: 55% 1fr;
  align-items: center;
  margin-bottom: 120px;
}

.rse-block:last-child {
  margin-bottom: 0;
}

.rse-block:nth-child(even) {
  grid-template-columns: 1fr 55%;
}

.rse-block__photo {
  position: relative;
  overflow: hidden;
  height: 520px;
  margin-left: -60px;
  border-radius: 0 16px 16px 0;
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.rse-block:nth-child(even) .rse-block__photo {
  order: 2;
  margin-left: 0;
  margin-right: -60px;
  border-radius: 16px 0 0 16px;
  transform: translateX(60px);
}

.rse-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rse-block__photo:hover img {
  transform: scale(1.04);
}

.rse-block__photo.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.rse-block__card {
  position: relative;
  z-index: 2;
  background: var(--color-white);
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  margin-left: -120px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
              transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.rse-block:nth-child(even) .rse-block__card {
  margin-left: 0;
  margin-right: -120px;
  order: 1;
}

.rse-block__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rse-block__num {
  position: absolute;
  top: -30px;
  left: 48px;
  font-family: var(--font-title, sans-serif);
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-bleu, #0d2857);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.rse-block__card h2 {
  font-family: var(--font-title, sans-serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--color-bleu, #0d2857);
  margin: 0 0 4px;
  line-height: 1.2;
}

.rse-block__subtitle {
  font-size: var(--text-sm, 14px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange, #F27E33);
  margin-bottom: 20px;
}

.rse-block__text {
  font-family: var(--font-body, sans-serif);
  font-size: clamp(15px, 1.2vw, 16px);
  line-height: 1.7;
  color: var(--color-text-muted, #666);
}

.rse-block__text p {
  margin: 0 0 14px;
}

.rse-block__text p:last-child {
  margin-bottom: 0;
}

.rse-block__text a {
  color: var(--color-orange, #F27E33);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.rse-block__text a:hover {
  color: var(--color-bleu, #0d2857);
}

/* ── Section stats (fond blanc sous les blocks) ── */
.rse-section--stats {
  padding: clamp(80px, 10vh, 140px) clamp(24px, 5vw, 80px);
  background: var(--color-white);
}

@media (max-width: 1024px) {
  .rse-blocks__container { padding: 0 40px; }
  .rse-block { grid-template-columns: 55% 1fr; }
  .rse-block:nth-child(even) { grid-template-columns: 1fr 55%; }
  .rse-block__photo { height: 420px; }
  .rse-block__card { margin-left: -80px; padding: 36px; }
  .rse-block:nth-child(even) .rse-block__card { margin-right: -80px; }
}

@media (max-width: 768px) {
  .rse-blocks__container { padding: 0 20px; }

  .rse-block {
    grid-template-columns: 1fr;
    margin-bottom: 80px;
  }

  .rse-block:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .rse-block__photo {
    height: 280px;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
    transform: none;
    opacity: 0;
  }

  .rse-block:nth-child(even) .rse-block__photo {
    order: 0;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
    transform: none;
  }

  .rse-block__photo.is-visible {
    transform: none;
  }

  .rse-block__card {
    margin: -40px 10px 0;
    padding: 32px 24px;
    transform: translateY(20px);
  }

  .rse-block:nth-child(even) .rse-block__card {
    margin: -40px 10px 0;
    order: 0;
  }

  .rse-block__num {
    font-size: 80px;
    top: -20px;
    left: 24px;
  }
}

.rse-stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--color-bleu, #0d2857);
  border-radius: 20px;
  overflow: hidden;
}

.rse-stats__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 3vw, 40px);
  position: relative;
}

.rse-stats__item + .rse-stats__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.rse-stats__value {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.rse-stats__value .rse-stats__accent {
  color: var(--color-orange, #F27E33);
}

.rse-stats__label {
  font-family: var(--font-body, sans-serif);
  font-size: clamp(12px, 1.2vw, 14px);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  letter-spacing: 0.02em;
}

.rse-stats__divider {
  display: none;
}

.rse-cta {
  padding: clamp(80px, 10vh, 140px) clamp(24px, 5vw, 80px);
  background: var(--color-bleu, #0d2857);
  text-align: center;
}

.rse-cta__container {
  max-width: 700px;
  margin: 0 auto;
}

.rse-cta__title {
  font-family: var(--font-title, sans-serif);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin: 0 0 32px;
}

.rse-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--color-orange, #F27E33);
  color: var(--color-white);
  font-family: var(--font-body, sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rse-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 126, 51, 0.4);
}

.rse-cta__button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rse-cta__button:hover svg {
  transform: translateX(4px);
}

.rse-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* LCP-safe (audit perf 13/07) : le héros ne démarre JAMAIS invisible — son
   reveal se joue en transform seul, opacité pleine dès le premier paint
   (le H1 candidat LCP retombait à 1,53-1,56 s à cause du fondu). */
.rse-hero .rse-reveal { opacity: 1; }

.rse-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .rse-stats {
    flex-direction: column;
    border-radius: 16px;
  }

  .rse-stats__item + .rse-stats__item::before {
    top: 0;
    left: 20%;
    width: 60%;
    height: 1px;
  }

  .rse-section__number {
    font-size: 48px;
    top: -10px;
    left: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rse-reveal,
  .rse-block__photo,
  .rse-block__card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rse-hero__glow {
    animation: none;
  }
}
