:root {
  --blue: #00aeef;
  --dark: #111;
  --orange: #ff5722;
  --white: #fff;
}
html {
  scroll-behavior: smooth;
}
.main-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}



body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #111;
}

/* Barre top */
.top-bar {
  background: var(--blue);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.logo-kptsl {
  font-size: 1.2rem;
}

.top-right .btn {
  margin-left: 0.5rem;
}

.btn {
  padding: 0.5rem 0.75rem;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.white {
  background: transparent;
  color: white;
}

.border {
  border: 2px solid white;
}

.orange {
  background: var(--orange);
  color: white;
}

/* Nav principale */
.main-nav {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Menu mobile */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: white;
  padding: 1rem;
}

.mobile-menu a {
  padding: 0.5rem 0;
  text-decoration: none;
  color: #111;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.mobile-menu.hidden {
  display: none;
}

.mobile-menu.show {
  display: flex;
}

/* Hero */
/* Hero slider */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(10, 90, 196, 0.65));
  z-index: 2;
}


.slide.active {
  opacity: 1;
  z-index: 3;
}



.hero-text {
  position: relative;
  z-index: 4;
  color: white;
  text-align: left;
  padding: 2rem;
  max-width: 600px;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-text.visible {
  opacity: 1;
  animation: fadeInUp 1s ease forwards;
  z-index: 5;
}



@media (max-width: 768px) {
  .hero-text {
    padding: 1rem;
    text-align: center;
  }
}


.hero-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  filter: brightness(0.6);
}



.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  max-width: 400px;
  margin-bottom: 1rem;
}

.btn.blue {
  background: var(--blue);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
}

.share-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--blue);
  color: rgb(214, 9, 9);
  border: none;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
}

/* Sections */
.section {
  padding: 2rem;
  background: #fff;
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #eee;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: inline;
  }
  .top-right {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .hero-text {
    top: 10%;
  }
}

.spotlight {
  background: #f9fafb;
  padding: 3rem 1rem;
  text-align: center;
}

.spotlight-title {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease forwards;
}

.spotlight-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
  animation: fadeInUp 1.3s ease forwards;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

.card-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s;
  animation: floatIn 0.8s ease forwards;
}

.card-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
  transition: filter 0.3s;
}

.card-card:hover .card-img {
  filter: brightness(1);
}

.card-content {
  padding: 1rem;
  text-align: left;
}

.tag {
  font-size: 0.75rem;
  color: gray;
  margin-bottom: 0.3rem;
  display: inline-block;
}

.card-content h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0.3rem 0;
}

.card-content p {
  font-size: 0.95rem;
  color: #666;
}

/* Animations */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* MODALE SCROLLABE */
.popup {
  position: fixed;
  top: 15px; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  padding: 1rem;
  box-sizing: border-box;

}

.popup.hidden {
  display: none;
}

.popup-content {
  background: white;
  max-width: 400px;
  width: 90%;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  animation: scaleIn 0.4s ease;
  position: relative;
}

.popup-content img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.popup-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.popup-content p {
  color: #444;
  font-size: 1rem;
}

.popup-content .btn-secondary {
  margin-top: 1rem;
}

.close-popup {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

@keyframes fadeIn {
  from {opacity: 0;} to {opacity: 1;}
}
@keyframes scaleIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}


.presse, .actualites {
  background: #f9fafb;
  padding: 3rem 1rem;
  text-align: center;
}
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0.5rem;
}
.card p {
  font-size: 0.95rem;
  padding: 0 1rem 1rem;
  color: #444;
}
.btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  padding: .6rem 1.2rem;
  background: var(--orange);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background .3s;
}
.btn-secondary:hover {
  background: #005fa3;
}

.search-bar {
  padding: 0.7rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 6px;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto 2rem;
  display: block;
  font-size: 1rem;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: white;
}
.agir-kptsl {
  width: 100%;
  background: linear-gradient(120deg, #e64a19, #f4511e);
  color: white;
  font-family: 'Segoe UI', sans-serif;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.agir-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.agir-image {
  flex: 1 1 300px;
  text-align: center;
}

.agir-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.agir-image img:hover {
  transform: scale(1.05);
}

.agir-content {
  flex: 1 1 300px;
  max-width: 600px;
}

.agir-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  animation: slideIn 1s ease-out;
}

.agir-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  animation: slideIn 1.5s ease-out;
}

.agir-button {
  background: #fff;
  color: #e64a19;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.agir-button:hover {
  background: #ffe0b2;
}

#pointsMessage {
  display: none;
  margin-top: 10px;
  color: #ffff66;
  font-weight: bold;
}

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

/* ----------- Responsive ------------ */
@media (max-width: 768px) {
  .agir-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .agir-content h2 {
    font-size: 1.5rem;
  }

  .agir-content p {
    font-size: 1rem;
  }
}

.kptsl-footer {
  background-color: #00bfff;
  color: #000;
  padding: 2rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.3rem;
}

.footer-donate {
  text-align: center;
}

.footer-donate button {
  background-color: white;
  border: none;
  color: #e64a19;
  font-weight: bold;
  padding: 0.7rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.social-icons i {
  font-size: 1.2rem;
  margin: 0 0.4rem;
  color: #000;
  cursor: pointer;
}

/* Donateur logos slider */
.footer-logos-slider {
  overflow: hidden;
  margin: 2rem 0;
}

.logos-track {
  display: flex;
  gap: 2rem;
  animation: scrollLogos 20s linear infinite;
}

.logos-track img {
  height: 50px;
  object-fit: contain;
}

/* Animation */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
  font-size: 0.9rem;
}

.footer-bottom .legal-links a {
  color: #000;
  margin: 0 5px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-links div {
    text-align: center;
  }
}

.kptsl-activites {
  padding: 3rem 1rem;
  text-align: center;
  background: #f9f9f9;
  font-family: 'Segoe UI', sans-serif;
}

.activites-header h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.activites-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  color: #333;
}

.cta-button {
  background-color: #00bfff;
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #0099cc;
}

/* Cartes */
.activites-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInCard 0.6s ease-in-out forwards;
  opacity: 0;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card i {
  font-size: 2.5rem;
  color: #00bfff;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.card p {
  font-size: 0.95rem;
  color: #555;
}

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

@media (max-width: 768px) {
  .activites-cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .cta-button {
    display: inline-block;
    margin-top: 1rem;
  }
}

.section-kptsl-intro {
  background: #f7f9fc;
  padding: 3rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.intro-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-text {
  flex: 1 1 400px;
}

.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.intro-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #444;
}

.btn-en-savoir-plus {
  background-color: #00bfff;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-en-savoir-plus:hover {
  background-color: #009acd;
}

.intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .intro-container {
    flex-direction: column-reverse;
    text-align: center;
  }
}
