/* Styles personnalisés CRIR */

.page-title {
  background-color: #f8f9fa;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.page-title h1 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

/* breadcrumbs removed */

/* Cards personnalisées */
.event-card {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-card .image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.event-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card .event-info {
  padding: 1.5rem;
}

.event-card .event-date {
  color: #007bff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.event-card .event-date i {
  margin-right: 0.25rem;
}

.event-card .event-location {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.event-card .event-location i {
  margin-right: 0.25rem;
}

.event-card h3 {
  color: #2c3e50;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* News cards */
.news-image {
  height: 200px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 0 1rem 1rem;
}

.news-meta {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #dee2e6;
}

/* ===== Header Logo ===== */
.header .logo img.crir-header-logo {
  height: 90px !important;
  max-height: 90px !important;
  width: auto !important;
  max-width: 320px;
  object-fit: contain;
}

.footer .logo img {
  height: 60px;
  width: auto;
}

/* Contact info items */
.info-wrap .info-item {
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  align-items: flex-start;
}

.info-wrap .info-item i {
  font-size: 1.5rem;
  color: #1a3b5d;
  margin-top: 0.2rem;
  min-width: 2rem;
  text-align: center;
}

.info-wrap .info-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a3b5d;
  margin-bottom: 0.4rem;
}

.info-wrap .info-item p,
.info-wrap .info-item div {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Member cards improvements */
.team-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.team-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.member-specialties {
  background-color: #f8f9fa;
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin: 0.5rem 0;
  font-size: 0.875rem;
}

.member-contact {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.contact-link:hover {
  background-color: #0056b3;
  color: white;
  transform: scale(1.1);
}

/* Map placeholder */
.map-placeholder {
  background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
              linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
              linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    text-align: center;
  }
  
  .stats-grid {
    margin-top: 2rem;
  }
  
  .event-card .event-info {
    padding: 1rem;
  }
}
/* ===== Responsive Logo ===== */
@media (max-width: 575px) {
  .header .logo img.crir-header-logo {
    height: 55px !important;
    max-height: 55px !important;
    max-width: 200px !important;
  }
}
@media (min-width: 576px) and (max-width: 991px) {
  .header .logo img.crir-header-logo {
    height: 70px !important;
    max-height: 70px !important;
    max-width: 260px !important;
  }
}

/* ===== Mobile Menu Improvements ===== */
@media (max-width: 1199px) {
  /* Bigger, more touch-friendly links */
  .navmenu ul li a {
    padding: 14px 24px !important;
    font-size: 18px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .navmenu ul li:last-child a {
    border-bottom: none;
  }

  /* Espace Membre highlighted in mobile menu */
  .mobile-membre-link a {
    background-color: #2c4a6e !important;
    color: #fff !important;
    margin: 15px 20px !important;
    border-radius: 10px !important;
    text-align: center;
    justify-content: center !important;
    font-weight: 600 !important;
    border-bottom: none !important;
  }

  .mobile-membre-link a:hover {
    background-color: #1e3554 !important;
  }

  /* Better hamburger button */
  .mobile-nav-toggle {
    font-size: 32px !important;
    padding: 5px;
  }

  /* Smooth slide-in panel */
  .navmenu ul {
    inset: 0 0 0 25% !important;
    border-radius: 0 !important;
    padding: 80px 0 20px !important;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2) !important;
  }

  /* Close button better positioned */
  .mobile-nav-active .mobile-nav-toggle {
    top: 20px !important;
    right: 20px !important;
  }
}

/* ===== Nav separator for member links ===== */
.navmenu .nav-separator {
  width: 1px;
  height: 20px;
  background-color: #ccc;
  margin: 0 5px;
  align-self: center;
}
