/* ==========================================================================
   1. VARIABLES ET THÈME BASE SUR LE VERT OFFICIEL DU LOGO (#136b25)
   ========================================================================== */
:root {
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --brand-500: #16a34a;
  --brand-600: #15803d;
  --brand-700: #136b25; /* Vert exact extrait du logo CEHUDEC */
  --brand-800: #0e521c;
  --brand-900: #0a3d14;
  --brand-950: #05260b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --radius-pill: 9999px;
  --radius-card: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--slate-50);
  color: var(--slate-800);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--brand-700);
  color: #ffffff;
}

.bg-slate-light {
  background-color: rgba(241, 245, 249, 0.7);
}

/* ==========================================================================
   2. NAVIGATION GLASSMORPHIQUE & LOGO
   ========================================================================== */
.custom-navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  transition: all 0.3s ease;
  min-height: 80px;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.navbar-brand:hover .brand-logo-img {
  transform: scale(1.06);
}

.nav-link {
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-700) !important;
  font-weight: 600;
}

/* ==========================================================================
   3. BOUTONS PERSONNALISÉS
   ========================================================================== */
.btn-brand {
  background-color: var(--brand-700);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 4px 14px rgba(19, 107, 37, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-brand:hover {
  background-color: var(--brand-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(19, 107, 37, 0.35);
}

.btn-brand-accent {
  background-color: var(--brand-700);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.65rem;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 10px 20px rgba(5, 38, 11, 0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-brand-accent:hover {
  background-color: var(--brand-800);
  transform: scale(1.03);
}

.btn-glass {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.65rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background-color: var(--brand-950);
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* Hero-specific typography tweaks for clarity */
.hero-wrapper .display-4 {
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-wrapper p {
  color: rgba(230, 250, 236, 0.95);
  font-weight: 400;
}

.hero-bg-blur {
  position: absolute;
  inset: -10px;
  background-image: url('../../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.05);
  z-index: 1;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 38, 11, 0.95) 0%, rgba(14, 82, 28, 0.82) 50%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
}

.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(220, 252, 231, 0.15);
  color: var(--brand-100);
  border: 1px solid rgba(220, 252, 231, 0.3);
  backdrop-filter: blur(4px);
}

.scroll-down-btn {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  z-index: 10;
  transition: color 0.2s;
}

.scroll-down-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   5. CARTES ET COMPOSANTS
   ========================================================================== */
.card-visual-gradient {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-900) 100%);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-box {
  border-left: 4px solid var(--brand-700);
  background-color: var(--brand-50);
  padding: 1.25rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.card-value {
  padding: 1.5rem;
  background-color: var(--slate-50);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card-value:hover {
  background-color: #ffffff;
  border-color: rgba(19, 107, 37, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-box-brand {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background-color: var(--brand-100);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.card-value:hover .icon-box-brand {
  background-color: var(--brand-700);
  color: #ffffff;
}

.axe-card {
  position: relative;
  padding: 2rem;
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.axe-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.axe-card-number {
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  font-size: 6rem;
  font-weight: 900;
  color: var(--slate-100);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

.axe-card:hover .axe-card-number {
  color: var(--brand-50);
}

.banner-support {
  background: linear-gradient(90deg, var(--brand-950) 0%, var(--brand-800) 100%);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.team-card {
  padding: 1.5rem;
  background-color: var(--slate-50);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.team-card:hover {
  background-color: #ffffff;
  border-color: rgba(19, 107, 37, 0.3);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--brand-700), var(--brand-500));
  color: white;
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-card:hover .avatar-circle {
  transform: scale(1.1);
}

.gallery-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
}

.gallery-card {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 192px;
  background-color: var(--slate-200);
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.05);
}

.form-control-custom, .form-select-custom {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-300);
  outline: none;
  font-size: 0.875rem;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--brand-700);
  box-shadow: 0 0 0 3px rgba(19, 107, 37, 0.15);
}

#backToTop {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1040;
  background-color: var(--brand-700);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

#backToTop:hover {
  background-color: var(--brand-800);
}

.badge-subhead {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-700);
  display: block;
  margin-bottom: 0.5rem;
}

   /* ==========================================================================
   FOOTER — améliorer la lisibilité des descriptions
   ========================================================================== */
footer {
  color: var(--slate-200);
  background-color: var(--slate-900);
}

footer .text-slate-400,
footer p.small,
footer .small {
  color: var(--slate-300) !important;
  font-weight: 500;
}

footer a,
footer .text-slate-500 {
  color: #e4ece5 !important; /* footer links: Bootstrap primary blue */
  font-weight: 600;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  color: #0a58ca !important; /* darker blue on hover */
  text-decoration: underline;
}

footer .text-slate-300 {
  color: var(--slate-200) !important;
}

@media (max-width: 768px) {
  footer p,
  footer .small { font-size: 0.95rem; }
}

.brand-title,
.hero-title {
  font-weight: 800;
}

.brand-subtitle {
  color: var(--brand-700);
  font-size: 0.72rem;
}

.text-brand {
  color: var(--brand-700);
}

.text-brand-light {
  color: var(--brand-100);
}

.hero-lead,
.banner-support-text {
  color: rgba(220, 252, 231, 0.9);
}

.hero-lead {
  font-size: 1.125rem;
}

.about-logo-wrap {
  width: 72px;
  height: 72px;
}

.about-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.glass-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.axe-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-700);
}

.badge-brand-soft {
  background-color: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
}

.axe-subtitle {
  font-size: 0.875rem;
}

.btn-partner {
  color: var(--brand-900);
}

.badge-team,
.contact-label {
  font-size: 0.65rem;
}

.gallery-filter-btn.active {
  background-color: var(--brand-700);
  color: #ffffff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.gallery-filter-btn:not(.active) {
  background-color: #ffffff;
  color: var(--slate-700);
}

.gallery-meta,
.footer-heading,
.copyright-text {
  font-size: 0.75rem;
}

.footer-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
