/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  min-height: 100vh;
}

.page-heading {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(253, 126, 20, 0.9)),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  padding: 120px 0 80px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.page-heading h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-heading span {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section titre */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 60px 0 40px;
  background: linear-gradient(45deg, #080808, #161411);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #ffc107, #fd7e14);
  border-radius: 2px;
}

/* Filtres améliorés */
.filters {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 193, 7, 0.3);
  padding: 14px 28px;
  border-radius: 35px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  color: #333;
  box-shadow: 
    0 8px 20px rgba(0,0,0,0.08),
    0 2px 6px rgba(255, 193, 7, 0.1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
  transition: left 0.5s ease;
}

.filter-btn:hover::before {
  left: 100%;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(45deg, #141414, #0f0f0e);
  color: white;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 12px 30px rgba(255, 193, 7, 0.35),
    0 4px 12px rgba(253, 126, 20, 0.2);
  border-color: transparent;
}

/* Container des cartes amélioré */
.cards-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
  gap: 35px;
  margin-bottom: 60px;
}

/* Cartes d'actualités - Design premium conservant les couleurs */
.card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.08),
    0 5px 15px rgba(0,0,0,0.04),
    0 1px 6px rgba(255, 193, 7, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 193, 7, 0.1);
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffc107, #fd7e14, #ff8c00);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 25px 50px rgba(255, 193, 7, 0.15),
    0 15px 30px rgba(0,0,0,0.1),
    0 5px 15px rgba(253, 126, 20, 0.1);
}

.card.expanded {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
  grid-column: unset;
  transform: none;
  overflow-y: auto;
  background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
  padding-top: 80px;
  box-shadow: none;
  animation: expandCard 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes expandCard {
  from {
    transform: scale(0.9);
    opacity: 0.8;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Badge événement conservé avec animation */
.badge-evenement {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ffeb3b, #ffc107); 
  color: #333;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 
    0 6px 16px rgba(255, 193, 7, 0.4),
    0 2px 6px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: brightness(1) saturate(1.05);
}

.card.expanded .card-img {
  height: 320px;
  max-width: 650px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.2);
}

.card:hover .card-img {
  transform: scale(1.08);
}

.card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #2d3748;
  line-height: 1.3;
  background: linear-gradient(135deg, #131110, #0f0f0e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card .meta {
  color: #fd7e14;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card .meta::before {
  content: "📅";
  font-size: 16px;
}

.card .short {
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 15px;
}

.card .details {
  color: #2d3748;
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: 16px;
}

.card.expanded .details {
  max-width: 850px;
  margin: 0 auto 35px;
  padding: 25px;
  font-size: 17px;
  line-height: 1.8;
}

/* Bouton principal "Voir plus/moins" avec position conservée */
.voir-plus {
  padding: 12px 24px;
  font-size: 14px;
  width: auto;
  min-width: 120px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: white; 
  background: linear-gradient(135deg, #ffc107, #fd7e14); 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
  margin: 15px auto;
  text-align: center;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
  position: relative;
  overflow: hidden;
}

.voir-plus::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.voir-plus:hover::before {
  left: 100%;
}

.voir-plus:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(255, 193, 7, 0.4),
    0 8px 20px rgba(253, 126, 20, 0.25);
  background: linear-gradient(135deg, #ffb300, #e65100);
}

.voir-plus:active {
  transform: translateY(-1px) scale(0.98);
}

.card.expanded .voir-plus {
  min-width: 150px;
  padding: 14px 28px;
  font-size: 15px;
  margin: 25px auto;
}

/* Container des boutons d'action */
.action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

/* Boutons d'action avec couleurs distinctives conservées */
.action-buttons button {
  background: rgba(255, 193, 7, 0.08);
  border: 2px solid rgba(255, 193, 7, 0.4);
  color: #fd7e14;
  padding: 12px 22px;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 
    0 4px 12px rgba(255, 193, 7, 0.1),
    0 1px 4px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-buttons button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
  transition: left 0.5s ease;
}

.action-buttons button:hover::before {
  left: 100%;
}

/* Bouton Galerie - Orange */
.btn-gallery {
  border-color: rgba(255, 152, 0, 0.4);
  color: #ff9800;
}

.btn-gallery:hover {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 20px rgba(255, 152, 0, 0.3),
    0 4px 12px rgba(245, 124, 0, 0.2);
  border-color: transparent;
}

/* Bouton Contact - Jaune doré */
.btn-contact {
  border-color: rgba(255, 193, 7, 0.4);
  color: #ffc107;
}

.btn-contact:hover {
  background: linear-gradient(135deg, #ffc107, #ffb300);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 20px rgba(255, 193, 7, 0.3),
    0 4px 12px rgba(255, 179, 0, 0.2);
  border-color: transparent;
}

/* Bouton Share - Orange foncé */
.btn-share {
  border-color: rgba(253, 126, 20, 0.4);
  color: #fd7e14;
}

.btn-share:hover {
  background: linear-gradient(135deg, #fd7e14, #e65100);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 20px rgba(253, 126, 20, 0.3),
    0 4px 12px rgba(230, 81, 0, 0.2);
  border-color: transparent;
}

/* Boutons en mode étendu */
.card.expanded .action-buttons {
  margin-top: 30px;
  justify-content: center;
}

.card.expanded .action-buttons button {
  padding: 14px 26px;
  font-size: 15px;
}

/* Galerie - styles conservés */
.gallery-thumbnails {
  display: none;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.card.expanded .gallery-thumbnails {
  display: flex !important;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
}

.gallery-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid transparent;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
}

.gallery-thumbnails img:hover {
  transform: scale(1.15) rotate(2deg);
  border-color: #ffc107;
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.gallery-overlay.active {
  display: flex;
}

.gallery-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gallery-overlay button {
  position: absolute;
  background:white;
  border: none;
  color: rgb(12, 11, 11);
  padding: 15px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.close-btn {
  top: 30px;
  right: 30px;
}

.prev-btn {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.next-btn {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-overlay button:hover {
  background: linear-gradient(135deg, #ffb300, #e65100);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.5);
}

/* Overlay de partage avec couleurs distinctives pour chaque bouton */
.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.share-content {
  background: white;
  padding: 45px;
  border-radius: 25px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(255, 193, 7, 0.15);
}

.share-content h2 {
  margin-bottom: 35px;
  color: #333;
  font-weight: 700;
  background: linear-gradient(135deg, #fd7e14, #ffc107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.share-content a,
.share-content button {
  display: block;
  margin: 12px 0;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

/* Bouton Facebook - Bleu Facebook officiel */
.share-content a#facebookLink {
  background: linear-gradient(135deg, #1877f2, #4267B2);
  color: white;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.3);
}

.share-content a#facebookLink:hover {
  background: linear-gradient(135deg, #166fe5, #365899);
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.4);
  transform: translateY(-3px) scale(1.02);
}

/* Bouton Twitter - Bleu Twitter officiel */
.share-content a#twitterLink {
  background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
  color: white;
  box-shadow: 0 6px 18px rgba(29, 161, 242, 0.3);
}

.share-content a#twitterLink:hover {
  background: linear-gradient(135deg, #0d8bd9, #0c7abf);
  box-shadow: 0 10px 25px rgba(29, 161, 242, 0.4);
  transform: translateY(-3px) scale(1.02);
}

/* Bouton WhatsApp - Vert WhatsApp officiel */
.share-content a#whatsappLink {
  background: linear-gradient(135deg, #25D366, #1ebe57);
  color: white;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.share-content a#whatsappLink:hover {
  background: linear-gradient(135deg, #1ebe57, #17a84a);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transform: translateY(-3px) scale(1.02);
}

/* Bouton Email - Rouge Gmail officiel */
.share-content a#emailLink {
  background: linear-gradient(135deg, #EA4335, #d33b2c);
  color: white;
  box-shadow: 0 6px 18px rgba(234, 67, 53, 0.3);
}

.share-content a#emailLink:hover {
  background: linear-gradient(135deg, #d33b2c, #c23321);
  box-shadow: 0 10px 25px rgba(234, 67, 53, 0.4);
  transform: translateY(-3px) scale(1.02);
}

/* Bouton Fermer - Gris moderne */
.share-content button {
  background: rgba(108, 117, 125, 0.1);
  border: 2px solid #6c757d;
  color: #6c757d;
}

.share-content button:hover {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(108, 117, 125, 0.4);
}

/* Effet de brillance pour tous les boutons de partage */
.share-content a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.share-content a:hover::before {
  left: 100%;
}

/* Footer */
footer {
  background: #1a1a2e;
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-item {
  margin-bottom: 40px;
}

.footer-item h4 {
  color: white;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-item p {
  color: #ccc;
  line-height: 1.6;
}

.social-icons {
  list-style: none;
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons li a {
  color: #fd7e14;
  font-size: 18px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icons li a:hover {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.contact-form .form-control {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
  color: #ccc;
}

.contact-form .form-control:focus {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
  outline: none;
}

.filled-button {
  background: linear-gradient(135deg, #ffc107, #fd7e14);
  color: white;
  border: none;
  padding: 16px 35px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 600;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.filled-button:hover {
  background: linear-gradient(135deg, #ffb300, #e65100);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.sub-footer {
  background: #0f0f1e;
  padding: 20px 0;
  text-align: center;
  color: #ccc;
}

/* Menu hamburger - suppression des bordures et fond */
.navbar-toggler:focus, 
.navbar-toggler:active {
  outline: none !important; 
  box-shadow: none !important;
}

.navbar-toggler {
  border: none !important;
  background: transparent !important;
}

/* Responsive */
@media (max-width: 768px) {
  .page-heading h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
    gap: 25px;
  }
  
  .filters {
    gap: 12px;
    padding: 0 15px;
  }
  
  .filter-btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  
  .card.expanded {
    padding-top: 60px;
  }
  
  .gallery-overlay button {
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .prev-btn, .next-btn {
    top: auto;
    bottom: 30px;
    transform: none;
  }
  
  .prev-btn {
    left: 30px;
  }
  
  .next-btn {
    right: 30px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .action-buttons button {
    width: 100%;
  }
  
  .card-body {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .page-heading {
    padding: 80px 0 60px;
  }
  
  .page-heading h1 {
    font-size: 2rem;
  }
  
  .navbar-brand h2 {
    font-size: 1.4rem;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .share-content {
    padding: 30px 20px;
  }
  
  .filters {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}
/* Preloader - full screen overlay */
#preloader {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation jumper */
#preloader .jumper > div {
  width: 15px;
  height: 15px;
  background-color: #fd7e14;
  border-radius: 100%;
  display: inline-block;
  animation: jump 1s infinite;
  margin: 0 5px;
}

#preloader .jumper > div:nth-child(2) {
  animation-delay: 0.2s;
}
#preloader .jumper > div:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes jump {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}