
    /* =========================================================
       VARIABLES CSS
       ========================================================= */
    :root {
      --bg: #0f1220;
      --bg-soft: #141832;
      --bg-hero: #0b0e1a;
      --text: #e9ecff;
      --muted: #aab1d6;
      --primary: #7c5cff;
      --primary-2: #a78bfa;
      --accent: #00e5ff;
      --accent-2: #00ffa2;
      --danger: #ff5c8a;
      --card: #1a1f3c;
      --card-2: #20274d;
      --glass: rgba(255,255,255,0.08);
      --stroke: rgba(255,255,255,0.12);
      --shadow: 0 10px 30px rgba(0,0,0,0.45);
      --radius: 16px;
    }

    /* =========================================================
       BASE
       ========================================================= */
    html, body {
      height: 100%;
      scroll-behavior: smooth;
      color-scheme: dark !important; 
      background: #0f1220 !important;
    }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Poppins', sans-serif;
      line-height: 1.6;
    }

    /* Conteneur global largeur */
    .container-max {
      max-width: 1200px;
    }

    /* =========================================================
       NAVBAR
       ========================================================= */
    .navbar {
      backdrop-filter: blur(10px);
      background: linear-gradient(180deg, rgba(10,12,22,0.85), rgba(10,12,22,0.65));
      border-bottom: 1px solid var(--stroke);
      transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
      color: #e9ecff;
    }
    .navbar.scrolled {
      background: linear-gradient(180deg, rgba(10,12,22,0.95), rgba(10,12,22,0.9));
      box-shadow: var(--shadow);
      transform: translateY(0);
      color: #e9ecff;
    }
    .navbar-brand {
      font-weight: 700;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      gap: 10px;
      color: white;
    }

    .navbar-brand:hover {
      color: white;


    }
    .nav-link {
      color: var(--muted) !important;
      font-weight: 500;
      margin: 0 6px;
      position: relative;
      transition: color 0.25s ease;
      color: #e9ecff;
    }
    .nav-link:hover {
      color: var(--text) !important;
      color: #e9ecff;
    }
    .nav-link::after {
      content: "";
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: -6px;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--bg));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.25s ease;
      color: #e9ecff;
    }
    .nav-link:hover::after {
      transform: scaleX(1);
      color: #e9ecff;
    }
    h4{color: #e9ecff;}


    /* =========================================================
       HERO SECTION
       ========================================================= */
    .hero {
      position: relative;
      min-height: 100vh;
      display: grid;
      place-items: center;
      background: radial-gradient(1200px 800px at 20% 20%, rgba(124,92,255,0.25) 0%, transparent 50%),
                  radial-gradient(800px 600px at 80% 30%, rgba(0,229,255,0.25) 0%, transparent 50%),
                  linear-gradient(180deg, var(--bg-hero), var(--bg));
      overflow: hidden;
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url('hero-noise.png'), radial-gradient(600px 300px at 50% 90%, rgba(0,255,162,0.12), transparent 60%);
      mix-blend-mode: screen;
      opacity: 0.25;
      pointer-events: none;
    }
    /* Particles canvas overlay */
    #particles {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }
    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      max-width: 1000px;
      padding: 40px;
    }
    .hero-avatar {
      width: 170px;
      height: 170px;
      object-fit: cover;
      border-radius: 999px;
      border: 3px solid rgba(255,255,255,0.25);
      box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 24px rgba(124,92,255,0.45);
      transition: transform 0.35s ease, box-shadow 0.35s ease;
    }
    .hero-avatar:hover {
      transform: translateY(-3px) scale(1.025);
      box-shadow: 0 18px 40px rgba(0,0,0,0.55), 0 0 36px rgba(0,229,255,0.55);
    }
    .hero-title {
      font-size: clamp(2.4rem, 6vw, 4.4rem);
      font-weight: 700;
      letter-spacing: 0.5px;
      margin-top: 22px;
      line-height: 1.3;
      background: linear-gradient(180deg, #fff, #cfd4ff);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      text-shadow: 0 0 18px rgba(255,255,255,0.15);
    }
    .hero-sub {
      color: var(--muted);
      font-size: clamp(1rem, 2.8vw, 1.25rem);
      margin: 14px 0 24px;
    }
    .hero-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      border-radius: 999px;
      padding: 12px 20px;
      color: #0b0e1a;
      background: linear-gradient(145deg, var(--accent), var(--primary));
      border: none;
      box-shadow: 0 12px 28px rgba(124,92,255,0.35);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .hero-cta:hover {
      transform: translateY(-3px);
      box-shadow: 0 18px 38px rgba(124,92,255,0.5);
    }
    .hero-cta .fa {
      color: #0b0e1a;
    }

    /* =========================================================
       SECTION HEADER
       ========================================================= */
    .section-header {
      text-align: center;
      margin-bottom: 30px;
      color: #e9ecff;

      
    }
    .section-title {
      font-weight: 700;
      font-size: clamp(1.8rem, 3.5vw, 2.4rem);
      letter-spacing: 0.3px;
    }
    .section-subtitle {
      color: #e9ecff;
      max-width: 800px;
      margin: 10px auto 0;
    }

    /* =========================================================
       COMPÉTENCES - CARDS GRID
       ========================================================= */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }
    @media (max-width: 992px) {
      .skills-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 576px) {
      .skills-grid { grid-template-columns: 1fr; }
    }
    .skill-card {
      background: linear-gradient(180deg, var(--card), var(--card-2));
      border: 1px solid var(--stroke);
      border-radius: var(--radius);
      padding: 20px;
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden;
      transform-style: preserve-3d;
      transition: transform 0.45s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    }
    .skill-card:hover {
      transform: translateY(-6px) scale(1.015);
      border-color: rgba(124,92,255,0.45);
      box-shadow: 0 18px 44px rgba(0,0,0,0.55), 0 0 22px rgba(124,92,255,0.35);
    }
    .skill-card::after {
      content: "";
      position: absolute;
      inset: -1px;
      background: radial-gradient(500px 180px at 20% 20%, rgba(124,92,255,0.25), transparent 60%),
                  radial-gradient(600px 220px at 80% 80%, rgba(0,229,255,0.2), transparent 60%);
      opacity: 0;
      transition: opacity 0.35s ease;
      pointer-events: none;
    }
    .skill-card:hover::after {
      opacity: 1;
    }
    .skill-icon {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      color: #fff;
      background: linear-gradient(145deg, var(--accent), var(--primary));
      box-shadow: 0 10px 22px rgba(124,92,255,0.3);
      transform: translateZ(18px);
    }
    .skill-title {
      margin-top: 10px;
      font-weight: 700;
      font-size: 1.1rem;
      color: #e9ecff;
    }
    .skill-desc {
      color: var(--muted);
      margin-top: 6px;
      font-size: 0.95rem;
    }
    /* Skill chip list */
    .chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 10px;
    }
    .chip {
      font-size: 0.8rem;
      color: var(--text);
      border: 1px solid var(--stroke);
      padding: 6px 10px;
      border-radius: 999px;
      background: var(--glass);
      transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
    }
    .chip:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      background: linear-gradient(180deg, rgba(124,92,255,0.15), rgba(0,229,255,0.15));
    }

    /* =========================================================
       PROFIL - TIMELINE + ABOUT
       ========================================================= */
    .about-card {
      background: linear-gradient(180deg, var(--card), var(--card-2));
      border: 1px solid var(--stroke);
      border-radius: var(--radius);
      padding: 24px;
      box-shadow: var(--shadow);
      color: #e9ecff;
    }
    .timeline {
      position: relative;
      margin: 20px 0;
      padding-left: 20px;
    }
    .timeline::before {
      content: "";
      position: absolute;
      left: 10px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: linear-gradient(180deg, var(--accent), var(--primary));
      box-shadow: 0 0 10px rgba(124,92,255,0.6);
    }
    .timeline-item {
      position: relative;
      margin: 18px 0 22px 26px;
    }
    .timeline-item::before {
      content: "";
      position: absolute;
      left: -26px;
      top: 6px;
      width: 12px;
      height: 12px;
      border-radius: 999px;
      background: linear-gradient(145deg, var(--accent-2), var(--primary));
      box-shadow: 0 0 12px rgba(0,229,255,0.5);
      animation: glow 3.5s infinite ease-in-out;
    }
    @keyframes glow {
      0% { box-shadow: 0 0 8px rgba(0,229,255,0.4); }
      50% { box-shadow: 0 0 18px rgba(124,92,255,0.6); }
      100% { box-shadow: 0 0 8px rgba(0,229,255,0.4); }
    }
    .timeline-title {
      font-weight: 700;
    }
    .timeline-meta {
      color: var(--muted);
      font-size: 0.9rem;
    }

    /* =========================================================
       PROJETS - GALLERY + SPLIDE
       ========================================================= */
    .project-card {
      background: linear-gradient(180deg, var(--card), var(--card-2));
      border: 1px solid var(--stroke);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
      color: #e9ecff;
    }
    .project-card:hover {
      transform: translateY(-6px);
      border-color: rgba(0,229,255,0.45);
      box-shadow: 0 20px 44px rgba(0,0,0,0.6);
    }
    .project-thumb {
      position: relative;
      aspect-ratio: 16/9;
      overflow: hidden;
    }
    .project-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.05);
      transition: transform 0.6s ease, filter 0.6s ease;
      filter: saturate(1.05) contrast(1.05);
    }
    .project-card:hover .project-thumb img {
      transform: scale(1.08);
      filter: saturate(1.15) contrast(1.1);
    }
    .project-meta {
      padding: 18px;
    }
    .project-title {
      font-weight: 700;
      font-size: 1.1rem;
    }
    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }
    .tag {
      padding: 4px 8px;
      font-size: 0.78rem;
      border: 1px solid var(--stroke);
      border-radius: 999px;
      background: var(--glass);
      color: var(--muted);
    }
    /* Project actions */
    .project-actions {
      display: flex;
      gap: 10px;
      margin-top: 14px;
    }
    .btn-soft {
      border: 1px solid var(--stroke);
      background: var(--glass);
      color: var(--text);
      border-radius: 10px;
      padding: 8px 12px;
      transition: all 0.25s ease;
    }
    .btn-soft:hover {
      border-color: var(--accent);
      background: linear-gradient(180deg, rgba(124,92,255,0.12), rgba(0,229,255,0.12));
      transform: translateY(-2px);
    }

    /* Splide theme tweak */
    .splide__arrow {
      background: linear-gradient(145deg, var(--accent), var(--primary));
      border: none;
      color: #0b0e1a;
      box-shadow: 0 8px 28px rgba(124,92,255,0.35);
    }
    .splide__arrow:hover {
      transform: translateY(-2px);
    }
    .splide__pagination__page.is-active {
      background: linear-gradient(145deg, var(--accent), var(--primary));
      box-shadow: 0 6px 16px rgba(124,92,255,0.35);
    }

    /* =========================================================
       CONTACT
       ========================================================= */
    .contact-card {
      background: linear-gradient(180deg, var(--card), var(--card-2));
      border: 1px solid var(--stroke);
      border-radius: var(--radius);
      padding: 24px;
      box-shadow: var(--shadow);
      color: #e9ecff;
    }
    .form-control, .form-select, textarea {
      background: rgba(255,255,255,0.06);
      color: var(--text);
      border: 1px solid var(--stroke);
      border-radius: 12px;
      transition: border-color 0.25s ease, box-shadow 0.25s ease;
    }
    .form-control:focus, .form-select:focus, textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 0.2rem rgba(0,229,255,0.25);
      background: rgba(255,255,255,0.08);
      color: var(--text);
    }
    .btn-gradient {
      background: linear-gradient(145deg, var(--accent), var(--primary));
      border: none;
      color: #0b0e1a;
      border-radius: 999px;
      padding: 12px 18px;
      box-shadow: 0 12px 28px rgba(124,92,255,0.35);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .btn-gradient:hover {
      transform: translateY(-2px);
      box-shadow: 0 18px 36px rgba(124,92,255,0.5);
    }
    /* Social links */
    .socials {
      display: flex;
      gap: 12px;
    }
    .social-link {
      width: 42px; height: 42px;
      display: grid; place-items: center;
      border-radius: 12px;
      border: 1px solid var(--stroke);
      background: var(--glass);
      color: var(--text);
      transition: all 0.25s ease;
    }
    .social-link:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      background: linear-gradient(145deg, var(--card), var(--card-2));
    }

    /* =========================================================
       FOOTER
       ========================================================= */
    footer {
      border-top: 1px solid var(--stroke);
      background: linear-gradient(180deg, var(--bg-soft), var(--bg));
      padding: 28px 0;
    }
    .typewriter {
      overflow: hidden;
      border-right: .15em solid var(--accent);
      white-space: nowrap;
      animation: typing 4s steps(40, end), blink 1s step-end infinite;
      display: inline-block;
      color: #e9ecff;
    }
    @keyframes typing { from { width: 0 } to { width: 100% } }
    @keyframes blink { 50% { border-color: transparent } }

    /* =========================================================
       UTILITAIRES
       ========================================================= */
    .divider {
      height: 1px; background: var(--stroke);
      margin: 24px 0;
    }
    .muted { color: var(--muted); }
    .glass {
      background: var(--glass); border: 1px solid var(--stroke);
      border-radius: var(--radius); padding: 16px;
    }
    .shadow { box-shadow: var(--shadow); }
    .blur-10 { backdrop-filter: blur(10px); }
    .radius { border-radius: var(--radius); }

    /* =========================================================
       ANIMATIONS MICRO-INTERACTIONS
       ========================================================= */
    .hover-lift {
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    .hover-lift:hover {
      transform: translateY(-4px);
      box-shadow: 0 18px 36px rgba(0,0,0,0.4);
    }
    .ripple {
      position: relative;
      overflow: hidden;
    }
    .ripple:after {
      content: "";
      position: absolute;
      width: 10px; height: 10px;
      background: rgba(255,255,255,0.5);
      display: block;
      border-radius: 50%;
      transform: scale(1);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.6s, opacity 1s;
    }
    .ripple:active:after {
      transform: scale(20);
      opacity: 0.25;
    }

    /* =========================================================
       MODALS & OVERLAYS
       ========================================================= */
    .modal-content {
      background: linear-gradient(180deg, var(--card), var(--card-2));
      border: 1px solid var(--stroke);
      color: #e9ecff;
      border-radius: 16px;
      box-shadow: var(--shadow);
    }
    .modal-content p {
              color: #e9ecff;

    }
    .modal-header {
      border-bottom: 1px solid var(--stroke);
      color: #e9ecff;
    }
    .modal-footer {
      border-top: 1px solid var(--stroke);
    }

    /* =========================================================
       MEDIA QUERIES
       ========================================================= */
    @media (max-width: 992px) {
      .hero-title { font-size: clamp(2.2rem, 7vw, 3.8rem); }
    }
    @media (max-width: 576px) {
      .hero-title { font-size: clamp(2rem, 8vw, 3.2rem); }
      .hero-avatar { width: 110px; height: 110px; }
    }
