
    :root {
      --sm-black: #282828;
      --sm-dark: #484848;
      --sm-light: #efefef;
      --sm-cyan: #0e50cc;
      --sm-blue: #103266;
      --sm-white: #ffffff;
      --sm-text: #262626;
      --sm-muted: #606060;
      --sm-border: rgba(40, 40, 40, .12);
      --sm-shadow: 0 18px 45px rgba(40, 40, 40, .10);
    }

    * { box-sizing: border-box; }



    body {
      margin: 0;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--sm-text);
      background:
        radial-gradient(circle at 15% 12%, rgba(35, 175, 232, .10), transparent 26rem),
        linear-gradient(180deg, #f8f8f8 0%, var(--sm-light) 52%, #f8f8f8 100%);
      transition: background .3s ease, color .3s ease;
    }

    body.dark-theme {
      --sm-black: #f3f6ff;
      --sm-dark: #d6ddf2;
      --sm-light: #182033;
      --sm-cyan: #69a7ff;
      --sm-blue: #86b9ff;
      --sm-white: #121827;
      --sm-text: #eef3ff;
      --sm-muted: #aab6d3;
      --sm-border: rgba(255, 255, 255, .12);
      --sm-shadow: 0 18px 45px rgba(0, 0, 0, .34);
      background:
        radial-gradient(circle at 15% 12%, rgba(105, 167, 255, .15), transparent 26rem),
        linear-gradient(180deg, #0b1020 0%, #111827 52%, #0b1020 100%);
    }

    .logo {
      width: 100%;
      max-width: 200px;
    }

    .hide {
      display: none;
    }

    .projects-visible {
      animation: slideFadeProjects .7s cubic-bezier(.22, 1, .36, 1) both;
      will-change: opacity, transform;
    }

    @keyframes slideFadeProjects {
      from {
        opacity: 0;
        transform: translateY(35px) scale(.98);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

to {
        opacity: 1;
        transform: translateY(0);
      }
    

    .site-header {
      background: linear-gradient(90deg, #171717 0%, var(--sm-black) 100%);
      min-height: 86px;
      box-shadow: 0 8px 28px rgba(0,0,0,.18);
    }

    .navbar-brand-icon {
      color: var(--sm-cyan);
      font-size: 2rem;
      line-height: 1;
    }

    .navbar-brand strong {
      display: block;
      color: #fff;
      font-size: 1.35rem;
      line-height: 1.1;
    }

    .navbar-brand span {
      color: rgba(255,255,255,.78);
      font-size: .82rem;
    }

    .navbar-nav .nav-link {
      color: var(--sm-blue);
      font-weight: 700;
      font-size: 1.5rem;
      margin-inline: .55rem;
      padding-block: .75rem;
      border-bottom: 2px solid transparent;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
      color: var(--sm-cyan);
      border-bottom-color: var(--sm-cyan);
    }

    .navbar-dark {
      background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
      box-shadow: inset 0 -10px 15px -10px rgba(0, 0, 0, 0.4);
    }


    .theme-toggle {
      display: inline-flex;
      align-items: center;
      gap: .55rem;
      border: 1px solid var(--sm-border);
      border-radius: 999px;
      background: rgba(255,255,255,.78);
      color: #103266;
      font-weight: 800;
      padding: .72rem 1rem;
      box-shadow: 0 10px 24px rgba(40,40,40,.10);
      transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    }

    .theme-toggle:hover {
      transform: translateY(-2px);
      background: var(--sm-blue);
      color: #fff;
      border-color: var(--sm-blue);
    }

    .btn-outline-cyan {
      color: var(--sm-cyan);
      border-color: var(--sm-cyan);
      border-radius: .45rem;
      font-weight: 800;
      padding: .75rem 1.25rem;
    }

    .btn-outline-cyan:hover {
      background: var(--sm-cyan);
      color: #fff;
    }

    .btn-cyan {
      --bs-btn-bg: var(--sm-blue);
      --bs-btn-border-color: var(--sm-blue);
      --bs-btn-hover-bg: var(--sm-light);
      --bs-btn-hover-border-color: var(--sm-cyan);
      --bs-btn-color: #fff;
      --bs-btn-hover-color: var(--sm-blue);
      border-radius: .45rem;
      font-weight: 800;
      padding: .9rem 1.3rem;
      box-shadow: 0 12px 24px rgba(31, 154, 204, .24);
    }

    

    .btn-soft {
      background: rgba(255,255,255,.72);
      border: 1px solid var(--sm-border);
      border-radius: .45rem;
      color: var(--sm-black);
      font-weight: 800;
      padding: .9rem 1.3rem;
    }

.hero {
    min-height: 645px;
    position: relative;
    overflow: hidden;

    background-image: url("../assets/fondZ.png");
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.90) 50%,
            rgba(255,255,255,.25) 48%,
            rgba(255,255,255,0) 80%
        );

    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4.7rem 0 4rem;
}
    .eyebrow {
      letter-spacing: .55em;
      text-transform: uppercase;
      font-weight: 600;
      font-size: .82rem;
      color: var(--sm-black);
      margin-bottom: 1.3rem;
    }

  #competences {
    background-color: white;
    padding: 25px;
    margin: 25px;
    border-radius: 25px;
  }
    h1 {
      font-size: clamp(2.8rem, 5.2vw, 5.15rem);
      line-height: .98;
      letter-spacing: -.06em;
      font-weight: 900;
      max-width: 660px;
    }

    .text-cyan { color: var(--sm-blue); }

    .hero-lead {
      max-width: 520px;
      font-size: 1.2rem;
      line-height: 1.72;
      color: #333;
    }

    .section-block {
      padding: 3.8rem 0 0;
    }

    .section-icon {
      width: 64px;
      height: 64px;
      border-radius: 1rem;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      /* background: linear-gradient(to bottom, #303030 0%, #000000 100%); */
      border: 0px solid rgba(255,255,255,.85);
      color: var(--sm-blue);
      font-size: 1.75rem;
      box-shadow: 0 10px 24px rgba(40,40,40,.12);
    }

    .section-title {
      font-weight: 900;
      letter-spacing: -.04em;
      margin-bottom: 1rem;
      color: var(--sm-blue);
    }

    .about-text p {
      color: #303030;
      line-height: 1.55;
      margin-bottom: 1rem;
    }

    

    .service-panel {
      background: linear-gradient(to bottom, #103266 50%, #0e50cc 100%);
      color: #fff;
      border-radius: 1rem;
      padding: 2.25rem;
      box-shadow: var(--sm-shadow);
    }

    .service-item {
      display: grid;
      grid-template-columns: 70px 1fr;
      gap: 1rem;
      align-items: center;
      margin-bottom: 1.75rem;
    }

    .service-item:last-child { margin-bottom: 0; }

    .service-icon {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: 3px solid var(--sm-light);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.8rem;
    }

    .service-item h3 {
      font-size: 1.35rem;
      font-weight: 800;
      margin-bottom: .3rem;
    }

    .service-item p {
      color: rgba(255,255,255,.78);
      margin: 0;
      line-height: 1.45;
    }

    .skill-card {
      background:  rgba(255,255,255,.74); 
      /* border: 1px solid var(--sm-blue); */
      border-radius: .8rem;
      padding: 1.45rem;
      min-height: 245px;
      box-shadow: 0 16px 35px rgba(40,40,40,.08);
      /* box-shadow: inset 0 -10px 15px -10px rgba(0, 0, 0, 0.4); */
      height: 100%;
    }

    .skill-card .round-icon {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(to bottom, #103266 50%, #0e50cc 100%);
      color: white;
      font-size: 2rem;
      margin-bottom: 1rem;
      
    }

    .skill-card h3 {
      font-size: 1rem;
      font-weight: 900;
      margin-bottom: 1rem;
    }

    .skill-card li {
      margin-bottom: .45rem;
      color: #393939;
    }

    .skill-card li::marker { color: var(--sm-black); }

    .project-card {
      border: 0;
      background: transparent;
    }

    .project-thumb {
      height: 245px;
      border-radius: 25px;
      overflow: hidden;
      box-shadow: 0 10px 24px rgba(40,40,40,.12);
      background: #ddd;
      position: relative;
    }

    .project-thumb img,
    .visual-tile img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border: 5px solid transparent;
      border-radius: 25px;
    }

 .project-thumb img:hover {
  border: 5px solid white;
  box-shadow: inset 0 -15px 25px -5px rgba(0, 0, 0, 0.9);
}



    .project-card h3 {
      font-size: .98rem;
      font-weight: 900;
      margin: .85rem 0 .2rem;
    }

    .project-card p {
      font-size: .88rem;
      color: var(--sm-muted);
      margin: 0;
    }

    .visual-tile {
      height: 250px;
      border-radius: .75rem;
      overflow: hidden;
      background: rgba(255,255,255,.76);
      border: 1px solid var(--sm-border);
      box-shadow: 0 12px 28px rgba(40,40,40,.08);
    }

    .visual-tile.logo-tile img,
    .visual-tile.icons-tile img,
    .visual-tile.texture-tile img {
      object-fit: cover;
      padding: 0rem;
    }

    .stats-bar {
      /* background: linear-gradient(to bottom, #103266 50%, #0e50cc 100%); */
      background: white;
      color: var(--sm-blue);
      border-radius: .65rem;
      padding: 1.25rem 1.6rem;
      box-shadow: var(--sm-shadow);
      /* border: 1px solid var(--sm-blue); */
      
    }

    .stat-item {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    .stat-item i {
      color: var(--sm-blue);
      font-size: 2.4rem;
    }

    .stat-item strong {
      display: block;
      font-size: 1.1rem;
    }

    .stat-item span {
      color: var(--sm-blue);
      font-size: .9rem;
    }

    footer {
      background: var(--sm-blue);
      color: rgba(255,255,255,.75);
      padding: 1.3rem 0;
      margin-top: 1.5rem;
    }

    footer a { color: rgba(255,255,255,.78); text-decoration: none; }
    footer a:hover { color: var(--sm-cyan); }


    .mobile-bottom-nav {
      display: none;
    }

    body.dark-theme .navbar-dark {
      background: linear-gradient(to bottom, #151d31 0%, #0d1324 100%);
      box-shadow: inset 0 -10px 15px -10px rgba(0, 0, 0, 0.8);
    }

    body.dark-theme .navbar-nav .nav-link {
      color: #dce7ff;
    }

    body.dark-theme .navbar-nav .nav-link:hover,
    body.dark-theme .navbar-nav .nav-link.active {
      color: var(--sm-cyan);
    }

    body.dark-theme .theme-toggle {
      background: rgba(255,255,255,.08);
      color: #eef3ff;
      border-color: rgba(255,255,255,.18);
    }

    body.dark-theme .btn-secondary {
      --bs-btn-bg: #24314f;
      --bs-btn-border-color: #3d4d72;
      --bs-btn-hover-bg: var(--sm-blue);
      --bs-btn-hover-border-color: var(--sm-blue);
    }

    body.dark-theme .btn-soft,
    body.dark-theme .skill-card,
    body.dark-theme .visual-tile,
    body.dark-theme .stats-bar,
    body.dark-theme #competences {
      background: rgba(255,255,255,.07);
      border-color: rgba(255,255,255,.12);
      color: var(--sm-text);
    }

    body.dark-theme .btn-soft {
      color: var(--sm-text);
    }

    body.dark-theme .hero::after {
      background:
        linear-gradient(
          90deg,
          rgba(11,16,32,.98) 0%,
          rgba(11,16,32,.90) 50%,
          rgba(11,16,32,.45) 60%,
          rgba(11,16,32,.10) 86%
        );
    }

    body.dark-theme .eyebrow,
    body.dark-theme .hero-lead,
    body.dark-theme .about-text p,
    body.dark-theme .skill-card li,
    body.dark-theme .project-card p,
    body.dark-theme .stat-item span {
      color: var(--sm-muted);
    }

    body.dark-theme .service-panel,
    body.dark-theme .mobile-bottom-nav,
    body.dark-theme footer {
      background: linear-gradient(to bottom, #151d31 0%, #0d1324 100%);
    }

    body.dark-theme .project-thumb {
      background: #111827;
      box-shadow: 0 10px 24px rgba(0,0,0,.42);
    }


    @media (max-width: 991.98px) {

.hero {
    min-height: 645px;
    position: relative;
    overflow: hidden;
    

    background-image: url("../assets/fondZ.png");
    background-size: contain;
    background-position: center top 0px;    
    background-repeat: no-repeat;
    
    
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.90) 0%,
            rgba(255,255,255,.25) 0%,
            rgba(255,255,255,0) 0%
        );

    z-index: 0;
}



.hero-content {
  margin-top: 470px;
}


      .site-header { min-height: auto; }
      .navbar-nav .nav-link { margin-inline: 0; }
      /* .hero { min-height: auto; 
      } */
   

      /* .hero::after {
        background:
          linear-gradient(180deg, rgba(0,0,0,.32) 0%, rgba(255,255,255,.90) 5%);
      } */
      .hero-content { padding: 0rem 0; }
      .service-panel { margin-top: 1rem; }

      

    .navbar-collapse {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #303030 0%, #000000 100%);
    padding: 1.5rem;
    z-index: 1050;
    border-top: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 -5px 20px rgba(0,0,0,.4);
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-link {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .btn-outline-cyan {
    width: 100%;
    margin-top: 1rem;
  }

  
  .navbar-toggler {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    background: #23afe8;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
  }

  .navbar-toggler-icon {
    filter: brightness(0) invert(1);
  }

  #oo {
    margin: auto auto;
  }

  .container {
    padding: 15px;
  }

.logo {
	width: 100%;
	max-width: 200px;
}

  .navbar .container {
    display: flex;
    justify-content: center;
    position: relative;
  }

  /* .navbar-toggler {
    position: absolute;
    right: 0;
  } */

  .navbar-brand {
    margin: 0 auto;
  }

 


    }


/* Navigation mobile fixée en bas : remplace le menu burger */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 92px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1040;
  }

  .site-header .navbar {
    min-height: 72px;
  }

  .navbar-toggler {
    display: none !important;
  }

  .navbar-collapse {
    display: none !important;
  }

  .navbar .container {
    justify-content: center;
  }

  .navbar-brand {
    margin: 0 auto;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .25rem;
    padding: .55rem;
    background: linear-gradient(to bottom, #103266 50%, #0e50cc 100%);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 1.15rem;
    box-shadow: 0 -10px 30px rgba(0,0,0,.34);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav__item {
    min-width: 0;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .18rem;
    padding: .55rem .2rem;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    border-radius: .85rem;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.1;
    transition: color .2s ease, background .2s ease, transform .2s ease;
  }

  .mobile-bottom-nav__item i {
    color: white;
    font-size: 1.25rem;
    line-height: 1;
  }

  .mobile-bottom-nav__item:hover,
  .mobile-bottom-nav__item:focus,
  .mobile-bottom-nav__item.active {
    color: #fff;
    background: rgba(35,175,232,.16);
    transform: translateY(-2px);
  }

  .mobile-bottom-nav__item.active i {
    color: #fff;
  }
}


@media (max-width: 991.98px) {
  body.dark-theme .hero::after {
    background: linear-gradient(180deg, rgba(11,16,32,.08) 0%, rgba(11,16,32,.86) 62%, rgba(11,16,32,1) 100%);
  }
}


@media (max-width: 580px) {
  
  .hero-content {
  margin-top: 270px;
}
.mobile-bottom-nav__item {
  color: white!important;
}

}



@media (max-width: 380px) {
  .mobile-bottom-nav {
    left: 8px;
    right: 8px;
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-content {
  margin-top: 270px;
}

.mobile-bottom-nav__item {
  color: white!important;
}

  body {
    padding-bottom: 148px;
  }
}
