/* ============================================================
   components.css — Navbar, Footer, Badges, Boutons
   Impact Communication
   ============================================================ */

/* ===== NAVBAR ===== */
#navbar {
  background: transparent;
  padding: 1.4rem 0;
  transition: background 0.5s ease, padding 0.4s ease, box-shadow 0.4s ease;
  z-index: 1000;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 0.85rem 0;
  box-shadow: 0 1px 0 var(--color-gray-200);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Logos — dark/light */
.logo-light { display: none; }
.logo-dark  { display: block; }

/* Nav links */
.nav-link {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: var(--fw-bold);
  color: var(--color-gray-500) !important;
  padding: 0 1.2rem !important;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover,
.nav-link.active { color: var(--color-black) !important; }

/* Toggler (mobile) */
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  padding: 0.25rem 0.5rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Bouton OFF (dark mode toggle) */
.btn-off{
  border: 0;
  background: transparent;
}
.btn-off img{
  height: 35px;
}
/* ===== LOGO SQUARE (rouge carré) ===== */
.navbar-brand .logo-square {
  display: block;
  height: 44px;
  width: auto;
  border-radius: 8px;
}

/* Dark mode — navbar */
body.dark-mode #navbar .nav-link            { color: rgba(240, 240, 236, 0.65) !important; }
body.dark-mode #navbar .nav-link:hover,
body.dark-mode #navbar .nav-link.active     { color: #F0F0EC !important; }
body.dark-mode #navbar .nav-link::after     { background: #F0F0EC; }
body.dark-mode #navbar.scrolled            { background: rgba(10,10,10,0.97); box-shadow: 0 1px 0 #222; }
body.dark-mode #navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28240, 240, 236, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== SECTION BADGE ===== */
.section-badge {
  display: inline-block;
  border: 0.5px solid var(--color-black);
  padding: 0.25rem 0.8rem;
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  color: var(--color-black);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* ===== BOUTONS ===== */
.btn-primary-impact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-red);
  color: white !important;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  border: 2px solid var(--color-red);
  transition: background 0.25s, transform 0.25s;
  will-change: transform;
}
.btn-primary-impact:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-2px);
  color: white !important;
}

.btn-outline-impact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-black) !important;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid var(--color-black);
  transition: all 0.25s;
}
.btn-outline-impact:hover {
  background: var(--color-black);
  color: white !important;
}

body.dark-mode .btn-outline-impact {
  color: #F0F0EC !important;
  border-color: #F0F0EC;
}
body.dark-mode .btn-outline-impact:hover {
  background: #F0F0EC;
  color: var(--color-black) !important;
}

/* ===== STAT CARDS ===== */
.stat-card {
  border: 0.5px solid var(--color-gray-200);
  padding: 2rem 1.5rem;
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-card--red {
  background: var(--color-red);
  border-color: var(--color-red);
  color: white;
}
.stat-card--red .stat-number { color: white; }
.stat-card--red .stat-label  { color: rgba(255, 255, 255, 0.8); }
.stat-label {
  font-size: 0.78rem;
  font-weight: var(--fw-light);
  line-height: 1.4;
  color: var(--color-gray-600);
}

/* ===== FOOTER ===== */
.footer {
  background: #E8E8E8;
  padding: 4rem 0 2rem;
}
.footer-label {
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 1rem;
}
.footer-contact-title {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  margin-bottom: 0.2rem;
}
.footer-link {
  font-size: 0.85rem;
  font-weight: var(--fw-light);
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}
.footer-link:hover { color: var(--color-black); }

.footer-social {
  display: inline-flex;
  align-items: center;
  color: var(--color-black);
  transition: color 0.2s;
  margin-top: 0.5rem;
}
.footer-social:hover { color: var(--color-black); }

.footer-logo { height:35px; }

.footer-coming {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  margin-bottom: 0;
  line-height: 1;
}

.footer-bottom {
  padding-top: 1.5rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--color-black);
}

/* Dark mode footer */
body.dark-mode .footer-link         { color: #888; }
body.dark-mode .footer-link:hover   { color: #F0F0EC; }
body.dark-mode .footer-contact-title { color: #F0F0EC; }
body.dark-mode .footer-logo         { filter: invert(1); opacity: 0.6; }
body.dark-mode .footer-coming       { color: #F0F0EC; }
body.dark-mode .footer-social       { color: #888; }
body.dark-mode .footer-social:hover { color: #F0F0EC; }
