/* ==========================================
   CSS - PAGE NOS ESPACES MYRH
   ========================================== */

:root {
  --primary-color: #8000ff;
  --primary-light: #a050ff;
  --secondary-color: #4343ff;
  --text-color: #333333;
  --light-text: #666666;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* ==========================================
   HERO
   ========================================== */
.espaces-hero {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  padding: 80px 40px 70px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.espaces-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.espaces-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.espaces-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.espaces-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.espaces-hero .hero-subtitle {
  font-size: 1rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  color: var(--white);
}

/* ==========================================
   SECTION CARTES
   ========================================== */
.espaces-cards-section {
  padding: 60px 40px 50px;
  background: var(--light-gray);
}

.espaces-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}

.espaces-card {
  background: var(--white);
  border-radius: 20px;
  padding: 38px 32px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
}

.espaces-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.espaces-card.rh {
  border-top-color: var(--primary-color);
}
.espaces-card.eq {
  border-top-color: var(--secondary-color);
}

.card-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.rh .card-icon-wrap {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
}
.eq .card-icon-wrap {
  background: linear-gradient(135deg, #e8e8ff, #d5d5ff);
}

.card-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.rh .card-badge {
  color: var(--primary-color);
}
.eq .card-badge {
  color: var(--secondary-color);
}

.espaces-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}

.espaces-card .card-desc {
  font-size: 0.9rem;
  color: var(--light-text);
  line-height: 1.7;
  margin-bottom: 22px;
}

.card-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  flex: 1;
}

.card-features li {
  font-size: 0.85rem;
  color: #555;
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.card-features li:last-child {
  border-bottom: none;
}

.card-features li i {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.rh .card-features li i {
  color: var(--primary-color);
}
.eq .card-features li i {
  color: var(--secondary-color);
}

.card-cta {
  display: block;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: auto;
}

.card-cta:hover {
  transform: translateY(-2px);
}

.rh .card-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-light)
  );
  color: var(--white);
  box-shadow: 0 5px 18px rgba(128, 0, 255, 0.3);
}

.rh .card-cta:hover {
  box-shadow: 0 8px 24px rgba(128, 0, 255, 0.4);
}

.eq .card-cta {
  background: linear-gradient(135deg, var(--secondary-color), #6060ff);
  color: var(--white);
  box-shadow: 0 5px 18px rgba(67, 67, 255, 0.3);
}

.eq .card-cta:hover {
  box-shadow: 0 8px 24px rgba(67, 67, 255, 0.4);
}

/* ==========================================
   SECTION RÉASSURANCE
   ========================================== */
.espaces-reassurance {
  background: var(--white);
  padding: 55px 40px;
  border-top: 1px solid #eee;
}

.reassurance-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.reassurance-inner h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.espaces-reassurance .reassurance-subtitle {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.reassurance-item {
  background: var(--light-gray);
  border-radius: 14px;
  padding: 24px 20px;
}

.reassurance-item i {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 12px;
  display: block;
}

.reassurance-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 6px;
}

.reassurance-item span {
  font-size: 0.8rem;
  color: var(--light-text);
  line-height: 1.5;
}

.reassurance-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 15px 36px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(128, 0, 255, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.reassurance-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(128, 0, 255, 0.35);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .espaces-hero {
    padding: 60px 24px 50px;
  }

  .espaces-hero h1 {
    font-size: 1.8rem;
  }

  .espaces-cards-section {
    padding: 40px 20px;
  }

  .espaces-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reassurance-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .espaces-reassurance {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .espaces-hero h1 {
    font-size: 1.5rem;
  }

  .espaces-card {
    padding: 28px 22px;
  }
}
