:root {
  --ink: #0d1220;
  --muted: #6e7892;
  --brand: #7c3aed; /* site accent (violet) */
  --brand-2: #0ea5a6; /* site accent (teal) */
  --danger: #e60000; /* red: Faire un don */
  --surface: #ffffff;
  --bg: #f6f7fb;
  --ring: #e6e9f3;
  --shadow: 0 14px 34px rgba(24, 32, 56, 0.12);
  --radius: 14px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: Inter, system-ui, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--ring);
}
.nav-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 14px 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: #1d2a44;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 8px;
  padding: 6px 4px;
}
.nav a:hover,
.nav a:focus {
  color: var(--brand);
  outline: none;
}
.btn {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
}
.btn-outline {
  background: #fff;
  border: 1px solid var(--ring);
  color: #0f172a;
  padding: 8px 12px;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  padding: 10px 16px;
}

/* ===== Organisation mega-menu (unchanged structure; unique styling kept) ===== */
.nav-item {
  position: relative;
}
.mega {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 10px);
  width: min(980px, 92vw);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: none;
  border: 1px solid var(--ring);
}
.mega {
  transition: all 0.25s ease;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega {
  display: block;
}
.mega-inner {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.4fr 0.8fr;
}
.mega-title {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 820px) {
  .mega {
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    border-radius: 0;
    top: calc(100% + 1px);
  }
  .mega-inner {
    grid-template-columns: 1fr;
  }
  .list {
    grid-template-columns: 1fr;
  }
}
.logo-link {
  text-decoration: none;
  display: inline-block;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap; /* prevent items from wrapping down */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap; /* allow wrapping on small screens */
  }
  .nav-actions {
    margin-top: 8px;
  }
}

.logo {
  height: 80px; /* adjust based on your header size */
  width: auto;
  display: block;
  transition: transform 0.25s ease;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
}
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  border: 1px solid transparent;
}
.item:hover {
  background: linear-gradient(180deg, #fafbff, #f3f6ff);
  border-color: var(--ring);
  transform: translateY(-2px);
}
.capsule {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.12),
    rgba(14, 165, 166, 0.12)
  );
  display: grid;
  place-items: center;
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.capsule svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke-width: 2;
  stroke: url(#g1);
}
svg defs linearGradient stop:nth-child(1) {
  stop-color: var(--brand);
}
svg defs linearGradient stop:nth-child(2) {
  stop-color: var(--brand-2);
}
.item h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.item p {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.card {
  height: 100%;
  border: 1px dashed #cfd6ea;
  border-radius: 16px;
  padding: 18px 18px 20px;
  background: #fcfdff;
}
.card h5 {
  margin: 4px 0 8px;
  font-size: 1rem;
}
.card p {
  margin: 0 0 14px;
  color: var(--muted);
}
.download {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

/* ===== Hero / Slideshow ===== */
.hero {
  position: relative;
  height: 58vh;
  min-height: 320px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
}
.slide.active {
  opacity: 1;
}
.dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}
.dot.active {
  background: #fff;
}

/* ===== Donation panel (with title + separator + X button) ===== */
.donation-wrap {
  max-width: var(--container);
  margin: 22px auto 10px;
  padding: 0 16px;
}
.donation-panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--ring);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 18px 18px;
}
.donation-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #9aa7bf;
  background: #fff;
  color: #0b1220;
  font-weight: 900;
  cursor: pointer;
}

.donation-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.1fr 2fr;
  align-items: center;
}
@media (max-width: 820px) {
  .donation-grid {
    grid-template-columns: 1fr;
  }
}

.don-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.don-left strong {
  font-size: 1.1rem;
}
.btn-adh {
  background: #fff;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.don-right {
  text-align: center;
}
.don-right h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.don-sep {
  height: 3px;
  width: min(520px, 90%);
  background: linear-gradient(90deg, #dbe1f1, #b1c7ff);
  margin: 0 auto 12px;
  border-radius: 999px;
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.chip {
  border: 1px solid #2b3b57;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
.chip.active {
  background: #2b6fbf;
  color: #fff;
  border-color: #2b6fbf;
}

/* ===== Social row ===== */
.social-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: 8px auto 24px;
  font-weight: 800;
  color: #0b1220;
}
.social-row span {
  margin-right: 8px;
}
.social {
  display: flex;
  gap: 10px;
  align-items: center;
}
.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ring);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.social a:hover {
  transform: translateY(-2px);
}
.social svg {
  width: 22px;
  height: 22px;
}
.grid-project {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px 20px;
  margin-top: 10px;
}

.grid-project .item {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 8px 12px;
  background: white;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
  color: #111;
}

.grid-project .item:hover {
  background: #f2f5ff;
  border-color: #4a6cf7;
  color: #4a6cf7;
}
/* General mega menu container */
/* .mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
    padding: 40px 60px;
    display: none;
    z-index: 100;
    max-width: min(1100px, 95vw);
    overflow: hidden;
  } */

/* Make tall panels scrollable instead of spilling off-screen */
.mega-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-height: calc(100vh - 160px); /* Keep some room for header/footer */
  overflow-y: auto; /* Enables vertical scroll when too tall */
  padding-right: 10px; /* Add breathing room for scrollbar */
}

/* Optional: prettier scrollbar */
.mega-inner::-webkit-scrollbar {
  width: 8px;
}
.mega-inner::-webkit-scrollbar-thumb {
  background: #c4c7d1;
  border-radius: 4px;
}
.mega-inner::-webkit-scrollbar-thumb:hover {
  background: #9ca0af;
}
/* General mega menu container */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
  padding: 40px 60px;
  display: none;
  z-index: 100;
  max-width: min(1100px, 95vw);
  overflow: hidden;
}

/* Make tall panels scrollable instead of spilling off-screen */
.mega-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-height: calc(100vh - 160px); /* Keep some room for header/footer */
  overflow-y: auto; /* Enables vertical scroll when too tall */
  padding-right: 10px; /* Add breathing room for scrollbar */
}

/* Optional: prettier scrollbar */
.mega-inner::-webkit-scrollbar {
  width: 8px;
}
.mega-inner::-webkit-scrollbar-thumb {
  background: #c4c7d1;
  border-radius: 4px;
}

@media (max-width: 1200px) {
  .mega {
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    border-radius: 0;
    max-width: none;
  }
}

/* @media (max-width: 1200px) {
  .mega {
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    border-radius: 0;
  }
} */

/* Container for the grid */
.project-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  width: 70%;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
}

/* Individual topic buttons */
.project-topics button {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.project-topics button:hover {
  background: #4a6cf7;
  color: #fff;
  border-color: #4a6cf7;
}

/* Scroll controls */
.scroll-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 40%;
  transform: translateY(-50%);
  gap: 10px;
}
.scroll-btn {
  background: #f1f1f1;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: bold;
  color: #333;
  transition: background 0.2s ease;
}
.scroll-btn:hover {
  background: #d0d4e4;
}

/* Right-side info card */
.project-detail {
  flex: 1;
  background: #fafafa;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 0 0 1px #e6e8ef inset;
}
.download-btn {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(90deg, #6f42c1, #17a2b8);
  color: white;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.download-btn:hover {
  opacity: 0.9;
}

/* === ECONOMIE PANEL === */
.project-container {
  max-width: 1000px;
  margin: 100px auto;
  padding: 20px;
  font-family: "Arial", sans-serif;
}

.theme-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.theme-btn,
.download-btn {
  padding: 10px 20px;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: white;
  cursor: pointer;
  transition: 0.2s ease;
}

.theme-btn:hover,
.download-btn:hover {
  background-color: #f0f0f0;
}

.theme-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.theme-block {
  border: 1px solid #c3c3c3;
  border-radius: 10px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.theme-heading {
  cursor: pointer;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}

.theme-content {
  border: 1px solid #d1d1d1;
  border-radius: 10px;
  padding: 10px 15px;
  margin-top: 5px;
  background-color: #f8f8f8;
  display: none;
}

.theme-content.open {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/*Fixin the toggle buttons*/
.amounts .chip.active {
  background: #3b6ecf; /* or your brand color */
  color: #fff;
  border-color: transparent;
}

/* Organisation.HTML*/
.organization-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  background-color: #fff;
  min-height: 80vh;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.org-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 60px;
}

.org-btn {
  border: 1px solid #000;
  background: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  width: 220px;
  text-align: center;
}

.org-btn:hover {
  background: #2b6fbf;
  color: #fff;
  border-color: #2b6fbf;
}

.statuts {
  margin-top: auto;
}

.statuts-btn {
  border: 1px solid #000;
  background: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.statuts-btn:hover {
  background: #2b6fbf;
  color: #fff;
  border-color: #2b6fbf;
}

/* Organization.html end */

/* project page*/
.project-container {
  padding: 60px 20px;
  background: #fff;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-layout {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1000px;
  gap: 20px;
}

.themes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  max-width: 700px;
}

.theme-btn {
  border: 1px solid #000;
  background: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: #2b6fbf;
  color: #fff;
  border-color: #2b6fbf;
}

.download-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 20px;
}

/* Simpler download button for project.html */
.project-download-btn {
  border: 1px solid #000;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

.project-download-btn:hover {
  background: #2b6fbf;
  color: #fff;
  border-color: #2b6fbf;
}

/* NEW - LICENCE PHOTO 15/10/2026 BEG */

/* ===== Photo licences link ===== */
.photo-licence {
  text-align: right;
  padding: 4px 6px 0;
}

.photo-licence a {
  font-size: 12px;
  font-style: italic;
  color: #0d1220;
  text-decoration: none;
}

.photo-licence a:hover,
.photo-licence a:focus-visible {
  text-decoration: underline;
}

/* NEW - LICENCE PHOTOS 15/10/2026 END */

/* Le projet end*/
