/* 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: #2c5a82;
  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 ===== */
.header {
  padding: 15px 0 !important;
  border-bottom: 2px solid #2c4a6e !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.header > .container {
  min-height: 160px;
  display: flex;
  align-items: center;
}

/* ===== Header Logo ===== */
.header .logo {
  flex-shrink: 0;
}

.header .logo img.crir-header-logo {
  height: 140px !important;
  max-height: 140px !important;
  width: auto !important;
  max-width: 500px;
  object-fit: contain;
  transition: height 0.3s ease;
}

/* ===== Desktop Navigation ===== */
@media (min-width: 1200px) {
  .navmenu ul {
    gap: 0 !important;
  }

  .navmenu a,
  .navmenu a:focus {
    color: #475569 !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
    border-radius: 8px;
    transition: all 0.2s ease !important;
    position: relative;
  }

  .navmenu a:hover {
    color: #2c4a6e !important;
    background-color: rgba(44, 74, 110, 0.06);
  }

  .navmenu .active,
  .navmenu .active:focus {
    color: #2c4a6e !important;
    font-weight: 600 !important;
  }

  /* Active indicator underline */
  .navmenu .active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: #2c4a6e;
    border-radius: 2px;
  }

  .navmenu li:last-child a {
    padding-right: 16px !important;
  }

  /* Separator between public and member links */
  .navmenu .nav-separator {
    width: 1px;
    height: 24px;
    background-color: #d1d5db;
    margin: 0 8px;
    align-self: center;
  }
}

/* ===== Header right-side buttons ===== */
.header .d-xl-flex.gap-2 {
  gap: 10px !important;
}

.header .d-xl-flex .btn-crir,
.header .d-xl-flex .btn-crir-outline {
  padding: 8px 20px !important;
  font-size: 0.85rem !important;
}

.header .d-xl-flex .text-decoration-none {
  color: #2c4a6e !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.header .d-xl-flex .text-decoration-none:hover {
  background-color: rgba(44, 74, 110, 0.06);
}

.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: 70px !important;
    max-height: 70px !important;
    max-width: 250px !important;
  }
  .header {
    padding: 8px 0 !important;
  }
  .header > .container {
    min-height: 80px;
  }
}
@media (min-width: 576px) and (max-width: 1199px) {
  .header .logo img.crir-header-logo {
    height: 100px !important;
    max-height: 100px !important;
    max-width: 400px !important;
  }
  .header {
    padding: 10px 0 !important;
  }
  .header > .container {
    min-height: 120px;
  }
}

/* ===== Mobile Menu ===== */
@media (max-width: 1199px) {
  .navmenu ul li a {
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
  }

  .navmenu ul li a:hover {
    background-color: rgba(44, 74, 110, 0.05) !important;
    color: #2c4a6e !important;
  }

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

  .mobile-membre-link {
    border-top: 1px solid #e2e8f0 !important;
    margin-top: 4px !important;
  }

  .mobile-membre-link:first-of-type {
    margin-top: 12px !important;
    padding-top: 8px !important;
  }

  .mobile-membre-link a {
    color: #2c4a6e !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    border-bottom: none !important;
    background: transparent !important;
  }

  .mobile-membre-link a:hover {
    background-color: rgba(44, 74, 110, 0.08) !important;
    color: #1e3554 !important;
  }

  .mobile-membre-link a i {
    color: #2c4a6e !important;
  }

  .mobile-nav-toggle {
    font-size: 28px !important;
    color: #2c4a6e !important;
    padding: 5px;
  }

  .navmenu ul {
    inset: 0 0 0 30% !important;
    border-radius: 0 !important;
    padding: 80px 0 20px !important;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15) !important;
    background: #fff !important;
  }

  .mobile-nav-active .mobile-nav-toggle {
    top: 20px !important;
    right: 20px !important;
  }

  /* Hide separator in mobile */
  .nav-separator {
    display: none !important;
  }
}

/* ===== CRIR Brand Buttons ===== */
.btn-crir {
  background-color: #2c4a6e !important;
  border-color: #2c4a6e !important;
  color: #fff !important;
  border-radius: 25px;
  font-weight: 600;
  padding: 10px 24px;
  transition: all 0.3s ease;
}
.btn-crir:hover, .btn-crir:focus {
  background-color: #1e3550 !important;
  border-color: #1e3550 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 74, 110, 0.3);
}

.btn-crir-outline {
  background-color: transparent !important;
  border: 2px solid #2c4a6e !important;
  color: #2c4a6e !important;
  border-radius: 25px;
  font-weight: 600;
  padding: 10px 24px;
  transition: all 0.3s ease;
}
.btn-crir-outline:hover, .btn-crir-outline:focus {
  background-color: #2c4a6e !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 74, 110, 0.3);
}

.btn-crir-sm {
  padding: 6px 16px;
  font-size: 0.875rem;
}

.btn-crir-lg {
  padding: 12px 32px;
  font-size: 1.1rem;
}

.btn-crir-success {
  border-radius: 25px;
  font-weight: 600;
  padding: 10px 24px;
}

/* ===== CRIR Form Styles ===== */
.form-crir .form-control,
.form-crir .form-select {
  border-radius: 8px;
  border: 1.5px solid #dee2e6;
  padding: 10px 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-crir .form-control:focus,
.form-crir .form-select:focus {
  border-color: #2c4a6e;
  box-shadow: 0 0 0 0.2rem rgba(44, 74, 110, 0.15);
}

.form-crir .form-label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.4rem;
}

.form-crir .form-check-input:checked {
  background-color: #2c4a6e;
  border-color: #2c4a6e;
}

/* Cards uniform style */
.card-crir {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-crir:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Badge styles */
.badge-crir {
  background-color: #2c4a6e !important;
  color: #fff;
  border-radius: 20px;
  padding: 5px 12px;
  font-weight: 500;
}
.badge-crir-gold {
  background-color: #d4a017 !important;
  color: #fff;
  border-radius: 20px;
  padding: 5px 12px;
  font-weight: 500;
}

/* ===== CRIR Card Headers ===== */
.card-header-crir {
  background-color: #2c4a6e !important;
  color: #fff !important;
  border-bottom: none;
}
.card-header-crir h4,
.card-header-crir h5 {
  color: #fff !important;
}
.card-header-crir-light {
  background-color: #f0f4f8 !important;
  border-bottom: 2px solid #2c4a6e;
  color: #2c4a6e !important;
}
.card-header-crir-light h5 {
  color: #2c4a6e !important;
}

/* ===== Committee Cards (shared: /comite + /association) ===== */
.committee-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.committee-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.committee-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f0f4f8;
}
.committee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}
.committee-card:hover .committee-photo img {
  transform: scale(1.03);
}
.committee-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8edf2, #f0f4f8);
}
.committee-photo-placeholder i {
  font-size: 5rem;
  color: #b0bec5;
}
.committee-info {
  padding: 20px 18px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.committee-function {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #d4a017, #b8860b);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.committee-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2c4a6e;
  margin-bottom: 6px;
  line-height: 1.3;
}
.committee-workplace {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.committee-workplace i {
  color: #2c4a6e;
  font-size: 0.78rem;
}
@media (max-width: 768px) {
  .committee-info { padding: 16px 14px 20px; }
}

/* RSVP participant tooltip */
.rsvp-count-wrapper {
  cursor: default;
}
.rsvp-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #2c4a6e;
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10;
}
.rsvp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 16px;
  border: 6px solid transparent;
  border-top-color: #2c4a6e;
}
.rsvp-count-wrapper:hover .rsvp-tooltip,
.rsvp-count-wrapper:active .rsvp-tooltip {
  display: block;
}
