/* ============ VARIABLES ============ */
:root {
  --primary-color: #228b22;
  --text-color: #fff;
  --other-green: #00fa9a;
  --overlay-color: rgba(0, 0, 0, 0.6);
  --font-family: "Poppins", sans-serif;
}

/* ============ GLOBAL ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background: #f9f9f9;
  overflow-x: hidden;
}

/* ============ NAVBAR ============ */
.mobile-nav {
  display: none;
}

/* ===================== BASE NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--primary-color); /* solide au départ */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 10%;
  z-index: 1000;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease;
}

/* ===================== NAVBAR SCROLLED ===================== */
.navbar.scrolled {
  background: rgba(29, 122, 29, 0.678); /* transparent */
  backdrop-filter: blur(10px); /* effet flou */
  -webkit-backdrop-filter: blur(10px); /* Safari */
}

.navbar .logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* ============ HERO ============ */
/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero .slider {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.hero .slider.active {
  opacity: 1;
  z-index: 1;
}

.hero .slider.fade-in {
  opacity: 1;
  z-index: 2;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.hero-text {
  text-align: center;
  opacity: 0;
  /* color: var(--primary-color); */
  color: var(--text-color);
  padding: 0 15px;
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-text h1{
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-text p {
  font-weight: lighter;
}

/* Smooth upward motion for text */
@keyframes textSlide {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  40% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
  }
}

.hero2 {
  position: relative;
  height: 60vh;
  overflow: hidden;
  background: url("../images/femme.jpg") center center/cover no-repeat;
}

/* Dark overlay */
.hero2 .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Centered text */
.hero-text2 {
  text-align: center;
  color: #fff; /* fallback in case --text-color is dark */
  padding: 0 20px;
  max-width: 800px;
  animation: fadeUp 2s ease forwards;
  opacity: 0; /* starts hidden */
}

/* Title */
.hero-text2 h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 1px;
  color: var(--text-color);
}

/* Subtitle */
.hero-text2 p {
  font-size: 1.2rem;
  font-weight: 400;
  color: #f1f1f1;
}

/* Fade and slide-up animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-text2 h1 {
    font-size: 1.8rem;
  }
  .hero-text2 p {
    font-size: 1rem;
  }
  .hero2 {
    height: 50vh;
  }
  
    .hero {
    position: relative;
    height: 68vh;
    overflow: hidden;
  }
}

/* ============ MISSION ============ */
.mission {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  color: #000;
  padding: 80px 10%;
  margin-top: -2.5em;
}

.mission-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.mission-text {
  flex: 1;
}

.mission-text p {
  text-align: justify;
}

.mission-text h1 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.mission-logo img {
  width: 350px;
  height: auto;
}

/* ============ ACTIVITIES SECTION ============ */
.activities {
  background: #f8f9fa;
  padding: 80px 10%;
  text-align: center;
  margin-top: -3.5em;
}

.activities .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #222;
  position: relative;
  margin-top: -1em;
}

.activities .section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color, #00b894);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Grid Layout */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Card Style */
.activity-card {
  background: #fff;
  padding: 35px 20px;
  border-radius: 18px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  max-width: 350px;
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
}

/* Icons */
.activity-card i {
  font-size: 3rem;
  color: var(--primary-color, #00b894);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.activity-card:hover i {
  color: var(--secondary-color, #32cd32);
}

/* Titles and text */
.activity-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.activity-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .activities {
    padding: 60px 15px;
  }

  .activities .section-title {
    font-size: 2rem;
  }

  .activity-card {
    padding: 30px 20px;
  }

  .activity-card i {
    font-size: 2.5rem;
  }
}

/* ============ ARTICLES ============ */
.articles {
  padding: 60px 10%;
  background: #fff;
  color: #000;
}

.articles a {
  text-decoration: none;
}

.articles h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #222;
  position: relative;
  text-align: center;
}

.articles h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color, #00b894);
  margin: 12px auto 0;
  border-radius: 2px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.articles-grid article {
  border-left: 4px solid var(--primary-color);
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
}
.articles-grid article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#date-art {
  position: absolute;
  padding: 0.5em;
  margin: 0.4em;
  background: #228b22ad;
  border-radius: 5px;
  color: var(--text-color);
  border: 1px solid var(--primary-color);
  font-size: 15px;
}

#albums a {
  text-decoration: none;
}
/* .articles-grid article img:hover{
  transform: scale(1.1);
  transition: .3s all ease-in-out;
} */

.articles-grid article .texts-art {
  padding: 20px;
}

.articles-grid article .texts-art a {
  text-decoration: none;
  color: var(--primary-color);
}

.articles-grid article .texts-art a:hover {
  text-decoration: underline;
}

.articles-grid article .texts-art p {
  font-size: 15px;
  margin-top: 2px;
}

.articles-grid article .texts-art h3 {
  font-size: 17px;
}

#gal-voir-plus {
  padding: 0.7em 2.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: #f0f0f0;
  border-radius: 20em;
  margin: auto;
  margin-top: 15px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

#gal-voir-plus:hover {
  padding: 0.7em 2.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  background-color: var(--primary-color);
  border-radius: 20em;
  margin: auto;
  margin-top: 15px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

#art-voir-plus {
  padding: 0.7em 2.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: var(--text-color);
  border-radius: 20em;
  margin: auto;
  margin-top: 15px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

#art-voir-plus:hover {
  padding: 0.7em 2.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  background-color: var(--primary-color);
  border-radius: 20em;
  margin: auto;
  margin-top: 15px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

#art-voir-plus2 {
  padding: 0.7em 2.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: var(--text-color);
  border-radius: 20em;
  margin: auto;
  margin-top: 15px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

#art-voir-plus2:hover {
  padding: 0.7em 2.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  background-color: var(--primary-color);
  border-radius: 20em;
  margin: auto;
  margin-top: 15px;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}

/* ============ ALBUMS ============ */
.albums {
  margin: auto;
  padding: 60px 10%;
  background: #f0f0f0;
  color: #000;
}

.albums h1 {
  margin: auto;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #222;
  position: relative;
  text-align: center;
}

.albums h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color, #00b894);
  margin: 12px auto 0;
  border-radius: 2px;
}

.album-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.album-gallery img {
  width: 32%;
  /* height: fit-content; */
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* .album-gallery img:hover {
  transform: scale(1.05);
} */

/* ============ FOOTER ============ */
.footer {
  background: var(--primary-color);
  text-align: center;
  padding: 40px 20px;
  color: var(--text-color);
}

.footer p a {
  text-decoration: none;
  font-weight: bold;
  color: var(--text-color);
}

.footer p a:hover {
  text-decoration: underline;
}

.footer .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer .social-icons a {
  text-decoration: none;
}

.footer .social-icons a button {
  font-size: 24px;
  width: 35px;
  height: 35px;
  outline: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* MOBILE ******************************************************** */

/* MENU MOBILE BASE */
.mobile-menu {
  display: none;
  position: absolute;
  top: 55px;
  left: 0;
  width: 100%;
  background-color: rgba(
    34,
    139,
    34,
    0.678
  ); /* un vert plus sombre et légèrement transparent */
  backdrop-filter: blur(5px); /* léger flou pour effet pro */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--text-color);
  padding: 1em 0;
  z-index: 999;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.mobile-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

ul li a button {
  padding: 0.2em 1.2em;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: var(--text-color);
  border-radius: 20em;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.mobile-menu ul li {
  padding: 0.8em 1.5em;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.mobile-menu ul li:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.2em;
  display: block;
}

/* ========================= CONTACT ============================= */

/* ===================== CONTACT SECTION ===================== */
.contact {
  background: #f8f9fa;
  padding: 80px 10%;
}

.contact .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
}

.contact .section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 10px auto 50px;
  color: #555;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* Contact layout grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form {
  background: #fff;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.contact-form .form-group {
  position: relative;
  margin-bottom: 25px;
}

.contact-form .form-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color, #228b22);
  font-size: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color, #228b22);
  box-shadow: 0 0 6px rgba(34, 139, 34, 0.2);
}

/* Button style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-color, #228b22);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-primary:hover {
  background: #1d7a1d;
  transform: translateY(-2px);
}

/* Contact Info */
.contact-info {
  padding: 20px;
}

.contact-info h3 {
  font-size: 1.2rem;
  color: var(--primary-color, #228b22);
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info p {
  color: #444;
  margin: 8px 0 15px 0;
  font-size: 1rem;
  text-align: start;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--primary-color, #228b22);
  margin-right: 10px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: var(--primary-color, #228b22);
  color: #fff;
}

/* Responsive design */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ======================================= FAQ =================================== */

/* ===================== FAQ SECTION ===================== */
.faq {
  background: #fff;
  padding: 80px 20px;
}

.faq .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
}

.faq .section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 10px auto 50px;
  color: #555;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* FAQ container */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Each item */
.faq-item {
  background: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e4e4e4;
}

.faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Question button */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  padding: 18px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question i {
  color: var(--primary-color, #228b22);
  font-size: 1.3rem;
  margin-right: 8px;
}

.faq-question .arrow {
  transition: transform 0.3s ease;
}

/* Answer content */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #fff;
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
  transition: all 0.4s ease;
}

.faq-answer p {
  padding: 15px 0;
}

/* Active State */
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 15px 20px;
}

.faq-item.active .arrow {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  color: var(--primary-color, #228b22);
}

/* Responsive */
@media (max-width: 768px) {
  .faq .section-title {
    font-size: 2rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .faq-answer {
    font-size: 0.95rem;
  }
}

/* ########################################## Domaine d'intervation ################################ */

.items-domaine {
  display: flex;
  justify-content: center;
  text-align: left;
}

.items-domaine ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  list-style: none;
}

.items-domaine ul li {
  margin-bottom: 10px;
  padding: 0.6em;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e4e4e4;
}

.items-domaine ul li:hover {
  margin-bottom: 10px;
  padding: 0.6em;
  background: #228b22c0;
  border-radius: 8px;
  transition: 0.4s ease-in-out;
}

.items-domaine ul li a {
  text-decoration: none;
  font-weight: 700;
  color: #555;
}

.items-domaine ul li:hover a {
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  transition: 0.4s ease-in-out;
}
