/* ============================================
   ACCUEIL PAGE STYLES
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
}

.section-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  padding-top: 5rem;
  min-height: 870px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0;
  animation: heroFade 8s infinite;
  transition: opacity 2s ease-in-out;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }

@keyframes heroFade {
  0%, 40% { opacity: 1; }
  60%, 100% { opacity: 0; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  margin-top: -3rem;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-right {
    display: none !important;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  margin-left: 0.3rem;
}

.hero-tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background-color: rgb(146, 254, 188);
  color: rgb(0, 98, 58);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
  margin-top: -12rem;
  margin-left: 0.3rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  color: rgb(114, 170, 50);
  line-height: 1.2;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.15s both;
}

.hero-title span {
  color: rgb(17, 99, 6);
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(73, 78, 67, 0.8);
  max-width: 32rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.45s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: 0;
}

.hero-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 200ms;
  text-transform: capitalize;
}

.hero-button--primary {
  background-color: rgb(146, 254, 188);
  color: rgb(0, 78, 44);
  text-transform: capitalize;
}

.hero-button--primary:hover {
  transform: scale(1.05);
}

.hero-button--secondary {
  background-color: rgb(146, 254, 188);
  color:  rgb(0, 78, 44);
  text-transform: capitalize;
}

.hero-button--secondary:hover {
  transform: scale(1.05);
}

.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hero-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.counter-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.counter-value {
  font-size: 2.5rem;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  color: rgb(0, 105, 62);
  line-height: 1;
}

.counter-plus {
  font-size: 1.5rem;
  margin-left: 0.25rem;
}

.counter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(89, 92, 92);
  text-transform: capitalize;
}

@keyframes counterAnimation {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter-item {
  animation: counterAnimation 0.8s ease-out forwards;
}

.counter-item:nth-child(1) { animation-delay: 0.2s; }
.counter-item:nth-child(2) { animation-delay: 0.4s; }
.counter-item:nth-child(3) { animation-delay: 0.6s; }
.counter-item:nth-child(4) { animation-delay: 0.8s; }

/* ============================================
   PARTNERS SECTION
   ============================================ */

.partners-section {
  padding: 6rem var(--spacing-xl);
  background-color: rgb(245, 247, 246);
}

.partners-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(0, 105, 62);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  text-align: center;
}

.partners-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: rgb(0, 105, 62);
  border-radius: 9999px;
  margin: 0 auto 4rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2rem;
  justify-items: center;
  justify-content: center;
}

.partners-card {
  background-color: white;
  padding: 3.5rem 2rem;
  min-height: 320px;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 200ms;
  border: 1px solid transparent;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.partners-card-image {
  height: 6rem; 
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.partners-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; 
  transition: filter 200ms;
}

.partners-card:hover .partners-card-image img {
  filter: grayscale(0%);
}

.partners-card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.partners-card-tag {
  background-color: rgb(185, 211, 255);
  color: rgb(0, 68, 135);
}

.partners-card-name {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: rgb(44, 47, 47);
}

.partners-card-link {
  color: rgb(0, 105, 62);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  transition: gap 200ms;
}

.partners-card-link:hover {
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .partners-card {
    padding: 2.5rem 1.5rem;
    max-width: 100%;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  padding: 6rem var(--spacing-xl);
  background-color: white;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-family: 'Work Sans', sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgb(0, 75, 47);
  line-height: 1.05;
}

.about-description {
  font-size: 1.125rem;
  color: rgb(89, 92, 92);
  line-height: 1.6;
  margin-top: 2rem;
}

.about-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .about-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-icon-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 105, 62, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(0, 105, 62);
  margin: 0 auto;
}

.about-icon-item span {
  font-size: 1.875rem;
}

.about-icon-label {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(44, 47, 47);
}

.about-image {
  display: block;
  width: 100%;
  max-height: 32rem;
  height: auto;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.about-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* ============================================
   RESEARCH AXES SECTION
   ============================================ */

.research-section {
  padding: 6rem var(--spacing-xl);
  background-color: rgb(245, 247, 246);
}

.research-content {
  text-align: center;
}

.research-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  color: rgb(0, 105, 62);
  margin-bottom: 1rem;
}

.research-description {
  color: rgb(89, 92, 92);
  max-width: 48rem;
  margin: 0 auto 4rem;
  font-size: 1.125rem;
}

.research-axes-box {
  background-color: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(171, 174, 173, 0.15);
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
}

.research-image {
  width: 100%;
  max-height: 24rem;
  object-fit: contain;
  border-radius: 1rem;
  opacity: 0.95;
}

.research-overlay {
  display: none;
}

.research-quote-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.research-quote {
  font-size: 1.875rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
}

/* ============================================
   ACTIVITIES SECTION
   ============================================ */

.activities-section {
  padding: 6rem var(--spacing-xl);
  background-color: white;
  overflow: hidden;
}

.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }

  .activities-left {
    order: 2;
  }

  .activities-right {
    order: 1;
  }
}

.activities-left {
  position: relative;
}

.activities-left::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: -3rem;
  width: 16rem;
  height: 16rem;
  background-color: rgba(0, 105, 62, 0.05);
  border-radius: 9999px;
  filter: blur(3rem);
  z-index: 0;
}

.activities-image {
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
  object-fit: cover;
  position: relative;
  z-index: 10;
}

.activities-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  color: rgb(0, 105, 62);
  margin-bottom: 3rem;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.activity-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.activity-icon {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms;
}

.activity-item:hover .activity-icon {
  transform: scale(1.1);
}

.activity-icon[data-icon="analytics"] {
  background-color: rgba(0, 92, 170, 0.1);
  color: rgb(0, 92, 170);
}

.activity-item:hover .activity-icon[data-icon="analytics"] {
  background-color: rgb(0, 92, 170);
  color: white;
}

.activity-icon[data-icon="school"] {
  background-color: rgba(0, 105, 62, 0.1);
  color: rgb(0, 105, 62);
}

.activity-item:hover .activity-icon[data-icon="school"] {
  background-color: rgb(0, 105, 62);
  color: white;
}

.activity-icon[data-icon="hub"] {
  background-color: rgba(181, 22, 30, 0.1);
  color: rgb(181, 22, 30);
}

.activity-item:hover .activity-icon[data-icon="hub"] {
  background-color: rgb(181, 22, 30);
  color: white;
}

.activity-icon[data-icon="science"] {
  background-color: rgb(185, 211, 255);
  color: rgb(0, 68, 135);
}

.activity-name {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: rgb(44, 47, 47);
}

.activity-description {
  color: rgb(89, 92, 92);
  line-height: 1.6;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news-section {
  padding: 6rem var(--spacing-xl);
  background-color: rgb(245, 247, 246);
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.news-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  color: rgb(44, 47, 47);
}

.news-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(0, 105, 62);
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  transition: gap 200ms;
  font-size: 1rem;
}

.news-link:hover {
  gap: 0.75rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 200ms;
  border: 1px solid rgba(171, 174, 173, 0.05);
}

.news-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.news-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms;
}

.news-card:hover .news-image {
  transform: scale(1.1);
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-date {
  font-size: 0.625rem;
  font-weight: 700;
  color: rgb(0, 92, 170);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: rgb(44, 47, 47);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgb(0, 105, 62);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 200ms;
}

.news-link-inline:hover {
  transform: translateX(0.25rem);
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
  padding: 6rem var(--spacing-xl);
  background-color: white;
}

.gallery-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  color: rgb(0, 105, 62);
  margin-bottom: 4rem;
}

.gallery-album {
  margin-bottom: 4rem;
}

.gallery-album-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgb(44, 47, 47);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Manrope, sans-serif;
}

.album-marker {
  width: 0.5rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: rgb(0, 105, 62);
  display: inline-block;
}

.gallery-album:nth-child(2) .album-marker {
  background-color: rgb(0, 92, 170);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background-color: rgb(245, 247, 246);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}
