:root {
    --accent: #047f58;
    /* --accent: #ff6b2b; */
    --accent-light: #53af67;
    --accent-soft: #029b602e;
    
    /* --accent-light: #ff8f5c; */
    --bg: #040331;
    --surface: #f4f4f5;
    --text: #fff;
    --muted: #71717a;
    --border: #e4e4e7;
    --dark: #09090b;
    --dark-surface: #18181b;
    --dark-border: #27272a;

    --bg-surface: #303031b3;
}

.text-primary{
    color: var(--accent) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "PT Sans", sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background: var(--accent) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

body.dark {
    background: var(--dark);
    color: #f4f4f5;
}

body.dark .site-header {
    background: rgba(9, 9, 11, 0.9);
}

body.dark .surface {
    background: rgba(24, 24, 27, 0.55);
}

body.dark .surface-solid {
    background: #18181b;
    border-color: #27272a;
}

body.dark .text-main {
    color: #fff !important;
}

body.dark .text-muted-custom {
    color: #a1a1aa !important;
}

body.dark .border-custom {
    border-color: #27272a !important;
}

body.dark .btn-outline-custom {
    border-color: #3f3f46;
    color: #d4d4d8;
}

body.dark .btn-outline-custom:hover {
    background: #18181b;
}


.custom-tooltip {
    --bs-tooltip-bg: var(--accent) ;
}



.container-custom {
    max-width: 1152px;
    margin: auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: 0.3s;
}

.site-header.scrolled {
    /* background: rgba(255, 255, 255, 0.9); */
    background: var(--bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.navbar-brand-custom {
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.nav-link-custom {
    position: relative;
    color: #71717a;
    font-size: 0.875rem;
}

.nav-link-custom:after,
.underline-link:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: 0.22s;
}

.nav-link-custom:hover:after,
.nav-link-custom.active:after,
.underline-link:hover:after {
    width: 100%;
}

.nav-link-custom.active {
    font-weight: 500;
    color: var(--text);
}

body.dark .nav-link-custom {
    color: #a1a1aa;
}

body.dark .nav-link-custom.active {
    color: #fff;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.icon-btn:hover {
    background: #f4f4f5;
}

body.dark .icon-btn {
    border-color: #27272a;
}

.mobile-nav {
    border-top: 1px solid var(--border);
    background: #fff;
}

body.dark .mobile-nav {
    background: #09090b;
    border-color: #18181b;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}

.hero:before,
.hero:after,
.glow:before,
.cta-glow:before {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero:before {
    width: 384px;
    height: 384px;
    right: -20px;
    top: 25%;
    background: rgba(255, 107, 43, 0.1);
}

.hero:after {
    width: 256px;
    height: 256px;
    left: -30px;
    bottom: 25%;
    background: rgba(60, 218, 73, 0.226);
}

.section-pad {
    padding: 96px 0;
}

.surface {
    background: var(--bg-surface);
}

.photo-frame {
    overflow: hidden;
    background: #d4d4d8;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.display-title {
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

.delay-3 {
    transition-delay: 0.24s;
}

.delay-4 {
    transition-delay: 0.32s;
}

.pill {
    border-radius: 999px;
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer:after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: rgba(255, 255, 255, 0.18);
    transform: skewX(-20deg);
    transition: left 0.4s;
}

.shimmer:hover:after {
    left: 160%;
}

.card-custom {
    border: 2px solid #7b7878;
    border-radius: 14px;
    transition: transform 0.28s, border-color 0.18s;
    background: #212529;
}

.card-custom:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

body.dark .card-custom {
    background: #18181b;
    border-color: #27272a;
}

.dark-card {
    background: #18181b;
    border-color: #27272a;
    color: #fff;
}

.dark-card:hover {
    border-color: var(--accent);
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #e4e4e7;
    color: #52525b;
}

.tag-accent {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.stat-number {
    font-family: "PT Sans", sans-serif;
    font-weight: 700;
    font-size: 1.875rem;
}

.small-label {
    font-size: 0.75rem;
    color: #71717a;
}

.form-control-custom {
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.form-control-custom::placeholder {
    color: #52525b;
}

.form-control-custom:focus {
    background: #27272a;
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 0.15rem rgba(255, 107, 43, 0.12);
}

.site-footer {
    border-top: 1px solid var(--border);
}

body.dark .site-footer {
    border-color: #18181b;
}

.noise:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

@media (max-width: 767.98px) {
    .section-pad {
        padding: 72px 0;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .display-title.hero-title {
        font-size: 3.2rem;
    }

    .site-header.scrolled {
        backdrop-filter: blur(12px);
    }
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 99px;
}

.star {
    width: 16px;
    height: 16px;
    fill: var(--accent);
    display: block;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.contact-box,
.cta-box {
    background: #18181b;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.contact-box:before,
.contact-box:after,
.cta-box:before,
.cta-box:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

.contact-box:before,
.cta-box:before {
    width: 256px;
    height: 256px;
    right: 0;
    top: 0;
    background: rgba(43, 255, 114, 0.068);
}

.contact-box:after,
.cta-box:after {
    width: 160px;
    height: 160px;
    left: 0;
    bottom: 0;
    background: rgba(43, 255, 114, 0.123);
}

.contact-inner,
.cta-inner {
    position: relative;
    z-index: 1;
}

.contact-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-link:hover .contact-link-icon {
    background: rgba(255, 107, 43, 0.2);
}

.contact-link:hover {
    color: #fff !important;
}

.skill {
    font-size: 0.875rem;
    background: #fff;
    border: 1px solid #d4d4d8;
    color: #3f3f46;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
}

body.dark .skill {
    background: #27272a;
    border-color: #3f3f46;
    color: #d4d4d8;
}

.skill:hover {
    border-color: var(--accent);
}

.blog-img {
    height: 176px;
}

.work-img-lg {
    height: 320px;
}

.work-img-sm {
    height: 192px;
}

#work article img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#work article img:hover{
    transform: scale(1.1); /* Agrandit l'image de 20% */
  }

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0e9;
    color: var(--accent);
}

.dark-card .service-icon {
    background: #27272a;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.btn-accent {
    background: var(--accent);
    border: 0;
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-light);
    color: #fff;
}

.btn-dark-custom {
    background: #18181b;
    color: #fff;
    border: 0;
}

body.dark .btn-dark-custom {
    background: #fff;
    color: #18181b;
}

.btn-outline-custom {
    border: 1px solid #d4d4d8;
    color: #52525b;
    background: transparent;
}

.btn-outline-custom:hover {
    background: #fafafa;
}

body.dark .btn-outline-custom {
    border-color: #3f3f46;
    color: #d4d4d8;
}

.mobile-menu {
    display: none;
}

.mobile-menu.show {
    display: block;
}

body.dark .surface .card-custom {
    background: #18181b;
}

.contact-label {
    font-size: 0.75rem;
    color: #a1a1aa;
    font-weight: 500;
    margin-bottom: 6px;
}

.link-muted {
    color: #71717a;
}

.link-muted:hover {
    color: var(--accent);
}

.project-filter {
    font-size: 0.875rem;
    padding: 0.375rem 1rem;
    border: 1px solid #d4d4d8;
    border-radius: 999px;
    background: #fff;
    color: #52525b;
    transition: 0.18s;
}

.project-filter:hover,
.project-filter.active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
}

body.dark .project-filter {
    background: #18181b;
    border-color: #3f3f46;
    color: #a1a1aa;
}

body.dark .project-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.project-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    transition: 0.3s;
}

body.dark .project-card {
    background: #18181b;
    border-color: #27272a;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.project-photo {
    height: 208px;
    overflow: hidden;
    background: #e4e4e7;
}

.project-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-item {
    transition:
        opacity 0.25s,
        transform 0.25s;
}

.project-item.hidden {
    display: none;
}

.top-spacer {
    padding-top: 144px;
}

#tools .tool-item {
    margin-bottom: 15px;
    margin-right: 5px;
    cursor: pointer;

}
#tools img.tool-item {
    width: 11%;
    height: 11%;
    margin-left: 17px;
}

#tools .tool-item:hover{
    /* color: var(--accent); */
    transform: scale(1.1);
}

#tools img.tool-item:hover {
}



/* background effect  */
canvas {
    display: block;
    width: 100%;
    height: 100vh;
    position: absolute;
    z-index: -1;
}

/* animated button  */
.button-with-icon {
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    font-family: "Istok Web", sans-serif;
    letter-spacing: 1px;
    padding: 0 12px;
    text-align: center;
    /* width: 120px; */
    height: 34px;
    font-size: 14px;
    font-weight: normal;
    border-radius: 10px;
    outline: none;
    user-select: none;
    cursor: pointer;
    transform: translateY(0px);
    position: relative;
    box-shadow:
      inset 0 30px 30px -15px rgba(255, 255, 255, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.3),
      inset 0 1px 20px rgba(0, 0, 0, 0),
      0 3px 0 var(--accent),
      0 3px 2px rgba(0, 0, 0, 0.2),
      0 5px 10px rgba(0, 0, 0, 0.1),
      0 10px 20px rgba(0, 0, 0, 0.1);
    background: var(--accent);
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
    transition: 150ms all ease-in-out;
  }

.button-with-icon i.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
  
  .button-with-icon .icon {
    margin-right: 8px;
    width: 24px;
    height: 24px;
    transition: all 0.5s ease-in-out;
  }
  
  .button-with-icon:active {
    transform: translateY(3px);
    box-shadow:
      inset 0 16px 2px -15px rgba(0, 0, 0, 0),
      inset 0 0 0 1px rgba(255, 255, 255, 0.15),
      inset 0 1px 20px rgba(0, 0, 0, 0.1),
      0 0 0 var(--accent),
      0 0 0 2px rgba(255, 255, 255, 0.5),
      0 0 0 rgba(0, 0, 0, 0),
      0 0 0 rgba(0, 0, 0, 0);
  }
  
  .button-with-icon:hover .text {
    transform: translateX(80px);
  }
  .button-with-icon:hover .icon {
    transform: translate(23px);
  }
  
  .text {
    transition: all 0.5s ease-in-out;
  }

  #background-effect{
    height: 200vh;
  }