/* ========================================
   GLOBAL STYLES
   ======================================== */

.mt-nav {
  margin-top: 72px !important;
}

.sticky-column-offnav {
  top: 10px;
  transition: .2s ease-in-out;
}

body:has(.navbar:not(.navbar-hidden)) .sticky-column-offnav {
  top: 85px;
}

a.badge {transition: .2s ease-in-out;}
a.badge:hover {transform: translateY(-2px);}

/* ========================================
   BLOG STYLES
   ======================================== */
.toc-link {
  color: var(--body-text);
}
.toc-link.active {
  color: var(--bs-primary);
  font-weight: bold;
}

.blog-content .blog-h2 {
  font-size: 3rem;
  margin-top: 3rem;
  color: var(--bs-primary);
}
.blog-content .blog-h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.blog-content .blog-p:has(+ .blog-ul) {
  margin-bottom: 0 !important;
}

.blog-points-cles {
  padding: .5rem 1.5rem;
  border-left: 4px solid var(--bs-info-subtle);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.blog-content .blog-ul {
  padding-bottom: 0;
  margin-bottom: 0 !important;
}

.blog-content .blog-p:has(> .blog-span) {
  text-transform: uppercase;
  font-size: 10px !important;
}

.blog-content .blog-table {
  width: 100%;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.blog-content .blog-table th,
.blog-content .blog-table td {
  padding: .75rem 1.25rem;
  text-align: left;
}

.blog-content .blog-table th {
  background-color: var(--mdb-gray-200);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mdb-gray-900);
}

.blog-content .blog-table td {
  border-top: 1px solid var(--mdb-gray-200);
  color: var(--mdb-gray-800);
}

.blog-content .blog-table tbody tr:hover {
  background-color: var(--mdb-gray-100);
}




/* ========================================
   NAVBAR STYLES
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: transparent;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

/* Nav Links - Hover underline animation */
.navbar .nav-item,
.footer .nav-item {
  position: relative;
}

.navbar .nav-item::after,
.footer .nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar .nav-item:hover,
.footer .nav-item:hover {
  color: var(--primary-color) !important;
}

.navbar .nav-item:hover::after,
.navbar .nav-item.active::after,
.footer .nav-item:hover::after,
.footer .nav-item.active::after {
  width: 100%;
  left: 0;
}

.navbar .nav-item.active,
.footer .nav-item.active {
  color: var(--primary-color);
}

/* Mobile */
@media (max-width: 767.98px) {
  .navbar .navbar-collapse {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
  }

  .navbar {
    background-color: rgba(255, 255, 255, 0.98);
  }

  .navbar .nav-item::after {
    display: none;
  }

  .navbar .nav-item.active {
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 0.375rem;
  }
}


/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  background: #fafbff;
}

.hero__canvas {
  z-index: 1;
  opacity: 0.5;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(79, 70, 229, 0.08);
  top: -15%;
  right: 10%;
}

.hero__orb--2 {
  width: 350px;
  height: 350px;
  background: rgba(139, 92, 246, 0.06);
  bottom: -10%;
  left: -5%;
}

.hero__orb--3 {
  width: 250px;
  height: 250px;
  background: rgba(79, 70, 229, 0.05);
  top: 50%;
  left: 40%;
  transform: translateY(-50%);
}

.hero__row {
  min-height: 100vh;
}

.hero__left {
  max-width: 600px;
}

.hero__status {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.06);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(79, 70, 229, 0.1);
  opacity: 0;
}

.hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
  animation: heroPulse 2s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--bs-dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 460px;
  opacity: 0;
}

.hero__cta {
  opacity: 0;
}

.hero__btn {
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__btn--primary {
  background: var(--primary-color);
  color: #fff;
}

.hero__btn--primary:hover {
  background: #3c36b1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
  color: #fff;
}

.hero__btn--primary svg {
  transition: transform 0.3s ease;
}

.hero__btn--primary:hover svg {
  transform: translateX(4px);
}

.hero__btn--ghost {
  color: var(--body-text);
  border: 1px solid #e2e4ea;
  background: #fff;
}

.hero__btn--ghost:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  opacity: 0;
}

.hero__metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.hero__metric-unit {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.6;
}

.hero__card--code {
  background: #1e1e2e;
  opacity: 0;
}

.hero__code-header {
  border-bottom: 1px solid #2a2a3e;
}

.hero__code-file {
  color: rgba(255, 255, 255, 0.35);
}

.hero__code-body {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #cdd6f4;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  overflow: hidden;
}

.hero__code-body code {
  font-family: inherit;
  color: inherit;
}

.hero__code-kw  { color: #cba6f7; }
.hero__code-cls { color: #89dceb; }
.hero__code-fn  { color: #89b4fa; }
.hero__code-type { color: #a6e3a1; }
.hero__code-str { color: #f9e2af; }

.hero__scroll {
  bottom: 30px;
  opacity: 0;
}

@media (max-width: 768px) {
  .hero__scroll {
    bottom: -120px;
  }
}

.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

.hero__scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary-color), transparent);
  animation: heroScrollLine 2s ease-in-out infinite;
}

@keyframes heroScrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 991.98px) {
  .hero__row {
    min-height: auto;
  }
  .hero__left {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   PROBLEM SECTION
   ======================================== */

.problem-point > div {
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s cubic-bezier(.4,0,.2,1), border-color 0.35s ease;
}

.problem-point:hover > div {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.problem-point > div .rounded-circle {
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

.problem-point:hover > div .rounded-circle {
  transform: scale(1.12);
}

.problem-stat {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
}

/* ========================================
   SOLUTION SECTION
   ======================================== */

.solution-pillar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06) !important;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-skill-item .bg-white {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-skill-item .bg-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

.about-process-step > div {
  transition: transform 0.3s ease;
}

.about-process-step > div:hover {
  transform: translateY(-3px);
}

.about-cta-card > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-cta-card > div:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
}

/* ========================================
   SECTION HEADERS (shared)
   ======================================== */

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary-color);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bs-dark);
}

.section-divider {
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border: none;
  opacity: 1;
}

/* ========================================
   OUTCOMES SECTION
   ======================================== */

.outcomes-section {
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
  padding: 100px 0 80px;
}

.outcomes-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.outcomes-bg-shape--1 {
  width: 600px;
  height: 600px;
  background: rgba(79, 70, 229, 0.04);
  top: -200px;
  left: -100px;
}

.outcomes-bg-shape--2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.03);
  bottom: -100px;
  right: -50px;
}

.outcomes-header {
  position: relative;
  z-index: 1;
}

.outcomes-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

.outcomes-grid {
  position: relative;
  z-index: 1;
}

.outcomes-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 32px 28px 28px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.outcomes-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.outcomes-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.1), 0 4px 20px rgba(0, 0, 0, 0.04);
  border-color: rgba(79, 70, 229, 0.12);
}

.outcomes-card:hover::before {
  transform: scaleX(1);
}

.outcomes-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.outcomes-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(139, 92, 246, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: transform 0.3s ease, background 0.3s ease;
}

.outcomes-card:hover .outcomes-card__icon {
  transform: scale(1.08);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14), rgba(139, 92, 246, 0.14));
}

.outcomes-card__number {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(79, 70, 229, 0.2);
  letter-spacing: 0.05em;
}

.outcomes-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.outcomes-card__text {
  font-size: 0.92rem;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.outcomes-card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  background: rgba(79, 70, 229, 0.06);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.outcomes-cta {
  position: relative;
  z-index: 1;
}

.outcomes-cta__text {
  font-size: 1.05rem;
}

@media (max-width: 767.98px) {
  .outcomes-section {
    padding: 60px 0 50px;
  }
  .outcomes-card {
    padding: 24px 22px 22px;
  }
}

/* ========================================
   PORTFOLIO SECTION (home)
   ======================================== */

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
}

.project-card:hover {
    transform: translateY(-5px); 
}

.project-img {
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 6px;
}

/* ========================================
   PORTFOLIO FILTER COLLAPSE
   ======================================== */

.filter-list-container.has-overflow .filter-hidden {
    display: none !important;
}

.filter-list-container.has-overflow.expanded .filter-hidden {
    display: flex !important;
}

/* Tags en flex-wrap : afficher inline */
.filter-list-wrap.has-overflow.expanded .filter-hidden {
    display: inline-flex !important;
}

.filter-list-container.has-overflow.expanded .filter-gradient {
    display: none !important;
}

/* Gradient pour catégories (colonne) */
.filter-list-column .filter-gradient {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Gradient pour tags (flex-wrap) */
.filter-list-wrap .filter-gradient {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Bouton toggle */
.filter-toggle .show-less {
    display: none;
}

.filter-toggle .show-more {
    display: inline;
}

.filter-list-container.expanded .filter-toggle .show-more {
    display: none;
}

.filter-list-container.expanded .filter-toggle .show-less {
    display: inline;
}




/* ========================================
  PORTFOLIO  PROCESS STEP
   ======================================== */
    .process-steps-container {
        overflow-x: auto;
        overflow-y: hidden;
        padding-left: 20px;
        padding-right: 40px;
    }

    .process-line {
        height: 2px;
        top: 48px; 
        left: 0;
        right: 20px; 
        z-index: 0;
    }

    .process-line::after {
        content: '';
        position: absolute;
        right: -10px;
        top: -4px;
        width: 0; 
        height: 0; 
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 10px solid var(--primary-color);   
    }

    .process-item {
        min-width: 120px;
    }

    .process-steps-container::-webkit-scrollbar {
        display: none;
    }
    .process-steps-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

/* ========================================
  PORTFOLIO  GALERIE
   ======================================== */

.object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.gallery-item .gallery-img {
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

video {
    outline: none;
}


.masonry-grid {
    column-count: 2;
    column-gap: 1rem; 
    width: 100%;
}

@media (min-width: 768px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
}

.gallery-img {
    transition: transform 0.3s ease;
    display: block;
}

.gallery-img:hover {
    transform: scale(1.03);
}


/* ========================================
   error
   ======================================== */
/* Chiffre d'arrière-plan géant */
.bg-watermark {
    font-size: 35vw;
    right: -5%;
    bottom: -5%;
    opacity: 0.03;
    user-select: none;
    z-index: -1;
}

@media (max-width: 767.98px) {
    .bg-watermark {
        font-size: 25vw;
        right: 0;
        bottom: 3%;
    }
}

.nav-link-custom:hover {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
    padding-left: 10px !important;
}