.group-page-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 88px;

  background:
    linear-gradient(
      120deg,
      rgba(31,58,95,0.75) 0%,
      rgba(31,58,95,0.55) 40%,
      rgba(31,58,95,0.4) 100%
    ),
    url("/images/hero/etang.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #fff;
}

.group-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 82%);
  pointer-events: none;
}

.group-page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 40px;
  align-items: center;
}

.group-kicker,
.group-section-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2c572;
}

.group-page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.9rem, 6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.group-page-hero p {
  margin: 0;
  max-width: 760px;
  font-size: 1.14rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.group-page-hero h1,
.group-page-hero p {
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.group-page-hero-card {
  display: flex;
  justify-content: flex-end;
}

.group-page-hero-card-inner {
  width: 100%;
  max-width: 390px;
  padding: 30px;
  border-radius: 24px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


.group-page-hero-card-inner strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.08rem;
  color: #fff;
}

.group-page-hero-card-inner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.group-page-section {
  padding: 92px 0;
  background: #ffffff;
}

.group-page-section-alt {
  background: linear-gradient(180deg, #f7f9fc 0%, #f3f7fb 100%);
}

.group-section-heading {
  margin-bottom: 30px;
}

.group-section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1f3a5f;
}

.group-page-text {
  max-width: 920px;
}

.group-page-text p {
  margin: 0 0 24px;
  font-size: 1.06rem;
  line-height: 1.95;
  color: #334155;
}

.group-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.group-role-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 30px 28px 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(31, 58, 95, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.group-role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.group-role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #2f6fb0;
}

.group-role-card:nth-child(2)::before {
  background: #df9858;
}

.group-role-card::after {
  content: attr(data-step);
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(31, 58, 95, 0.06);
  pointer-events: none;
}

.group-role-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fb;
  color: #1f3a5f;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.group-role-card:nth-child(2) .group-role-icon {
  background: #fff1e4;
  color: #c7772d;
}

.group-role-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #1f3a5f;
  font-size: 1.3rem;
  line-height: 1.2;
}

.group-role-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #475569;
  line-height: 1.85;
  font-size: 1rem;
}



.group-elected-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.group-elected-card {
  background: #fff;
  border: 1px solid rgba(31, 58, 95, 0.08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.group-elected-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.1);
}

.group-elected-image {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #dfe7f2;
}

.group-elected-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent);
  pointer-events: none;
}

.group-elected-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

.group-elected-content {
  padding: 28px 28px 30px;
}

.group-elected-content h3 {
  margin: 0 0 8px;
  color: #1f3a5f;
  font-size: 1.5rem;
  line-height: 1.2;
}

.group-elected-role {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4e5;
  color: #b45309;
  font-weight: 700;
  font-size: 0.92rem;
}

.group-elected-content p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.group-method {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.group-method-text h2 {
  margin: 0 0 16px;
  color: #1f3a5f;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.group-method-text p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.9;
  font-size: 1.02rem;
}

.group-method-points {
  display: grid;
  gap: 18px;
}

.group-method-point {
  position: relative;
  padding: 26px 24px 26px 28px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(31, 58, 95, 0.08);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-method-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0px;
  bottom: 0px;
  width: 8px;
  border-radius: 4px;
  background: #2f6fb0;
}

.group-method-point:nth-child(2)::before {
  background: #df9858;
}

.group-method-point:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.group-method-point::after {
  content: attr(data-title);
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(31, 58, 95, 0.08);
  pointer-events: none;
}

.group-method-point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
  color: #1f3a5f;
}

.group-method-point span {
  color: #64748b;
  line-height: 1.7;
}

.group-page-cta {
  padding: 86px 0;
  background:#fff;
  color: #000;
}

.group-page-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.group-page-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.group-page-cta p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
}

.group-page-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.group-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.group-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.group-btn-primary {
  background: #f2c572;
  color: #1f3a5f;
  box-shadow: 0 10px 24px rgba(242, 197, 114, 0.22);
}

.group-btn-secondary {
  background: rgba(255, 255, 255, 0.80);
  color: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 1024px) {
  .group-page-hero {
    padding: 88px 0 72px;
  }

  .group-page-hero-inner,
  .group-method {
    grid-template-columns: 1fr;
  }

  .group-page-hero-card {
    justify-content: flex-start;
  }

  .group-page-hero-card-inner {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .group-role-grid,
  .group-elected-grid,
  .group-page-cta-inner {
    grid-template-columns: 1fr;
  }

  .group-page-cta-inner {
    display: grid;
  }

  .group-elected-image {
    height: 300px;
  }
}

@media (max-width: 640px) {
  .group-page-hero {
    padding: 72px 0 56px;
  }

  .group-page-section,
  .group-page-cta {
    padding: 58px 0;
  }

  .group-page-hero h1 {
    font-size: 2.7rem;
  }

  .group-page-text p,
  .group-method-text p,
  .group-role-card p,
  .group-elected-content p,
  .group-page-cta p {
    font-size: 1rem;
  }

  .group-role-card,
  .group-method-point,
  .group-page-hero-card-inner {
    padding: 22px;
  }

  .group-elected-image {
    height: 250px;
  }

  .group-elected-content {
    padding: 22px;
  }

  .group-page-cta-actions {
    width: 100%;
  }

  .group-btn {
    width: 100%;
  }
}