:root {
  --primary: #216824;
  --gold: #d4af37;
  --bg: #050816;
  --card: #0b1220;
  --text: #ffffff;
  --text-muted: #b8c0cc;
}

html[data-bs-theme="light"] {
  --bg: #ffffff;
  --card: #f5f7fa;
  --text: #0b1220;
  --text-muted: #64748b;
}

html[data-bs-theme="dark"] {
  --bg: #050816;
  --card: #0b1220;
  --text: #ffffff;
  --text-muted: #b8c0cc;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, sans-serif;
  overflow-x: hidden;
  cursor: auto;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  height: 55px;
  transition: 0.3s;
}

.brand-text {
  margin-left: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  transition: 0.3s;
}

.main-nav {
  padding: 20px 0;
  transition: 0.3s;
  background: transparent;
}

.nav-scrolled {
  background: #fff !important;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
  color: #0b1220 !important;
}

.nav-scrolled .navbar-brand {
  color: var(--primary) !important;
}

/* ==========================
   MOBILE TOGGLER
========================== */

.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 0;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.navbar-toggler span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;

  transition: all 0.35s ease;
}

/* ==========================
   DARK MODE
   Navbar transparente
   Logo blanc
========================== */

html[data-bs-theme="dark"] .navbar-toggler span {
  background: #ffffff;
}

/* Scroll => logo vert */

html[data-bs-theme="dark"] .nav-scrolled .navbar-toggler span {
  background: var(--primary);
}

/* ==========================
   LIGHT MODE
   Logo vert
========================== */

html[data-bs-theme="light"] .navbar-toggler span {
  background: var(--primary);
}

/* Scroll => logo blanc */
html[data-bs-theme="light"] .nav-scrolled .navbar-toggler span {
  background: var(--primary);
}

/* ==========================
   ANIMATION X
========================== */
.navbar-toggler.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-toggler.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  background-image: url("../img/jad-hero.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(5, 8, 22, 0.82), rgba(5, 8, 22, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-content h1 {
  max-width: 850px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
}

.hero-content p {
  max-width: 700px;
  font-size: 1.2rem;
  color: #d1d5db;
  margin: 25px 0 40px;
}

.btn-jad {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}

.btn-jad:hover {
  background: #2f8a35;
  transform: translateY(-3px);
}

.badge-jad {
  background: rgba(33, 104, 36, 0.15);
  border: 1px solid rgba(33, 104, 36, 0.4);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.service-card,
.card-invest {
  background: var(--card);
  color: var(--text);
  border-radius: 20px;
  padding: 35px;
  transition: 0.3s;
}

.service-card:hover,
.card-invest:hover {
  transform: translateY(-8px);
}

.service-card i {
  font-size: 45px;
  color: var(--primary);
  margin-bottom: 20px;
}

.stats {
  padding: 100px 0;
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
}

.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #216824, #2f8a35);
}

#rdcMap {
  height: 600px;
  width: 100%;
}

footer {
  padding: 25px;
  text-align: center;
  background: #000;
}

.cursor {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  background: rgba(33, 104, 36, 0.12);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: 0.15s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
}

/* ==========================
   NAVBAR MODE SOMBRE
========================== */

html[data-bs-theme="dark"] .main-nav {
  background: transparent;
}

html[data-bs-theme="dark"] .nav-link {
  color: #ffffff;
}

html[data-bs-theme="dark"] .brand-text {
  color: #ffffff;
}

html[data-bs-theme="dark"] .logo-white {
  display: block;
}

html[data-bs-theme="dark"] .logo-green {
  display: none;
}

html[data-bs-theme="dark"] .hero-overlay {
  background: linear-gradient(rgba(5, 8, 22, 0.82), rgba(5, 8, 22, 0.7));
}

html[data-bs-theme="dark"] .hero-content h1,
html[data-bs-theme="dark"] .hero-content p {
  color: #fff;
}

/* Dark Mode + Scroll Adjustments */
html[data-bs-theme="dark"] .nav-scrolled {
  background: #fff !important;
}

html[data-bs-theme="dark"] .nav-scrolled .brand-text {
  color: var(--primary);
}

html[data-bs-theme="dark"] .nav-scrolled .logo-white {
  display: none;
}

html[data-bs-theme="dark"] .nav-scrolled .logo-green {
  display: block;
}

/* ==========================
   NAVBAR MODE CLAIR
========================== */
html[data-bs-theme="light"] .main-nav {
  background: transparent;
}

html[data-bs-theme="light"] .nav-link {
  color: var(--primary);
}

html[data-bs-theme="light"] .brand-text {
  color: var(--primary);
}

html[data-bs-theme="light"] .logo-white {
  display: none;
}

html[data-bs-theme="light"] .logo-green {
  display: block;
}

html[data-bs-theme="dark"] .nav-scrolled .logo-green {
  display: block;
}

html[data-bs-theme="light"] .hero-overlay {
  background: linear-gradient(
    rgba(255, 255, 255, 0.78),
    rgba(33, 104, 36, 0.12)
  );
}

html[data-bs-theme="light"] .hero-content h1 {
  color: #0b1220;
}

html[data-bs-theme="light"] .hero-content p {
  color: #000;
}

html[data-bs-theme="light"] .badge-jad {
  color: #216824;
  background: rgba(33, 104, 36, 0.08);
  border: 1px solid rgba(33, 104, 36, 0.25);
}

html[data-bs-theme="light"] .btn-outline-light {
  color: #216824;
  border-color: #216824;
}

html[data-bs-theme="light"] .btn-outline-light:hover {
  background: #216824;
  color: #fff;
}

/* THEME CLAIR + SCROLL */

html[data-bs-theme="light"] .nav-scrolled {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

html[data-bs-theme="light"] .nav-scrolled .nav-link {
  color: var(--primary) !important;
}

html[data-bs-theme="light"] .nav-scrolled .brand-text {
  color: var(--primary) !important;
}

html[data-bs-theme="light"] .nav-scrolled .logo-white {
  display: none;
}

html[data-bs-theme="light"] .nav-scrolled .logo-green {
  display: block;
}

/* ==========================
   DARK MODE TOGGLE
========================== */
#theme-toggle {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

#theme-toggle:hover {
  transform: rotate(180deg);
}

/* TEMOIGNAGES */
#testimonials {
  background: var(--bg);
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
}

.section-header p {
  max-width: 700px;
  margin: auto;
  color: var(--text-muted);
}

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(33, 104, 36, 0.55);
  color: #fff;
  margin-bottom: 15px;
}

.rating-box {
  text-align: center;

  margin-bottom: 60px;
}

.stars {
  color: #d4af37;

  font-size: 2rem;
}

.rating-box h3 {
  font-size: 3rem;

  font-weight: 700;
}

.testimonial-card {
  background: var(--card);
  padding: 30px;
  border-radius: 20px;
  min-height: 300px;
  position: relative;

  box-shadow:
    15px 20px 45px rgba(0, 0, 0, 0.1),
    5px 8px 15px rgba(0, 0, 0, 0.05);

  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);

  box-shadow:
    20px 28px 55px rgba(0, 0, 0, 0.15),
    8px 12px 25px rgba(33, 104, 36, 0.12);
}

.quote {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;

  align-items: center;

  gap: 15px;

  margin-top: 30px;
}

.testimonial-author img {
  width: 65px;

  height: 65px;

  border-radius: 50%;

  object-fit: cover;
}

.testimonial-author h5 {
  margin: 0;

  font-size: 1rem;
}

.testimonial-author span {
  color: var(--text-muted);
}

.testimonialSwiper {
  flex: 1;
}

.prevBtn {
  opacity: 0;
}

@media (max-width: 768px) {
  .nav-btn {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    flex-direction: row;
  }
}

.testimonial-navigation {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 25px;
}

.testimonial-btn {
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 12px;

  background: #216824;
  color: #fff;

  font-size: 1.1rem;
  cursor: pointer;

  transition: all 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-btn:hover {
  background: #184d1b;
  transform: translateY(-3px);
}

.testimonial-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .testimonial-navigation {
    justify-content: center;
  }

  .testimonial-btn {
    width: 48px;
    height: 48px;
  }
}

/* HEADER */

.testimonial-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

/* BOUTONS */

.testimonial-navigation {
  display: flex;
  gap: 15px;
}

.testimonial-btn {
  width: 120px;
  height: 60px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);

  color: var(--text);

  border-radius: 16px;

  cursor: pointer;

  opacity: 0.25;

  transition: all 0.35s ease;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
}

.testimonial-btn:hover {
  opacity: 1;

  background: var(--primary);

  color: white;

  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(33, 104, 36, 0.25);
}

/* Bouton désactivé */

.testimonial-btn.swiper-button-disabled {
  opacity: 0.08;
  pointer-events: none;
}

/* SWIPER */

.testimonialSwiper {
  overflow: visible;
}

.testimonial-card {
  height: 100%;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );

  backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.06);

  transition: all 0.4s ease;
}

.quote {
  font-size: 2.5rem;
}

/* MOBILE */

@media (max-width: 768px) {
  .testimonial-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .testimonial-navigation {
    width: 100%;
    justify-content: center;
  }

  .testimonial-btn {
    width: 80px;
    height: 50px;
  }
}

/* ===================================
   HEADER
=================================== */

.testimonial-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}

.testimonial-description {
  max-width: 700px;
  color: var(--text-muted);
  margin-top: 15px;
}

/* ===================================
   NAVIGATION
=================================== */

.testimonial-navigation {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.testimonial-btn {
  width: 140px;
  height: 70px;

  border-radius: 18px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  background: rgba(255, 255, 255, 0.03);

  backdrop-filter: blur(10px);

  color: var(--text);

  font-size: 1.4rem;

  opacity: 0.15;

  transition: all 0.4s ease;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.testimonial-btn:hover {
  opacity: 1;

  background: var(--primary);

  border-color: var(--primary);

  color: #fff;

  transform: translateY(-4px);

  box-shadow: 0 15px 40px rgba(33, 104, 36, 0.3);
}

.testimonial-btn.swiper-button-disabled {
  opacity: 0.05;
  pointer-events: none;
}

/* ===================================
   SWIPER
=================================== */

.testimonialSwiper {
  overflow: hidden;
}

.testimonialSwiper .swiper-wrapper {
  align-items: stretch;
}

.testimonialSwiper .swiper-slide {
  height: auto;
  opacity: 0.45;
  transition: all 0.6s ease;
}

.testimonialSwiper .swiper-slide-active,
.testimonialSwiper .swiper-slide-next,
.testimonialSwiper .swiper-slide-next + .swiper-slide {
  opacity: 1;
}

/* ===================================
   CARD
=================================== */

.testimonial-card {
  height: 100%;

  border: 1px solid rgba(255, 255, 255, 0.05);

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );

  backdrop-filter: blur(15px);

  transition: all 0.5s ease;
}

/* ===================================
   MOBILE
=================================== */

@media (max-width: 768px) {
  .testimonial-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .testimonial-navigation {
    width: 100%;
    justify-content: center;
  }

  .testimonial-btn {
    width: 90px;
    height: 55px;
  }
}

.testimonial-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background: linear-gradient(90deg, transparent, var(--primary), transparent);

  opacity: 0;

  transition: 0.4s;
}

.testimonial-card:hover::before {
  opacity: 1;
}

/* ==========================
   PARTENAIRES
========================== */

.partners-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

/* Masque fondu sur desktop */
.partners-slider::before,
.partners-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 180px;
  height: 100%;
  z-index: 2;
}

.partners-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bs-body-bg), transparent);
}

.partners-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bs-body-bg), transparent);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: partnersScroll 35s linear infinite;
}

.partners-track img {
  height: 90px;
  width: auto;
  max-width: 220px;
  object-fit: contain;

  transition: 0.4s;
}

.partners-track img:hover {
  transform: scale(1.08);
}

/* Défilement infini */
@keyframes partnersScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .partners-slider::before,
  .partners-slider::after {
    display: none;
  }

  .partners-track {
    gap: 35px;
    animation: partnersScroll 20s linear infinite;
  }

  .partners-track img {
    height: 60px;
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .partners-slider {
    overflow: hidden;
  }

  .partners-track {
    gap: 25px;
  }

  .partners-track img {
    width: calc((100vw - 50px) / 3);
    height: 55px;
    object-fit: contain;
  }
}

/* ===================================
   FOOTER CTA
=================================== */

.footer-cta {
  padding: 120px 0 0;
}

.footer-cta-card {
  position: relative;

  padding: 80px;

  border-radius: 32px;

  text-align: center;

  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(33, 104, 36, 0.95),
    rgba(15, 50, 17, 0.95)
  );

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.footer-cta-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.15),
    transparent 35%
  );
}

.footer-cta-card h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  color: #fff;
  font-weight: 700;
  max-width: 900px;
  margin: auto;
}

.footer-cta-card p {
  max-width: 700px;
  margin: 25px auto 40px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===================================
   FOOTER
=================================== */

.footer-premium {
  position: relative;

  overflow: hidden;

  padding: 100px 0 35px;

  background:
    radial-gradient(
      circle at top right,
      rgba(33, 104, 36, 0.12),
      transparent 35%
    ),
    var(--bg);
}

.footer-premium::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* LOGO */

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;

  text-decoration: none;

  margin-bottom: 25px;
}

.footer-brand img {
  width: 65px;
}

.footer-brand span {
  color: var(--text);

  font-size: 1.3rem;

  font-weight: 700;
}

.footer-description {
  color: var(--text-muted);

  line-height: 1.9;

  margin-bottom: 35px;
}

/* STATS */

.footer-stats {
  display: flex;

  gap: 20px;

  margin-bottom: 35px;
}

.stat-item {
  flex: 1;

  padding: 18px;

  text-align: center;

  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );

  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item strong {
  display: block;

  color: var(--primary);

  font-size: 1.4rem;
}

.stat-item span {
  color: var(--text-muted);

  font-size: 0.85rem;
}

/* SOCIAL */

.footer-social {
  display: flex;

  gap: 12px;
}

.footer-social a {
  width: 52px;
  height: 52px;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text);

  text-decoration: none;

  transition: all 0.35s ease;
}

/* DARK */

html[data-bs-theme="dark"] .footer-social a {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );

  border: 1px solid rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(15px);
}

/* LIGHT */

html[data-bs-theme="light"] .footer-social a {
  background: #ffffff;

  border: 1px solid rgba(0, 0, 0, 0.06);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.footer-social a:hover {
  background: var(--primary);

  transform: translateY(-5px);
}

/* TITRES */

.footer-premium h5 {
  margin-bottom: 25px;

  font-weight: 700;

  color: var(--text);
}

/* LISTES */

.footer-premium ul {
  list-style: none;

  padding: 0;
}

.footer-premium ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.35s;
}

.footer-premium ul a:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* CONTACT CARD */

.footer-contact-card {
  padding: 35px;
  border-radius: 24px;
  transition: 0.4s ease;
  max-width: 420px;
  margin-left: auto;
}

/* DARK */

html[data-bs-theme="dark"] .footer-contact-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );

  border: 1px solid rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(15px);
}

/* LIGHT */

html[data-bs-theme="light"] .footer-contact-card {
  background: #ffffff;

  border: 1px solid rgba(0, 0, 0, 0.06);

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

.footer-contact-item {
  display: flex;

  gap: 15px;

  margin-bottom: 20px;

  color: var(--text-muted);
}

.footer-contact-item i {
  color: var(--primary);

  font-size: 1.1rem;
}

/* DIVIDER */

.footer-divider-premium {
  position: relative;

  margin-top: 70px;
  margin-bottom: 35px;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(33, 104, 36, 0.5),
    rgba(212, 175, 55, 0.25),
    rgba(33, 104, 36, 0.5),
    transparent
  );
}

.footer-divider-premium::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 50%;

  width: 180px;
  height: 6px;

  transform: translate(-50%, -50%);

  background: rgba(33, 104, 36, 0.35);

  filter: blur(12px);
}

/* BOTTOM */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links-column ul {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.footer-links-column li {
  position: relative;
  min-height: 45px;
  display: flex;
  align-items: center;
}

.footer-links-column li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--primary),
    rgba(33, 104, 36, 0.15),
    transparent
  );
}

.footer-links-column li a {
  width: 100%;
  transition: all 0.35s ease;
}

.footer-links-column li:hover a {
  padding-left: 10px;
  color: var(--primary);
}

.footer-premium .row {
  align-items: flex-start;
}

.footer-premium h5 {
  height: 40px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ===================================
   MOBILE
=================================== */

@media (max-width: 768px) {
  .footer-cta-card {
    padding: 50px 25px;
  }

  .footer-stats {
    flex-direction: column;
  }

  .footer-bottom {
    text-align: center;
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ===================================
   ALIGNEMENT DES COLONNES
=================================== */

.footer-premium h5 {
  text-align: left;
}

.footer-premium ul {
  padding: 0;
  margin: 0;
}

.footer-premium li {
  position: relative;
  padding: 12px 0;
  border-bottom: 1px solid rgba(33, 104, 36, 0.15);
}

.footer-premium .col-lg-2,
.footer-premium .col-lg-4,
.footer-premium .col-md-6 {
  text-align: left;
}

/* ==========================
   SECTEURS
========================== */

.footer-sectors {
  margin-top: 70px;
  margin-bottom: 50px;
  text-align: center;
}

.sector-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.35s ease;
  margin: 8px;
  position: relative;
  overflow: hidden;
}

.sector-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.sector-pill:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(33, 104, 36, 0.25);
}

html[data-bs-theme="dark"] .sector-pill {
  background: transparent;
  border: 1px solid rgba(33, 104, 36, 0.35);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

html[data-bs-theme="dark"] .sector-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(33, 104, 36, 0.3);
}

html[data-bs-theme="light"] .sector-pill {
  background: transparent;
  border: 1px solid rgba(33, 104, 36, 0.2);
  color: var(--text);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

html[data-bs-theme="light"] .sector-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(33, 104, 36, 0.2);
}

/* ===================================
   FULLSCREEN MOBILE MENU
=================================== */

/* DARK */

html[data-bs-theme="dark"] .mobile-menu-overlay {
  background:
    radial-gradient(
      circle at top right,
      rgba(33, 104, 36, 0.25),
      transparent 35%
    ),
    rgba(5, 8, 22, 0.97);
}

/* LIGHT */

html[data-bs-theme="light"] .mobile-menu-overlay {
  background:
    radial-gradient(
      circle at top right,
      rgba(33, 104, 36, 0.15),
      transparent 35%
    ),
    rgba(255, 255, 255, 0.97);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

html[data-bs-theme="dark"] .mobile-nav-link {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );

  border: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-bs-theme="light"] .mobile-nav-link {
  background: #ffffff;

  border: 1px solid rgba(0, 0, 0, 0.05);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.mobile-nav-link i {
  width: 28px;

  font-size: 1.2rem;

  color: var(--primary);
}

.mobile-nav-link:hover {
  transform: translateX(10px);

  background: var(--primary);

  color: #fff;
}

.mobile-nav-link:hover i {
  color: #fff;
}

/* ==========================
   MOBILE MENU PREMIUM
========================== */

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    z-index: 9990;

    padding: 120px 35px 40px;

    overflow-y: auto;

    transform: translateY(-100%);

    transition: transform 0.4s ease;
  }

  .navbar-collapse.show {
    transform: translateY(0);
  }

  html[data-bs-theme="dark"] .navbar-collapse {
    background: rgba(5, 8, 22, 0.98);

    backdrop-filter: blur(20px);
  }

  html[data-bs-theme="light"] .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);

    backdrop-filter: blur(20px);
  }

  .navbar-nav {
    gap: 12px;
  }

  .navbar-nav .nav-link {
    font-size: 1.2rem;

    font-weight: 600;

    padding: 18px 24px;

    border-radius: 16px;

    transition: 0.3s;
  }

  html[data-bs-theme="dark"] .navbar-nav .nav-link {
    background: rgba(255, 255, 255, 0.05);
  }

  html[data-bs-theme="light"] .navbar-nav .nav-link {
    background: rgba(0, 0, 0, 0.03);
  }

  .navbar-nav .nav-link:hover {
    background: var(--primary);

    color: white !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    inset: 0;

    width: 100vw;
    height: 100vh;

    padding: 110px 25px 40px;

    overflow-y: auto;

    z-index: 9990;

    transform: translateY(-100%);

    transition: 0.35s ease;
  }

  .navbar-collapse.show {
    transform: translateY(0);
  }

  html[data-bs-theme="dark"] .navbar-collapse {
    background: rgba(5, 8, 22, 0.98);
    backdrop-filter: blur(20px);
  }

  html[data-bs-theme="light"] .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
  }

  .navbar-nav {
    gap: 10px;
  }

  .navbar-nav .nav-link {
    display: flex;
    align-items: center;

    height: 60px;

    padding: 0 20px;

    border-radius: 14px;

    font-size: 1.1rem;
    font-weight: 600;
  }

  html[data-bs-theme="dark"] .navbar-nav .nav-link {
    background: rgba(255, 255, 255, 0.05);
  }

  html[data-bs-theme="light"] .navbar-nav .nav-link {
    background: rgba(0, 0, 0, 0.04);
  }

  .navbar-brand,
  .navbar-toggler {
    position: relative;
    z-index: 10000;
  }
}

.mobile-cta {
  margin-top: 20px;
}

.xxxyyyy {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(33, 104, 36, 0.4);
  text-align: left;
}

@media (max-width: 991.98px) {
  .navbar-mobile-actions {
    display: grid !important;

    grid-template-columns: 1fr 56px !important;

    gap: 12px;

    align-items: center;

    width: 100%;
  }

  .navbar-mobile-actions .form-select {
    width: 100% !important;

    height: 56px;
  }

  #theme-toggle-mobile {
    width: 56px !important;

    height: 56px !important;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;
  }

  .mobile-cta {
    width: 100%;

    margin-top: 20px;
  }
}

/* ==========================
   FOOTER MOBILE
========================== */

@media (max-width: 768px) {
  /* Colonne 1 */
  .footer-brand {
    justify-content: center;
  }

  .footer-description {
    text-align: center;
  }

  .footer-stats {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  /* Colonne 2 */
  .footer-premium h5 {
    justify-content: center;
    text-align: center;
  }

  .footer-links-column,
  .footer-links-column h5,
  .footer-links-column ul {
    text-align: center !important;
  }

  .footer-links-column li {
    justify-content: center;
  }

  .moba {
    justify-content: left !important;
    text-align: left !important;
  }

  .footer-links-column li::after {
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
  }
}

/* ==========================
   MOBILE + LIGHT THEME FIX
========================== */

@media (max-width: 991.98px) {
  html[data-bs-theme="light"] .navbar-collapse.show {
    background: #ffffff !important;
  }

  html[data-bs-theme="light"] .navbar-collapse.show .nav-link {
    color: var(--primary) !important;
  }

  html[data-bs-theme="light"] .navbar-collapse.show ~ .navbar-toggler span,
  html[data-bs-theme="light"] .navbar-toggler.active span {
    background: var(--primary) !important;
  }

  html[data-bs-theme="light"] .navbar-brand {
    z-index: 10001;
  }

  html[data-bs-theme="light"] .navbar-toggler {
    z-index: 10001;
  }
}

@media (max-width: 991.98px) {
  .cursor,
  .cursor-dot {
    display: none !important;
  }
}
