/* =====================
   Variables et reset
===================== */
:root {
  --blue: #004b7c;
  --gold: #FFD700;
  --bg: #f5f2e9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--blue);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================
   Navbar
===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ddd;
  z-index: 2000;
}

/* Logo */
.logo {
    height: 60px; /* ajuste la taille selon ton design */
    width: auto;
}

/* Hamburger menu */
.hamburger {
  position: absolute;       /* collé au coin droit */
  top: 50%;                 /* centré verticalement */
  right: 20px;              /* collé à droite */
  transform: translateY(-50%);
  width: 36px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  display: block;
}

.hamburger .bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--blue);
  border-radius: 3px;
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* =====================
   Menu
===================== */
.menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background: #fff;
  padding: 80px 20px 20px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1600;
}

.menu.show {
  transform: translateX(0);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1500;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.menu a {
  font-weight: 600;
  color: var(--blue);
  transition: color 0.3s;
}

.menu a:hover,
.menu a.active {
  color: #C3B882;
}

/* Desktop overrides */
@media(min-width: 769px) {
  nav {
    display: flex;
    margin-left: auto; /* pousse le menu à droite du logo */
  }

  .menu {
    flex-direction: row;
    gap: 30px;
    height: auto;
    width: auto;
    position: static;     /* plus fixe */
    transform: none;      /* plus de slide */
    padding: 0;
    background: transparent; /* transparent */
    box-shadow: none;
  }

  .menu a {
    color: var(--blue);
  }

  .hamburger {
    display: none;
  }
}

/* =====================
   Hero
===================== */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,50,0.4), rgba(0,0,50,0.4)),
              url('../assets/mosque_interior.webp') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0 10px;

}

.hero h1 { font-size: 44px; margin-bottom: 20px; }
.hero p { font-size: 18px; margin-bottom: 30px; }

/* Buttons */
.btn {
  padding: 14px 28px;
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover { background: var(--blue); transform: translateY(-3px); }

/* Sections */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 40px;
  text-align: center;
}

/* Footer */
.footer {
  padding: 20px;
  background: var(--blue);
  color: var(--bg);
  text-align: center;
}

/* Cards */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 300px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card img { width: 100%; height: 200px; object-fit: cover; }
.card-content { padding: 15px; }

/* Fade-in */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1s; }
.fade-in.show { opacity: 1; transform: translateY(0); }

/* Parallax */
.parallax { height: 60vh; background-size: cover; background-position: center; }
.parallax1 { background-image: url('../assets/mosque_ground.webp'); }
.parallax2 { background-image: url('../assets/mosque_ground.webp'); }

/* Timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
}

/* Ligne centrale */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #006699;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Bloc de base */
.container {
  padding: 20px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

/* Alternance automatique desktop */
.timeline .container:nth-child(odd) {
  left: 0;
}

.timeline .container:nth-child(even) {
  left: 50%;
}

/* Carte */
.content {
  padding: 20px;
  background-color: #fff;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.container img {
  width: 100%;
  border-radius: 6px;
  margin-top: 10px;
}

.date {
  font-weight: bold;
  color: #006699;
  margin-bottom: 10px;
}

/* Mobile */
@media screen and (max-width: 768px) {
  .container {
    width: 100%;
    left: 0 !important; /* force tout à gauche */
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Ligne centrale déplacée à gauche */
  .timeline::after {
    left: 20px;
  }
}

.news-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.news-card {
  display: flex;
  background: #f5e9d3; /* beige clair */
  border-left: 5px solid #0a2a43; /* bleu foncé */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.news-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-content h3 {
  margin: 0 0 5px 0;
  color: #0a2a43;
}

.news-content p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
}

.news-date {
  font-size: 0.8rem;
  color: #0a2a43;
  margin-bottom: 5px;
}


.footer {
  background: #0a2a43;
  color: #f5e9d3;
  padding: 40px 20px;
  text-align: center;
}

.footer-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #f5e9d3;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 15px;
}

.social-icons .icon svg {
  width: 32px;
  height: 32px;
  fill: #f5e9d3;
  transition: 0.3s;
}

.social-icons .icon:hover svg {
  transform: scale(1.15);
  fill: #d7c1a1;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Activities containers */
/* Titre section */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #006699;
}

/* Grille d'activités */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 20px;
}

/* Carte activité */
.activity-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #e6e6e6;
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

/* Image */
.activity-image {
  position: relative;
}

.activity-image img {
  width: 60%;
  height: 200px;
  object-fit: cover;
}

/* Date moderne */
.activity-date {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #006699;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Texte */
.activity-info {
  padding: 18px 20px;
}

.activity-info h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: #004d66;
}

.activity-info p {
  color: #333;
  line-height: 1.45;
}

/* -------- SECTION ÉVÉNEMENTS -------- */

/* Titre différent */
.activities-title {
  margin-top: 20px;
  margin-bottom: 20px
}


.events-title {
  color: #b67a00; /* doré */
  margin-top: 20px;
  margin-bottom: 20px
}

/* Même structure que les activités */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 0 20px;
}

/* Carte */
.event-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  border: 2px solid #b67a00;  /* contour doré pour différencier */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.activity-card .activity-image img,
.event-card .event-image img {
  margin-top: 10px; 
  margin-bottom: 10px; 
  border-radius: 5px; 
}

/* Image + badge */
.event-image {
  position: relative;
}

.event-image img {
  width: 70%;
  height: 200px;
  object-fit: cover;
}

/* Badge date spécifique événement */
.event-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #b67a00;
  color: white;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Texte */
.event-info {
  padding: 20px;
}

.event-info h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: #8a5d00; /* doré foncé */
}

.event-info p {
  color: #333;
  line-height: 1.45;
}

/* Conteneur texte de l'événement / activité */
.event-info p,
.activity-info p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333; /* texte principal */
  margin: 0.5em 0;
}

/* Liens à l'intérieur des descriptions */
.event-info p a,
.activity-info p a {
  color: #004b7c;
  font-weight: 600;    /* plus visible */
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-info p a:hover,
.activity-info p a:hover {
  color: #FFD700;      /* changement au survol */
  text-decoration: underline;
}

/* Section dons modernisée */
#donations {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  background: #f5f8fa;
}

.donation-card {
  max-width: 720px;
  background: #ffffff;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.donation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.12);
}

.donation-card h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem; /* réduit un peu */
  color: #004b7c;
  margin-bottom: 25px;
}

.donation-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 35px;
}

.donation-btn {
  display: inline-block;
  padding: 18px 44px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, #28a745, #7cfc00);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.donation-btn:hover {
  background: linear-gradient(135deg, #218838, #32cd32);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Cards pour iframe */
.iframe-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
  margin: 30px 0;
  border: 1px solid #e6e6e6;
  width: 100%;           /* prend toute la largeur disponible */
  max-width: 1400px;     /* limite sur très grand écran */
  margin-left: auto;
  margin-right: auto;
}

.iframe-card iframe {
  display: block;
  border: none;
  width: 100%;           /* iframe prend toute la largeur de la card */
  height: 750px;         /* iframe plus haute pour l’effet immersive */
  border-radius: 16px;   /* arrondi pour l’iframe */
}

/* Mobile responsive */
@media (max-width: 768px) {
  .iframe-card iframe {
    height: 500px;        /* adapte la hauteur sur mobile */
  }
}


/* NAVBAR Menus */
.nav-shortcuts {
  display: flex;
  gap: 20px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Style SVG */
.nav-icon svg {
  width: 30px;
  height: 30px;
  fill: #004b7c;
  transition: transform .2s ease, fill .2s ease;
  cursor: pointer;
}

.nav-icon:hover svg {
  transform: scale(1.3);
  fill: #C3B882;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Icônes centrées sur mobile */
  .nav-shortcuts {
    gap: 18px;
  }

}

/* Desktop : rien à masquer */
@media (min-width: 769px) {
  .nav-shortcuts {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Menu mobile caché par défaut */
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Affichage des SVG uniquement sur mobile */
.menu-socials {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-bottom: 20px;
}

/* Quand le menu est ouvert */
.mobile-menu.open {
  display: flex;
}

/* Masquer les SVG sur desktop */
@media (min-width: 1024px) {
  .mobile-menu,
  .menu-socials {
    display: none !important;
  }
}


/* à propos text */

.text-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
    border: 1px solid #e6e6e6;
}

.text-card p {
    text-align: justify;   /* alignement carré */
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

section {
  scroll-margin-top: 90px; /* hauteur de la navbar */
}

/*  Section Dons  */
.finance-section {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.finance-card {
  background: #ffffff;
  max-width: 560px;
  width: 100%;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.finance-card h2 {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.finance-subtitle {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 24px;
}

.finance-categories {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}

.finance-categories li {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  font-size: 0.95rem;
}

.finance-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding-top: 10px;
  margin-bottom: 24px;
  border-top: 1px solid #eee;
}

.finance-bar {
  display: flex;
  height: 25px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #eee;
  margin: 15px 0;
}
.finance-bar-received {
  background-color: #28a745;
  height: 100%;
}
.finance-bar-spent {
  background-color: #dc3545;
  height: 100%;
}

.finance-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.finance-summary .received {
  color: #2e7d32;
}

.finance-summary .spent {
  color: #c62828;
}

.finance-message {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.finance-dua {
  font-size: 0.9rem;
  font-style: italic;
  color: #333;
}

.donation-button {
  display: inline-block;
  margin: 20px 0 10px;
  padding: 12px 26px;
  background-color: #2e7d32;
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.donation-button:hover {
  background-color: #1b5e20;
  transform: translateY(-2px);
}

.finance-card {
  max-width: 900px;   /* avant sûrement ~700px */
  width: 100%;
  margin: 0 auto;
}

.finance-verse {
  margin: 15px 0;
  text-align: center;
  color: #444;
}

.finance-verse-ar {
  margin: 30px auto 14px;
  max-width: 900px;
  font-family: "Scheherazade", "Amiri", serif;
  font-size: 1.55em;
  line-height: 2;
  color: #000;
  direction: rtl;
  text-align: center;
  font-weight: 700;     /* GRAS */
}

.finance-verse-fr {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 0.9em;
  line-height: 1.7;
  color: #222;
  text-align: center;
  font-weight: 600;     /* semi-gras */
}

/* ===== VIREMENT DÉTAILS ===== */

.donation-button-secondary {
  background-color: #f5f5f5;
  color: #1b5e20;
  border: 2px solid #1b5e20;
}

.donation-button-secondary:hover {
  background-color: #1b5e20;
  color: #ffffff;
}

.bank-donation {
  margin-top: 15px;
}

.bank-details {
  margin-top: 18px;
  padding: 20px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  background: #fafafa;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed #ddd;
}

.bank-row:last-child {
  border-bottom: none;
}

.bank-note {
  font-size: 0.85rem;
  color: #555;
  margin-top: 12px;
  text-align: center;
}

/* Partenariat */
.partners-section {
  width: 100%;
  padding: 40px 0 20px 0;
  background-color: #f8f8f8;
  overflow: hidden;
  border-top: 1px solid #ddd;
  text-align: center;
}

.partners-title {
  fonttext-color-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #004b7c;
}

.partners-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scrollPartners 20s linear infinite;
}

.partner img {
  max-height: 60px;
  object-fit: contain;
  display: block;
}

/* Animation pour boucle infinie */
@keyframes scrollPartners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* La moitié de la largeur de tous les logos pour une boucle parfaite */
}

/* Responsive */
@media (max-width: 768px) {
  .partner img {
    max-height: 40px;
  }
  .partners-track {
    gap: 20px;
  }
}
