      :root {

        --bg: #080a12;

        --bg-2: #0a0f22;

        --text: #eef2ff;

        --muted: #a9b1d8;

        --primary: #8a6bff;

        --primary-2: #50e4ff;

        --accent: #00ffc6;

        --card: #0c102180;

        --radius: 18px;

        --ring: 0 0 0 1px #ffffff1f inset, 0 0 32px #8a6bff40 inset;

        --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);



      }



      :root.light {

        --bg: #f7f8ff;

        --bg-2: #edf0ff;

        --text: #0b0e1a;

        --muted: #475072;

        --card: #ffffffc4;

        --ring: 0 0 0 1px #00000010 inset, 0 0 18px #8a6bff20 inset;

        --shadow: 0 10px 28px rgba(24, 33, 77, 0.12);

      }

      * {

        box-sizing: border-box;

      }

      html,

      body {

        height: 100%;

      }

      body {

        margin: 0;

        color: var(--text);

        background: var(--bg);

        background-attachment: fixed;

        background-size: cover;

        font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,

          "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",

          "Segoe UI Emoji", sans-serif;

        line-height: 1.6;

        overflow-x: hidden;

      }



      body::before {

        content: "";

        position: fixed;

        inset: 0;

        background: radial-gradient(

            ellipse at 30% 20%,

            #6e00ff55,

            transparent 60%

          ),

          radial-gradient(ellipse at 80% 20%, #00c6ff44, transparent 60%),

          radial-gradient(ellipse at 50% 80%, #8a6bff44, transparent 60%);

        background-blend-mode: screen;

        opacity: 0.3;

        z-index: -2;

        animation: float 60s linear infinite;

        pointer-events: none;

      }



      @keyframes float {

        0% {

          transform: translateY(0) scale(1);

        }

        50% {

          transform: translateY(-20px) scale(1.02);

        }

        100% {

          transform: translateY(0) scale(1);

        }

      }



.nav {

  position: fixed;

  top: 14px;

  left: 0;

  right: 0;

  z-index: 999;

  display: flex;

  justify-content: center;

  pointer-events: none;

}

.nav .wrap {

  pointer-events: auto;

  width: min(1100px, calc(100% - 28px));

  padding: 10px 14px;

  align-items: center;

  gap: 14px;

  display: flex;

  border-radius: 999px;

  background: linear-gradient(180deg, #0b0f2055, #080b1815);

  border: 1px solid #ffffff22;

  -webkit-backdrop-filter: blur(14px) saturate(140%);

  backdrop-filter: blur(14px) saturate(140%);

  box-shadow: var(--shadow);

  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .2s ease;

}



.nav.stuck .wrap{

  background: linear-gradient(180deg, #0b0f20cc, #080b18cc);

  border-color: #ffffff33;

  box-shadow: 0 14px 34px rgba(0,0,0,0.35);

}



      .brand {

        display: flex;

        align-items: center;

        gap: 10px;

        font-weight: 900;

        letter-spacing: 0.3px;

      }

      .brand .logo {

        width: 34px;

        height: 34px;

        border-radius: 10px;

        background: conic-gradient(

          from 200deg,

          var(--primary),

          var(--primary-2),

          var(--accent),

          var(--primary)

        );

        box-shadow: 0 0 0 2px #ffffff15 inset, 0 10px 24px #7b5cff55;

      }

      .logo-img {

        width: 40px;

        height: 45px;

        border-radius: 10px;

        object-fit: cover;

        box-shadow: 0 0 0 2px #ffffff15 inset, 0 10px 24px #7b5cff55;

      }



      .nav a {

        color: var(--text);

        text-decoration: none;

        opacity: 0.9;

        font-weight: 700;

      }

      .nav ul {

        margin-left: auto;

        display: flex;

        gap: 18px;

        list-style: none;

        padding: 0;

      }

      .btn {

        appearance: none;

        border: 0;

        cursor: pointer;

        border-radius: 12px;

        padding: 10px 16px;

        font-weight: 800;

        color: #fff;

        background: linear-gradient(135deg, var(--primary), #a187ff);

        box-shadow: 0 12px 26px #7b5cff66;

        transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;

      }

      .btn:hover {

        transform: translateY(-1px);

        box-shadow: 0 14px 30px #7b5cff88;

      }

      .ghost {

        background: transparent;

        color: var(--text);

        border: 1px solid #ffffff2a;

        box-shadow: none;

      }





      section {

        background: transparent !important;

        transition: opacity 0.6s ease-out;

        padding: 90px 18px;

        z-index: 1;

        position: relative;

      }

      .container {

        max-width: 1100px;

        margin: auto;

      }

      section::before {

        content: none;

      }



      .hero {

        display: grid;

        grid-template-columns: 1.1fr 0.9fr;

        gap: 36px;

        align-items: center;

      }

      .title {

        font-family: "Space Grotesk", Inter, sans-serif;

        font-weight: 900;

        font-size: clamp(36px, 5.1vw, 70px);

        line-height: 1.03;

        letter-spacing: 0.2px;

        text-shadow: 0 14px 44px #0008, 0 2px 10px #0008;

      }

      .hero p {

        font-size: 1.12rem;

        color: var(--muted);

        margin-top: 14px;

      }


      .hero .cta {

        margin-top: 22px;

        display: flex;

        gap: 12px;

        flex-wrap: wrap;

      }

      .chip {

        display: inline-flex;

        align-items: center;

        gap: 8px;

        padding: 8px 12px;

        border-radius: 999px;

        font-weight: 800;

        font-size: 0.85rem;

        background: linear-gradient(180deg, #ffffff24, #00000024);

        border: 1px solid #ffffff28;

        backdrop-filter: blur(10px);

      }



      .glass {

        position: relative;

        background: var(--card);

        border-radius: var(--radius);

        border: 1px solid #ffffff26;

        box-shadow: var(--shadow);

        backdrop-filter: blur(14px) saturate(150%);

      }

      .gradient-border {

        position: relative;

        isolation: isolate;

      }

      .gradient-border::before {

        content: "";

        position: absolute;

        inset: 0;

        border-radius: inherit;

        padding: 1px;

        background: linear-gradient(

          135deg,

          #8a6bff88,

          #50e4ff66,

          #00ffc64d,

          #8a6bff88

        );

        -webkit-mask: linear-gradient(#000 0 0) content-box,

          linear-gradient(#000 0 0);

        -webkit-mask-composite: xor;

        mask-composite: exclude;

        opacity: 0.75;

        pointer-events: none;

      }



      .grid {

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 20px;

      }

      .card {

        padding: 20px;

        position: relative;

        overflow: hidden;

      }

      .card .icon {

        font-size: 30px;

      }

      .card h3 {

        margin: 14px 0 6px;

        font-size: 1.15rem;

      }

      .card p {

        color: var(--muted);

        margin: 0;

      }

      .card::after {

        content: "";

        position: absolute;

        inset: -2px;

        border-radius: inherit;

        pointer-events: none;

        background: radial-gradient(

            120px 120px at var(--mx, 70%) var(--my, 20%),

            #a37bff44,

            transparent 45%

          ),

          radial-gradient(

            220px 220px at calc(100% - 20px) calc(100% - 20px),

            #00fff04a,

            transparent 50%

          );

      }



      .projects .grid {

        grid-template-columns: repeat(2, 1fr);

      }

      .project {

        display: flex;

        flex-direction: column;

        min-height: 420px;

        overflow: hidden;

      }

      .thumb {

        aspect-ratio: 16/9;

        display: grid;

        place-items: center;

        color: #fff;

        font-size: 46px;

        background: radial-gradient(

            300px 180px at 15% 30%,

            #7b5cff44,

            transparent 60%

          ),

          radial-gradient(280px 180px at 80% 20%, #00ffc64b, transparent 60%),

          linear-gradient(180deg, #0f1220, #0f1220);

        border-bottom: 1px solid #ffffff22;

      }

      .body {

        padding: 20px;

        display: flex;

        flex-direction: column;

        gap: 8px;

        flex: 1;

      }

      .body p {

        color: var(--muted);

        margin: 0;

      }

      .tags {

        display: flex;

        gap: 10px;

        flex-wrap: wrap;

        margin-top: auto;

      }

      .tag {

        font-size: 0.8rem;

        padding: 6px 10px;

        border-radius: 999px;

        border: 1px solid #ffffff25;

        color: var(--muted);

      }

      .actions {

        padding: 16px 20px 20px;

        border-top: 1px solid #ffffff22;

        display: flex;

        justify-content: flex-end;

      }

      .timeline {

        position: relative;

        margin-top: 10px;

        padding-left: 22px;

      }

      .timeline::before {

        content: "";

        position: absolute;

        left: 8px;

        top: 0;

        bottom: 0;

        width: 2px;

        background: linear-gradient(#7b5cff, transparent);

        opacity: 0.55;

      }

      .step {

        margin: 20px 0;

      }

      .dot {

        width: 14px;

        height: 14px;

        border-radius: 50%;

        background: conic-gradient(from 0deg, var(--primary), var(--primary-2));

        border: 2px solid #000;

        box-shadow: 0 0 20px #7b5cff88;

        position: absolute;

        left: 1px;

        transform: translateY(4px);

      }

      .step h4 {

        margin: 0 0 6px;

      }

      .step p {

        margin: 0;

        color: var(--muted);

      }



      form {

        display: grid;

        gap: 14px;

      }

      input,

      textarea {

        width: 100%;

        padding: 14px 16px;

        color: var(--text);

        background: #ffffff08;

        border: 1px solid #ffffff25;

        border-radius: 12px;

        font: inherit;

        outline: none;

        transition: border 0.15s, box-shadow 0.15s, background 0.15s;

      }

      input:focus,

      textarea:focus {

        border-color: #9f8cff;

        box-shadow: 0 0 0 4px #7b5cff30 inset;

      }

      textarea {

        min-height: 140px;

        resize: vertical;

      }

      .notice {

        font-size: 0.92rem;

        color: var(--muted);

      }

      footer {

        padding: 40px 18px 70px;

        color: var(--muted);

        text-align: center;

      }



      .segmented {

        display: none;

        margin-bottom: 14px;

        padding: 6px;

        border-radius: 999px;

        background: linear-gradient(180deg, #ffffff20, #00000024);

        border: 1px solid #ffffff28;

        backdrop-filter: blur(10px);

      }

      .segmented button {

        flex: 1;

        border: 0;

        padding: 10px 14px;

        border-radius: 999px;

        color: var(--text);

        background: transparent;

        font-weight: 800;

        cursor: pointer;

      }

      .segmented button.active {

        background: linear-gradient(135deg, var(--primary), #a187ff);

        box-shadow: 0 10px 22px #7b5cff66;

      }



      .center {

        text-align: center;

      }

      .mt-16 {

        margin-top: 16px;

      }

      .mt-24 {

        margin-top: 24px;

      }

      .kbd {

        font-family: ui-monospace, Menlo, Consolas, monospace;

        background: #ffffff10;

        padding: 0.2rem 0.45rem;

        border-radius: 6px;

        border: 1px solid #ffffff20;

      }



      @media (max-width: 980px) {

        .hero {

          grid-template-columns: 1fr;

          text-align: center;

        }

        .hero .cta {

          justify-content: center;

        }

        .grid {

          grid-template-columns: 1fr 1fr;

        }

        .projects .grid {

          grid-template-columns: 1fr;

        }

      }

      @media (max-width: 640px) {

        .grid {

          grid-template-columns: 1fr;

        }

        .nav ul {

          display: none;

        }

        #about .grid-About {

          display: none;

        }

        #about .tabs {

          display: block;

        }

        .segmented {

          display: flex;

        }

      }

      @media (prefers-reduced-motion: reduce) {

        .reveal {

          opacity: 1 !important;

          transform: none !important;

        }

      }

      input,

      textarea {

        background: rgba(255, 255, 255, 0.03);

        color: var(--text);

      }



      .tag {

        background: rgba(255, 255, 255, 0.08);

        color: var(--text);

        font-weight: 600;

        transition: background 0.2s;

      }

      .tag:hover {

        background: var(--primary);

        color: #fff;

      }



      @media (max-width: 640px) {

        form input,

        form textarea {

          background: rgba(255, 255, 255, 0.1);

          padding: 16px;

          font-size: 1rem;

        }

      }

      .lightbox {

        position: fixed;

        inset: 0;

        background: rgba(0, 0, 0, 0.8);

        display: none;

        justify-content: center;

        align-items: center;

        z-index: 1000;

      }

      .lightbox-inner {

        position: relative;

        max-width: 90vw;

        max-height: 90vh;

        display: flex;

        flex-direction: column;

        background: var(--bg-2);

        border-radius: 12px;

        box-shadow: 0 0 60px #000a;

        overflow: hidden;

      }

      .lightbox-inner img {

        width: 100%;

        max-height: 80vh;

        object-fit: contain;

        border-radius: 8px;

      }

      .close-btn {

        position: absolute;

        top: 12px;

        right: 14px;

        font-size: 32px;

        color: #fff;

        cursor: pointer;

      }

      .lightbox-controls {

        display: flex;

        justify-content: space-between;

        margin: 8px;

        gap: 12px;

      }

      .lightbox-controls button {

        background: var(--primary);

        border: none;

        color: white;

        font-size: 1.2rem;

        padding: 10px 16px;

        border-radius: 8px;

        cursor: pointer;

        transition: background 0.2s;

      }

      .lightbox-controls button:hover {

        background: var(--accent);

      }

      .reveal {

        opacity: 0;

        transform: translateY(30px);

        transition: all 0.8s ease-out;

      }



.only-mobile {

  display: none;

}



@media (max-width: 640px) {

  .only-mobile {

    display: block;

  }

  .grid-About {

    display: none !important;

  }
  
}

html{scroll-behavior:smooth}

:target{scroll-margin-top:90px}

.nav a.active{

  opacity:1; position:relative;

}

.nav a.active::after{

  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;

  background:linear-gradient(90deg,var(--primary),var(--primary-2));

  border-radius:2px;

}

.nav a:focus-visible{outline:3px solid #8a6bff66; outline-offset:4px; border-radius:8px}

.card[data-tilt]{will-change:transform; transform-style:preserve-3d}

.nav-spacer { height: 72px; }

.lightbox-inner {
  max-width: 95vw;
  max-height: 85vh;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
@media (max-width: 640px) {
  .lightbox-inner {
    width: 95%;
    height: auto;
  }
  .lightbox-controls button {
    font-size: 1rem;
    padding: 8px 12px;
  }
}

:root.light input,
:root.light textarea {
  background: #fff;
  color: #0b0e1a;
  border: 1px solid #ccc;
}
:root.light label {
  color: #333;
}

:root.light .thumb {
  background: radial-gradient(300px 180px at 15% 30%, #8a6bff22, transparent 60%),
              radial-gradient(280px 180px at 80% 20%, #00ffc622, transparent 60%),
              linear-gradient(180deg, #f0f2ff, #e6e9ff);
  color: #0b0e1a;
}

:root.light .tag {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
  border: 1px solid #ccc;
}
:root.light .tag:hover {
  background: var(--primary);
  color: #fff;
}

:root.light .nav .wrap {
  background: linear-gradient(180deg, #ffffffcc, #f5f5ffcc);
  border: 1px solid #ddd;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

:root.light .nav a {
  color: #0b0e1a;
  opacity: 0.85;
}

:root.light .nav a.active {
  color: var(--primary);
  opacity: 1;
}

:root.light .btn.ghost {
  border: 1px solid #ccc;
  color: #0b0e1a;
}

.gradient-text {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root.light .gradient-text {
  background: none;
  -webkit-text-fill-color: initial;
  color: #5a00d0; /* ou une teinte forte du dégradé */
  text-shadow: none;
}
.gradient-text {
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root.light .gradient-text {
  background: linear-gradient(90deg, #5a00d0, #0066ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  -webkit-text-stroke: 0.6px rgba(0,0,0,0.15);
  text-shadow: 0 0.4px 0.6px rgba(0,0,0,0.25);
}

@media (max-width: 640px) {
  :root.light .nav .wrap {
    background: linear-gradient(180deg, #ffffffcc, #f5f5ffcc);
    border: 1px solid #ddd;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  }

  :root.light .nav a {
    color: #0b0e1a;
    opacity: 0.9;
  }

  :root.light .nav a.active {
    color: var(--primary);
    opacity: 1;
  }

  :root.light .thumb {
    background: radial-gradient(200px 120px at 15% 30%, #8a6bff22, transparent 60%),
                radial-gradient(180px 120px at 80% 20%, #00ffc622, transparent 60%),
                linear-gradient(180deg, #f0f2ff, #e6e9ff);
    color: #0b0e1a;
  }

  :root.light .tag {
    background: rgba(0, 0, 0, 0.08);
    color: #333;
    border: 1px solid #ccc;
  }

  :root.light .tag:hover {
    background: var(--primary);
    color: #fff;
  }

  :root.light .btn.ghost {
    border: 1px solid #ccc;
    color: #0b0e1a;
  }
}


.actions .btn {
  width: auto;
  max-width: none;
  padding: 8px 18px;
  margin: auto;
  display: inline-block;
}

@media (max-width: 640px) {
  .actions .btn {
    width: auto;
    max-width: none;
    padding: 10px 18px;
    margin: auto;
    display: inline-block;
  }
}
