/* Actions d'intérêt public — expérience impact immersive */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,500&display=swap');

.actions-impact {
  --ai-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ai-rose: var(--rotaract-rose, #D41367);
  --ai-rose-light: var(--rotaract-rose-light, #E0408F);
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fdf8fa 40%, #f8f0f5 100%);
  overflow: clip;
}

.actions-impact--page {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.actions-impact__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 0% 0%, rgba(212, 19, 103, 0.06), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(201, 162, 39, 0.05), transparent 50%);
}

/* Hero page */
.actions-impact__hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  background: linear-gradient(145deg, #0f1118 0%, #1a1520 45%, #2a1230 100%);
  color: #fff;
  overflow: hidden;
}

.actions-impact__hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(212, 19, 103, 0.25), transparent 55%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(23, 69, 143, 0.2), transparent 50%);
  pointer-events: none;
}

.actions-impact__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.actions-impact__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.actions-impact__hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 1rem;
}

.actions-impact__hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* Header accueil */
.actions-impact__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.actions-impact__header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.65rem;
}

.actions-impact__header p {
  color: var(--secondary-color, #5a6f80);
  max-width: 36rem;
  margin: 0 auto;
}

/* Compteurs globaux */
.actions-impact__counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 575px) {
  .actions-impact__counters {
    grid-template-columns: 1fr;
  }
}

.actions-impact__counter {
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(212, 19, 103, 0.1);
  box-shadow: 0 8px 32px rgba(212, 19, 103, 0.06);
  text-align: center;
  backdrop-filter: blur(10px);
}

.actions-impact--page .actions-impact__counter {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.actions-impact__counter-value {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ai-rose);
  margin-bottom: 0.3rem;
}

.actions-impact--page .actions-impact__counter-value {
  color: #fff;
}

.actions-impact__counter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color, #5a6f80);
}

.actions-impact--page .actions-impact__counter-label {
  color: rgba(255, 255, 255, 0.65);
}

.actions-impact__hero .actions-impact__counters {
  margin-top: 2rem;
}

/* Filtres */
.actions-impact__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 2.5rem);
}

.actions-impact__filter {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 19, 103, 0.15);
  background: #fff;
  color: var(--secondary-color, #5a6f80);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ai-spring);
}

.actions-impact__filter:hover {
  border-color: rgba(212, 19, 103, 0.35);
  transform: translateY(-2px);
}

.actions-impact__filter.is-active {
  background: linear-gradient(135deg, var(--ai-rose), var(--ai-rose-light));
  border-color: transparent;
  color: #fff;
}

/* Grille éditoriale */
.actions-impact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .actions-impact__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.35rem;
  }
}

.actions-impact__story {
  position: relative;
  grid-column: span 12;
  border: 0;
  padding: 0;
  text-align: left;
  border-radius: 1.35rem;
  overflow: hidden;
  cursor: pointer;
  min-height: 320px;
  background: #1a1a1a;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s var(--ai-spring),
    transform 0.75s var(--ai-spring),
    box-shadow 0.45s ease;
}

.actions-impact__story.ai-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .actions-impact__story--hero {
    grid-column: span 8;
    min-height: 420px;
  }

  .actions-impact__story--side {
    grid-column: span 4;
    min-height: 420px;
  }

  .actions-impact__story--wide {
    grid-column: span 7;
    min-height: 360px;
  }

  .actions-impact__story--tall {
    grid-column: span 5;
    min-height: 360px;
  }

  .actions-impact__story--half {
    grid-column: span 6;
    min-height: 340px;
  }
}

.actions-impact__story-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.actions-impact__story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ai-spring), filter 0.5s ease;
}

.actions-impact__story:hover .actions-impact__story-media img {
  transform: scale(1.07);
  filter: brightness(0.75);
}

.actions-impact__story-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 14, 0.92) 0%, rgba(10, 10, 14, 0.25) 55%, rgba(10, 10, 14, 0.1) 100%);
  transition: background 0.45s ease;
}

.actions-impact__story:hover .actions-impact__story-shade {
  background: linear-gradient(0deg, rgba(10, 10, 14, 0.95) 0%, rgba(10, 10, 14, 0.45) 60%, rgba(10, 10, 14, 0.2) 100%);
}

.actions-impact__story-body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.5s var(--ai-spring);
}

.actions-impact__story:hover .actions-impact__story-body {
  transform: translateY(0);
}

.actions-impact__story-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(212, 19, 103, 0.85);
  margin-bottom: 0.65rem;
}

.actions-impact__story-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.5rem;
}

.actions-impact__story-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actions-impact__story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.actions-impact__story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ai-spring);
}

.actions-impact__story:hover .actions-impact__story-cta {
  opacity: 1;
  transform: translateX(0);
}

.actions-impact__story-progress {
  flex: 1;
  min-width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.actions-impact__story-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ai-rose), var(--ai-rose-light));
  border-radius: 999px;
  transition: width 0.8s var(--ai-spring);
}

.actions-impact__footer {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.actions-impact__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--secondary-color, #5a6f80);
}

/* —— Impact Story Mode (modal plein écran) —— */
.actions-story {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background: #0c0e14;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.actions-story.is-open {
  opacity: 1;
  visibility: visible;
}

.actions-story__close {
  position: fixed;
  top: calc(var(--site-chrome-height, 0px) + 1rem);
  right: 1.25rem;
  z-index: 10002;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.3s ease, transform 0.3s var(--ai-spring);
}

.actions-story__close:hover {
  background: rgba(212, 19, 103, 0.5);
  transform: scale(1.05);
}

.actions-story__scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.actions-story__hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
}

.actions-story__hero-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.actions-story__hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0c0e14 0%, transparent 50%, rgba(12, 14, 20, 0.4) 100%);
}

.actions-story__hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem) 0;
  width: 100%;
}

.actions-story__hero-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ai-rose);
  margin-bottom: 1rem;
}

.actions-story__hero h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 0.75rem;
  max-width: 48rem;
}

.actions-story__hero-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.actions-story__body {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  color: #f4f2ef;
}

.actions-story__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .actions-story__stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.actions-story__stat {
  padding: 1.15rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.actions-story__stat-value {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.actions-story__stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.actions-story__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(244, 242, 239, 0.85);
  max-width: 42rem;
  margin: 0 0 2rem;
}

.actions-story__quote {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 1.15rem;
  background: rgba(212, 19, 103, 0.12);
  border-left: 3px solid var(--ai-rose);
  margin-bottom: 2rem;
}

.actions-story__quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-style: italic;
  line-height: 1.45;
  color: #fff;
  margin: 0 0 0.5rem;
}

.actions-story__quote cite {
  font-size: 0.78rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

.actions-story__donation {
  padding: 1.5rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.actions-story__donation-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin: 1rem 0;
}

.actions-story__donation-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ai-rose), var(--ai-rose-light));
  border-radius: 999px;
  transition: width 1s var(--ai-spring);
}

.actions-story__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.actions-story__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.35s var(--ai-spring), box-shadow 0.35s ease;
}

.actions-story__btn--primary {
  background: linear-gradient(135deg, var(--ai-rose), var(--ai-rose-light));
  color: #fff;
  border: 0;
}

.actions-story__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.actions-story__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 19, 103, 0.35);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .actions-impact__story,
  .actions-impact__story-media img,
  .actions-story {
    transition: none;
  }

  .actions-impact__story {
    opacity: 1;
    transform: none;
  }
}
