/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
    --background-color: #06060a; /* Background color for the entire website, including individual sections */
    --default-color: #f5f7fb; /* Default color used for the majority of the text content across the entire website */
    --heading-color: #ffffff; /* Color for headings, subheadings and title throughout the website */
    --accent-color: rgba(161, 41, 245, 0.84); /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #0f1017; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #050508; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
    --muted-color: color-mix(in srgb, var(--default-color), transparent 15%);
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
    --nav-color: #f8f9fb;  /* The default color of the main navmenu links */
    --nav-hover-color: #a129f5; /* Applied to main navmenu links when they are hovered over or active */
    --nav-mobile-background-color: #10111a; /* Used as the background color for mobile navigation menu */
    --nav-dropdown-background-color: #131520; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
    --nav-dropdown-color: #f5f7fb; /* Used for navigation links of the dropdown items in the navigation menu. */
    --nav-dropdown-hover-color: #a129f5; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #1a1a1a;
  --surface-color: #343434;
}

.dark-background {
  --background-color: rgba(15, 15, 15, 0.975);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #292929f9;
  --contrast-color: #000000;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/* Global scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent-color), #ffffff 25%) color-mix(in srgb, var(--surface-color), transparent 15%);
}

body::-webkit-scrollbar {
    width: 12px;
    height: 10px;
}

body::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--surface-color), transparent 15%);
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ffffff 15%));
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--surface-color), transparent 20%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

body::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--accent-color), #ffffff 10%);
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  margin-top: 1rem; /* Ajuste l'espacement si nécessaire */
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

html {
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
}

body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

body > .main {
    flex: 1 0 auto;
    width: 100%;
}

body > .footer {
    margin-top: auto;
}

/* Ensure the portfolio page keeps the footer anchored to the bottom */

.main {
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 40px;
}

p,
.section-lead {
    color: var(--muted-color);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent-color), #ffffff 20%);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(161, 41, 245, 0.16);
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ffffff 30%));
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 1100;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.surface-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    color: var(--default-color);
    backdrop-filter: blur(12px);
}

.interactive-card {
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.interactive-card:hover,
.interactive-card:focus-within {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--accent-color), #ffffff 15%);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ffffff 18%));
    border: 1px solid color-mix(in srgb, var(--accent-color), #ffffff 12%);
    color: #fff;
    padding-inline: 1.4rem;
    box-shadow: 0 10px 35px rgba(161, 41, 245, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background: color-mix(in srgb, var(--accent-color), #ffffff 10%);
    border-color: color-mix(in srgb, var(--accent-color), #ffffff 20%);
    color: #fff;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding-inline: 1.4rem;
    background: rgba(255, 255, 255, 0.04);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-link {
    color: var(--default-color);
    font-weight: 600;
}

.btn-link:hover,
.btn-link:focus {
    color: color-mix(in srgb, var(--accent-color), #ffffff 20%);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(0, 0, 0, 0);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(0, 0, 0, 0.8);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
      content: "";
      position: absolute;
      height: 3px;
      bottom: -10px;
      left: 0;
      right: 0;
      background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ffffff 20%));
      visibility: hidden;
      width: 100%;
      opacity: 0;
      transform: scaleX(0.35);
      transform-origin: center;
      transition: transform 0.3s ease, opacity 0.3s ease;
      border-radius: 999px;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before,
  .navmenu .active:focus:before {
      visibility: visible;
      opacity: 1;
      transform: scaleX(1);
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
body.mobile-nav-active {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .mobile-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: var(--nav-color);
        font-size: 28px;
        line-height: 1;
        margin-right: 10px;
        border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0)) padding-box,
        linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 100%), color-mix(in srgb, var(--default-color), transparent 100%)) border-box;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        cursor: pointer;
        transition: color 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.25s ease;
    }

    .mobile-nav-toggle .burger-icon {
        position: relative;
        display: inline-block;
        width: 26px;
        height: 18px;
    }

    .mobile-nav-toggle .burger-icon span {
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: rgba(255, 255, 255, 0.63);
        border-radius: 999px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, width 0.3s ease, filter 0.3s ease;
    }

    .mobile-nav-toggle .burger-icon span:nth-child(1) {
        top: 0;
    }

    .mobile-nav-toggle .burger-icon span:nth-child(2) {
        top: 8px;
    }

    .mobile-nav-toggle .burger-icon span:nth-child(3) {
        top: 16px;
    }

    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:focus-visible {
        outline: none;
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        border-color: color-mix(in srgb, var(--accent-color), transparent 40%);
    }

    .mobile-nav-toggle:hover .burger-icon span,
    .mobile-nav-toggle:focus-visible .burger-icon span {
        width: 100%;
        filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent-color), transparent 35%));
    }

    .mobile-nav-toggle.is-active .burger-icon span:nth-child(1) {
        top: 8px;
        transform: rotate(45deg);
    }

    .mobile-nav-toggle.is-active .burger-icon span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-toggle.is-active .burger-icon span:nth-child(3) {
        top: 8px;
        transform: rotate(-45deg);
    }

    .mobile-nav-toggle.is-active {
        background: color-mix(in srgb, var(--accent-color), transparent 70%);
        border-color: color-mix(in srgb, var(--accent-color), transparent 25%);
        box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    }

    .mobile-nav-toggle.is-active .burger-icon span {
        background: #fff;
        filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent-color), transparent 20%));
    }

  .navmenu {
    padding: 0;
      position: relative;
    z-index: 9997;
  }

  .navmenu ul {
      display: none;
      list-style: none;
      position: fixed;
      top: 64px;
      right: 20px;
      bottom: auto;
      left: 20px;
      padding: 10px 0;
      margin: 0;
      height: auto;
      max-height: calc(100vh - 88px);
      border-radius: 6px;
      background-color: var(--nav-mobile-background-color);
      border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
      box-shadow: none;
      overflow-y: auto;
      transition: transform 0.3s ease, opacity 0.3s ease;
      z-index: 9998;
      backdrop-filter: blur(12px);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
  }

    .navmenu ul.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navmenu>ul[data-visible="true"],
    .navmenu>ul.is-open {
        display: flex;
        flex-direction: column;
        gap: 6px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
      background: radial-gradient(circle at 10% 20%, rgba(161, 41, 245, 0.12), transparent 40%),
      radial-gradient(circle at 90% 10%, rgba(86, 170, 255, 0.12), transparent 42%),
      rgba(5, 6, 9, 0.92);
    transition: 0.3s;
      z-index: 9998;
  }

  .mobile-nav-active .navmenu>ul {
      display: flex;
      flex-direction: column;
      gap: 6px;
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }

    .navmenu>ul[data-visible="true"] {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header .container-xl {
        padding-inline: 18px;
    }

    .navmenu ul {
        top: 70px;
        right: 16px;
        bottom: auto;
        left: 16px;
        max-height: calc(100vh - 100px);
    }

    .navmenu li + li a,
    .navmenu li + li a:focus {
        border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    }
}

@media (max-width: 576px) {
    .header {
        padding: 12px 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
    }

    .header .logo img {
        max-height: 28px;
    }

    .navmenu a,
    .navmenu a:focus {
        font-size: 16px;
    }

    .navmenu ul {
        padding: 8px 0;
        border-radius: 14px;
    }

    .hero {
        padding: 110px 0 70px;
        text-align: center;
    }

    .hero .row {
        row-gap: 28px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 6vw + 1.1rem, 2.4rem);
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-actions {
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-chips {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero .social-links {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 7px 10px;
    }

    .hero .social-links a {
        width: 38px;
        height: 38px;
    }

    .latest-projects {
        padding: 120px 0 110px;
    }

    .latest-projects-grid {
        grid-auto-columns: minmax(240px, 1fr);
    }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
    color: var(--default-color);
    background-color: color-mix(in srgb, var(--surface-color), transparent 2%);
    font-size: 14px;
    text-align: center;
    padding: 28px 0;
    position: relative;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: 0 -8px 20px color-mix(in srgb, var(--background-color), transparent 86%);
    overflow: hidden;
}

.footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}

.footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 30px 0;
}

.footer .social-links {
  margin: 0 0 30px 0;
}

.footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  line-height: 1;
  margin: 0 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  text-decoration: none;
}

.footer .footer-meta {
    border-top: 0;
    padding-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.footer .copyright {
    padding: 0;
}

.footer .credits {
    font-size: 13px;
    padding: 0;
}

@media (max-width: 767.98px) {
    .footer {
        padding: 22px 0;
    }

    .footer .footer-meta {
        grid-template-columns: 1fr;
        align-items: flex-start;
        text-align: left;
    }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 160px 0 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
    padding: 80px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  position: relative;
}

.section-title h2::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: var(--accent-color);
  margin: 4px 10px;
}

.section-title div {
  color: var(--heading-color);
  margin: 0;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

.image-container {
    position: relative;
    display: inline-block;
}

.image-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%; /* Ajustez la hauteur du fondu */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    z-index: 2; /* S'assure que le dégradé est au-dessus de l'image */
    pointer-events: none; /* Permet de ne pas gêner les interactions avec l'image */
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 150px 0 120px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.gradient-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(139, 24, 210, 0.3), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.gradient-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
}

.hero .container {
  position: relative;
    z-index: 2;
}

.section-transition {
    position: relative;
    height: 260px;
    margin-top: -140px;
    z-index: 2;
    isolation: isolate;
}

.section-transition::before,
.section-transition::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0 0 48px 48px;
}

.section-transition::before {
    background:
            radial-gradient(140% 90% at 20% 20%, rgba(109, 72, 255, 0.32), transparent 58%),
            radial-gradient(140% 90% at 80% 12%, rgba(255, 144, 252, 0.28), transparent 60%),
            linear-gradient(180deg, rgba(6, 6, 10, 0) 0%, rgba(10, 9, 15, 0.85) 62%, #0b0812 100%);
    mask-image: radial-gradient(170% 100% at 50% 5%, #000 62%, transparent 100%);
    -webkit-mask-image: radial-gradient(170% 100% at 50% 5%, #000 62%, transparent 100%);
    opacity: 0.95;
}

.section-transition::after {
    background:
            radial-gradient(180% 120% at 50% 16%, rgba(255, 255, 255, 0.25), transparent 62%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    filter: blur(22px);
    opacity: 0.25;
    transform: translateY(-12px);
}

.fade-to-projects {
    overflow: hidden;
}

.fade-to-projects::before {
    background:
            radial-gradient(130% 130% at 18% 8%, rgba(122, 84, 255, 0.24), transparent 65%),
            radial-gradient(130% 130% at 80% 12%, rgba(247, 146, 255, 0.22), transparent 65%),
            radial-gradient(160% 110% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 65%),
            linear-gradient(180deg, rgba(14, 10, 22, 0) 0%, rgba(11, 8, 18, 0.82) 52%, #0b0812 100%);
    mask-image: radial-gradient(140% 80% at 50% 15%, #000 62%, transparent 100%);
    -webkit-mask-image: radial-gradient(140% 80% at 50% 15%, #000 62%, transparent 100%);
    filter: drop-shadow(0 -18px 44px rgba(0, 0, 0, 0.32));
}

.fade-to-projects::after {
    background:
            radial-gradient(200% 160% at 50% 18%, rgba(255, 255, 255, 0.22), transparent 65%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    opacity: 0.25;
    transform: translateY(-18px);
    filter: blur(26px);
    mix-blend-mode: screen;
}

.latest-projects {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 120% at 50% -10%, rgba(255, 255, 255, 0.04), transparent 55%);
}

.latest-projects::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.latest-projects .container {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-kicker {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--default-color), transparent 25%);
    font-size: 14px;
}

.hero-title {
  margin: 0;
    font-size: clamp(2.5rem, 3vw + 1.6rem, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-lead {
    margin: 10px 0 0;
    font-size: 20px;
    color: color-mix(in srgb, var(--default-color), transparent 10%);
    line-height: 1.6;
}

.hero-actions {
    margin-top: 10px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
}

.hero-visual {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.hero-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(139, 24, 210, 0.16);
    border: 1px solid rgba(139, 24, 210, 0.4);
    padding: 8px 12px;
    border-radius: 12px;
  font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-visual img {
    width: 100%;
    display: block;
    border-radius: 14px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hero-stats div {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-label {
    margin: 0;
    font-size: 13px;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.stat-value {
    margin: 4px 0 0;
    font-weight: 700;
    font-size: 20px;
}

.hero .social-links {
    margin-top: 12px;
}

.hero .social-links a {
    background-color: color-mix(in srgb, var(--default-color), transparent 86%);
    color: var(--default-color);
    font-size: 16px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: 0.3s;
}

.hero .social-links a:hover {
    background-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(139, 24, 210, 0.35);
}

@media (max-width: 992px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-visual {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-lead {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 40px;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 13px;
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 2vw + 1.2rem, 2.8rem);
    margin-bottom: 10px;
}

.section-lead {
    color: color-mix(in srgb, var(--default-color), transparent 10%);
    font-size: 18px;
}

.latest-projects {
    padding: 160px 0 140px;
    margin-top: -120px;
    position: relative;
    overflow: visible;
    background: linear-gradient(180deg, #0b0812 0%, #0d0a16 50%, #090814 100%);
}

.latest-projects::before,
.latest-projects::after {
    content: "";
    position: absolute;
    inset: auto -12% 12% -12%;
    height: 40%;
    background: radial-gradient(circle at 24% 20%, rgba(109, 72, 255, 0.24), transparent 50%), radial-gradient(circle at 82% 0%, rgba(184, 56, 255, 0.2), transparent 42%);
    filter: blur(38px);
    z-index: 0;
}

.latest-projects::after {
    inset: 8% -10% auto -10%;
    height: 34%;
    opacity: 0.7;
    background:
            radial-gradient(100% 120% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    filter: blur(18px);
}

.latest-projects .container {
    position: relative;
    z-index: 1;
}

.latest-projects-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.latest-project-card-wrapper {
    height: 100%;
}

.latest-project-card {
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 65%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
    background: linear-gradient(180deg, rgba(33, 20, 55, 0.95) 0%, rgba(16, 10, 28, 0.95) 100%);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    color: #f0f1f6;
}

.latest-project-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--accent-color), white 12%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.latest-project-card .pill {
    border-radius: 999px;
    padding: 6px 12px;
    background: color-mix(in srgb, var(--accent-color), transparent 80%);
    color: var(--accent-color);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 9;
    isolation: isolate;
    border-radius: 18px;
}

.project-media img {
    transition: transform 0.6s ease;
    filter: saturate(1.05) brightness(0.92);
}

.latest-project-card:hover .project-media img {
    transform: scale(1.04);
}

.project-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(161, 41, 245, 0.92), rgba(108, 71, 255, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #f6f0ff;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(9, 7, 15, 0) 0%, rgba(12, 9, 20, 0.38) 55%, rgba(12, 9, 20, 0.94) 100%);
    color: #f8f9ff;
    opacity: 1;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 1;
}

.latest-project-card:hover .project-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(12, 9, 20, 0.12) 0%, rgba(20, 12, 34, 0.52) 55%, rgba(12, 9, 20, 0.97) 100%);
}

.project-tagline {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: color-mix(in srgb, #ffffff, transparent 4%);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.project-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, #ffffff, transparent 10%);
}

.project-meta .bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

@media (max-width: 767px) {
    .latest-projects-grid {
        grid-auto-flow: column;
        grid-auto-columns: minmax(280px, 1fr);
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        scroll-padding: 16px;
        gap: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .latest-project-card-wrapper {
        scroll-snap-align: start;
    }

    .latest-projects-grid::-webkit-scrollbar {
        height: 8px;
    }

    .latest-projects-grid::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--accent-color), transparent 35%);
        border-radius: 999px;
    }

    .latest-projects-grid::-webkit-scrollbar-track {
        background: color-mix(in srgb, var(--surface-color), transparent 25%);
    }
}

.latest-project-card h3 {
    color: #f9f9ff;
}

.latest-project-card p {
    color: color-mix(in srgb, #f9f9ff, transparent 18%);
}

.latest-project-card .card-body .text-body-secondary,
.latest-project-card .card-body .text-muted {
    color: rgb(159 83 216) !important;
}

.latest-project-card .btn.btn-primary {
    background: linear-gradient(135deg, #b05bff, #7b3ce6);
    border: none;
    color: #f8f5ff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.latest-project-card .btn.btn-primary:hover {
    background: linear-gradient(135deg, #c787ff, #8f58ff);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: color-mix(in srgb, var(--default-color), transparent 35%);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-title {
    font-size: 20px;
    margin: 0;
}

.project-summary {
    margin: 0;
    color: color-mix(in srgb, var(--default-color), transparent 12%);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-weight: 600;
    color: var(--accent-color);
}

.project-link .bi {
    font-size: 16px;
}

.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
}

.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: var(--accent-color);
  line-height: 0;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats i {
  background-color: var(--surface-color);
  color: var(--accent-color);
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 50px;
  border: 2px solid var(--background-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  background-color: var(--surface-color);
  margin-top: -27px;
  padding: 30px 30px 25px 30px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 0px 2px 35px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  z-index: 0;
}

.stats .stats-item span {
  font-size: 36px;
  display: block;
  font-weight: 700;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Interests Section
--------------------------------------------------------------*/
.interests .features-item {
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  padding: 20px;
  transition: 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  position: relative;
}

.interests .features-item i {
  font-size: 32px;
  padding-right: 10px;
  line-height: 0;
}

.interests .features-item h3 {
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 16px;
}

.interests .features-item h3 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.interests .features-item:hover {
  border-color: var(--accent-color);
}

.interests .features-item:hover h3 a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  min-height: 320px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50%;
  margin: -40px 0 0 40px;
  position: relative;
  z-index: 2;
  border: 6px solid var(--background-color);
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 45px;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0 0 0 45px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 15px 0 15px;
  padding: 20px 20px 60px 20px;
  background: var(--surface-color);
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--background-color);
  opacity: 1;
  border: 1px solid var(--accent-color);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
    text-align: left;
    padding: 48px 32px;
  transition: all ease-in-out 0.3s;
  height: 100%;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.services .service-item .icon {
    margin: 0 0 10px 0;
    width: 64px;
    height: 64px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    transform-style: preserve-3d;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 28px;
  transition: ease-in-out 0.3s;
}

.services .service-item .icon::before {
  position: absolute;
  content: "";
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: color-mix(in srgb, var(--accent-color), transparent 80%);
  border-radius: 5px;
  transition: all 0.3s ease-out 0s;
  transform: translateZ(-1px);
}

.services .service-item h3 {
    font-weight: 700;
    margin: 0;
    font-size: 20px;
}

.services .service-item p {
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 0;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.services .service-item:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
    box-shadow: 0 18px 38px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item:hover .icon::before {
  background: color-mix(in srgb, var(--background-color), transparent 70%);
}

.services .service-item:hover h3,
.services .service-item:hover p {
  color: var(--contrast-color);
}

@media (max-width: 767px) {
    .services .service-item {
        padding: 32px 24px;
        border-radius: 14px;
    }

    .cta-section .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/

.service-details .services-list {
    background-color: var(--surface-color);
    padding: 10px 30px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    margin-bottom: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.service-details .services-list a {
    display: block;
    line-height: 1.2;
    padding: 10px 0 10px 15px;
    border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
    margin: 18px 0;
    color: color-mix(in srgb, var(--default-color), transparent 15%);
    transition: 0.3s;
    font-weight: 600;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio.section {
    padding-bottom: 70px;
}

.portfolio-page .portfolio.section {
    padding-bottom: 40px;
}

.portfolio .isotope-container {
    position: relative;
    min-height: 260px;
}

.portfolio-page .portfolio.section {
    overflow: visible;
}
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  margin: 0 10px;
  line-height: 1;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info {
  opacity: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  transition: all ease-in-out 0.3s;
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 14px;
  padding: 5px 10px;
  font-weight: 400;
  color: #ffffff;
  display: inline-block;
  background-color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info p {
  position: absolute;
  bottom: 10px;
  text-align: center;
  display: inline-block;
  left: 0;
  right: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  position: absolute;
  left: calc(50% - 40px);
  font-size: 26px;
  top: calc(50% - 14px);
  color: #fff;
  transition: 0.3s;
  line-height: 1.2;
}

.portfolio .portfolio-content .portfolio-info .preview-link:hover,
.portfolio .portfolio-content .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info .details-link {
  left: 50%;
  font-size: 34px;
  line-height: 0;
}

.portfolio .portfolio-content:hover .portfolio-info {
  opacity: 1;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

.portfolio-page .portfolio .portfolio-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-page .portfolio .portfolio-content .portfolio-info {
    position: static;
    inset: auto;
    opacity: 1;
    background: transparent;
    padding: 16px;
    gap: 12px;
    display: flex;
    flex-direction: column;
}

.portfolio-page .portfolio .portfolio-content .portfolio-info p {
    position: static;
    text-align: left;
    margin-bottom: 0;
}

.portfolio-page .portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio-page .portfolio .portfolio-content .portfolio-info .details-link {
    position: static;
    font-size: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
    line-height: 1.4;
}

.portfolio-page .portfolio .portfolio-content .portfolio-info .details-link {
    line-height: 1.2;
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

@media (min-width: 992px) {
    .service-details .services-list {
        position: sticky;
        top: 120px;
    }
}

.cta-section {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 15%), color-mix(in srgb, #0a0a0a, transparent 65%));
    color: var(--contrast-color);
    border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

.cta-section h2 {
    color: var(--contrast-color);
}

.cta-section p {
    color: color-mix(in srgb, var(--contrast-color), transparent 20%);
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

[data-project-suggestion] .suggestion-card {
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    max-width: 1100px;
    margin: 0 auto;
}

[data-project-suggestion] .suggestion-thumb {
    background: color-mix(in srgb, var(--default-color), transparent 90%);
    min-height: 180px;
}

@media (min-width: 768px) {
    [data-project-suggestion] .suggestion-thumb {
        min-height: 220px;
    }
}

@media (min-width: 1200px) {
    [data-project-suggestion] .suggestion-thumb {
        min-height: 260px;
    }
}

[data-project-suggestion] .badge {
    padding: 0.35rem 0.6rem;
    font-weight: 600;
}

/*--------------------------------------------------------------
# Case Study Section
--------------------------------------------------------------*/
.case-study {
    position: relative;
    padding-top: 20px;
}

.case-study .section-header {
    text-align: left;
    max-width: 900px;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.case-card {
    padding: 24px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-card h3 {
    font-size: 20px;
    margin-bottom: 0;
}

.case-card p {
    margin-bottom: 0;
    color: var(--muted-color);
}

.case-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.case-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    color: var(--muted-color);
}

.case-card li i {
    color: var(--accent-color);
    margin-top: 2px;
}

.case-cta {
    margin-top: 32px;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 65%);
    background: linear-gradient(140deg, rgba(161, 41, 245, 0.18), rgba(16, 10, 28, 0.92));
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.case-cta h3 {
    margin-bottom: 10px;
}

.case-cta p {
    margin-bottom: 0;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

@media (max-width: 767px) {
    .case-cta {
        padding: 22px;
    }
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 20px 30px;
}

.contact .info-item .icon {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  width: 56px;
  height: 56px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  border-radius: 50%;
  margin-right: 15px;
}

.contact .info-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item .social-links a {
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  margin: 4px 6px 0 0;
  transition: 0.3s;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.contact .info-item .social-links a:hover {
  color: var(--accent-color);
}

.contact .php-email-form {
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-top: 30px;
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.portfolio-page .main {
    padding-top: 120px;
    padding-bottom: 120px;
    background: color-mix(in srgb, var(--background-color), transparent 10%);
}

@media (max-width: 991.98px) {
    .portfolio-page .main {
        padding-top: 100px;
        padding-bottom: 80px;
    }
}

.portfolio-toolbar {
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    background: color-mix(in srgb, var(--surface-color), transparent 8%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    gap: 10px;
}

.portfolio-toolbar,
.portfolio-toolbar label,
.portfolio-toolbar .text-muted,
.portfolio-toolbar [data-result-count],
.portfolio-toolbar [data-page-indicator] {
    color: #ffffff;
}

.portfolio-toolbar .text-muted[data-result-count],
.portfolio-toolbar label[for="page-size"] {
    color: rgb(159 83 216) !important;
}

.portfolio-toolbar .portfolio-filters {
    gap: 8px;
    margin-bottom: 0;
    padding: 8px 0 0;
    flex-wrap: wrap;
}

.portfolio-toolbar .portfolio-filters li {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface-color), transparent 10%);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
    color: color-mix(in srgb, var(--default-color), transparent 10%);
    font-weight: 600;
    letter-spacing: 0.1px;
    transition: all 0.2s ease;
}

.portfolio-toolbar .portfolio-filters li.filter-active {
    background: color-mix(in srgb, var(--accent-color), transparent 10%);
    color: var(--contrast-color);
    border-color: color-mix(in srgb, var(--accent-color), transparent 0%);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-color), transparent 45%);
}

.portfolio-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, #ffffff, transparent 40%);
    background: transparent;
}

.portfolio-search .form-control {
    border: 0;
    box-shadow: none;
    padding-left: 0;
    color: #ffffff;
    background: transparent;
}

.portfolio-search i {
    color: #ffffff;
}

.portfolio-search .form-control::placeholder {
    color: #ffffff;
    opacity: 0.88;
}

.surface-select {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    min-width: 90px;
}

.surface-select:focus {
    border-color: color-mix(in srgb, var(--accent-color), #ffffff 10%);
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--accent-color), transparent 75%);
}

.surface-select option {
    color: #0f1115;
}

.portfolio-thumbnail {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
    background: color-mix(in srgb, var(--background-color), transparent 15%);
}


.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-color), transparent 80%);
    color: color-mix(in srgb, var(--accent-color), #ffffff 10%);
    font-weight: 600;
    font-size: 12px;
    text-transform: capitalize;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    border: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.tag-chip:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent-color), #ffffff 15%);
    outline-offset: 2px;
}

.tag-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.portfolio-info {
    padding: 16px 4px 4px;
}

.portfolio-info h4 {
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.18rem);
    font-weight: 700;
    line-height: 1.3;
}

.portfolio-info p {
    color: var(--muted-color);
    font-size: clamp(0.95rem, 0.93rem + 0.2vw, 1rem);
    line-height: 1.5;
}

.portfolio-info .preview-link,
.portfolio-info .details-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-decoration: none;
    color: var(--default-color);
}

.portfolio-info .preview-link:hover,
.portfolio-info .details-link:hover {
    color: var(--accent-color);
}

@media (max-width: 575.98px) {
    .portfolio-toolbar {
        padding: 20px;
    }

    .portfolio-toolbar .portfolio-filters li {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1199px) {
    /* Quand le menu mobile est actif, on force l'ul à être visible */
    body.mobile-nav-active #navmenu > ul {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* On s’assure que les <li> et <a> prennent bien de la place */
    #navmenu li {
        display: block;
    }

    #navmenu a {
        display: flex;
        align-items: center;
        padding: 12px 20px;
        font-size: 16px;
        color: var(--nav-dropdown-color);
    }
}
