@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

html, body {
      margin: 0;
      min-height: 100vh;
      background: #000;
      color: #fff;
      font-family: 'Inter', sans-serif;
    }

    :root {
    --base: clamp(14px, 2vw, 18px);
    --h1: clamp(28px, 5vw, 48px);
    --h2: clamp(20px, 3vw, 32px);
    --h3: clamp(16px, 2.5vw, 24px);
    --h4: clamp(14px, 2vw, 20px);
}

  body {
      font-size: var(--base);
  }

    :root {
      /* hauteur approximative de la nav fixe pour d搂caler le contenu */
      --nav-height-desktop: 130px;
      --nav-height-mobile: 90px;
    }

    body {
      display: flex;
      flex-direction: column;
      padding-top: var(--nav-height-desktop);
    }

    /* barre de navigation (élément fixe) */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: transparent;
      backdrop-filter: blur(2px);
      background: rgba(0, 0, 0, 0.9);

      }

    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 30px 30px;
      max-width: 1400px;
      margin: 0 auto;
      width: 100%;
      box-sizing: border-box;
    }

    .logo img {
      height: 70px;
      width: auto;
    }

    .nav-menu {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      gap: 20px;
      align-items: center;
    }

    .nav-link {
      color: #fff;
      text-decoration: none;
      font-size: var(--base);
      font-weight: 800;      
      transition: color 0.3s ease;
      padding: 8px 12px;
    }

    .nav-link:hover {
      color: #f5fc14;
    }

    .nav-link.active {
      border-bottom: 2px solid #f5fc14;
      padding-bottom: 6px;
      border-radius: 25%;
      position: relative;
    }

    .nav-link.active::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 15px;
      background: linear-gradient(to top, rgba(245, 252, 20, 0.1) 0%, transparent 100%);
      pointer-events: none;
      border-radius: 25%;
    }

    /* Menu déroulant */
    .nav-item {
      position: relative;
    }

    .nav-item > .nav-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .nav-item > .nav-link::after {
      content: '';
      display: inline-block;
      width: 0;
      height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid #fff;
      transition: transform 0.3s ease, border-top-color 0.3s ease;
      flex-shrink: 0;
    }

    .nav-item:hover > .nav-link::after {
      transform: rotate(180deg);
      border-top-color: #f5fc14;
    }

    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      background: rgba(0, 0, 0, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 8px;
      min-width: 220px;
      padding: 10px 0;
      margin-top: 10px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
      z-index: 1000;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-item:hover .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .dropdown-menu a {
      display: block;
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      padding: 12px 20px;
      font-size: 14px;
      font-weight: 500;
      transition: background 0.2s ease, color 0.2s ease;
    }

    .dropdown-menu a:hover {
      background: rgba(245, 252, 20, 0.1);
      color: #f5fc14;
    }

    /* Menu Hamburger */
    .hamburger {
      display: none;
      flex-direction: column;
      cursor: pointer;
      z-index: 101;
    }

    .hamburger span {
      width: 25px;
      height: 3px;
      background-color: #fff;
      margin: 4px 0;
      transition: all 0.3s ease;
      border-radius: 2px;
    }

    /*Animation qui transforme le hamburger en croix */
    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(10px, 10px);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(6px, -6px);
    }

    h1{
      color: white;
      font-size: var(--h1);
      text-align: center;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .nav-container {
        padding: 20px 20px;
      }

      body {
        padding-top: var(--nav-height-mobile);
      }

      .hamburger {
        display: flex;
      }

      .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        background-color: rgba(0, 0, 0, 0.98);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
      }

      .nav-menu.active {
        opacity: 1;
        visibility: visible;
      }

      .nav-menu li {
        width: auto;
        text-align: center;
        transform: translateY(20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
      }

      .nav-menu.active li {
        transform: translateY(0);
        opacity: 1;
      }

      /* Animation échelonnée pour chaque élément du menu */
      .nav-menu.active li:nth-child(1) {
        transition-delay: 0.1s;
      }

      .nav-menu.active li:nth-child(2) {
        transition-delay: 0.2s;
      }

      .nav-menu.active li:nth-child(3) {
        transition-delay: 0.3s;
      }

      .nav-menu.active li:nth-child(4) {
        transition-delay: 0.4s;
      }

      .nav-menu.active li:nth-child(5) {
        transition-delay: 0.5s;
      }

      .nav-link {
        display: block;
        padding: 15px 30px;
        font-size: var(--h3);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        border: none;
      }

      .logo img {
        height: 40px;
      }
    }

    @media (max-width: 480px) {
      .nav-container {
        padding: 15px 15px;
      }

      .logo img {
        height: 35px;
      }

    }

    /* Canvas pour l'arrière plan dynamique en Three.js */
    #space {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
    }

    /*------------------ Footer------------------- */
    .footer {
      background: transparent;
      backdrop-filter: blur(2px);
      padding: 40px 30px;
      position: relative;
      z-index: 10;
      margin-top: auto;
    }

    /* Première ligne du footer */
    .footer-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1400px;
      margin: 0 auto;
      gap: 40px;
      padding: 0 30px;
      margin-bottom: 30px;
    }

    .footer-top-left {
      flex-shrink: 0;
    }

    .footer-logo img {
      height: 50px;
      width: auto;
    }

    .footer-top-center {
      flex: 1;
    }

    .footer-nav {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      gap: 30px;
      justify-content: center;
    }

    .footer-nav a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      font-size: var(--base);
      font-weight: 400;
      transition: color 0.3s ease;
    }

    .footer-nav a:hover {
      color: #f5fc14;
    }

    .footer-top-right {
      display: flex;
      gap: 25px;
      align-items: center;
      flex-shrink: 0;
    }

    .social-link {
      color: #fff;
      transition: color 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0.8;
    }

    .social-link:hover {
      color: #f5fc14;
      opacity: 1;
    }

    .social-link svg {
      width: 28px;
      height: 28px;
      stroke: currentColor;
      stroke-width: 1.5;
      fill: none;
    }
 /* pour mettre les svg en blanc */
    .social-link img {
      width: 20px;
      height: 20px;
      filter: brightness(0) invert(1);
    }
    

    /* Deuxième ligne du footer */
    .footer-bottom {
      display: flex;
      justify-content: center;
      align-items: center;
      max-width: 1400px;
      margin: 0 auto;
      gap: 20px;
      flex-wrap: wrap;
    }

    .footer-copyright {
      margin: 0;
      font-size: 10px;
      color: rgba(255, 255, 255, 0.6);
      font-weight: 400;
    }

    .footer-legal-links {
      font-size: 10px;
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      gap: 30px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .footer-legal-links a {
      color: rgba(255, 255, 255, 0.6);
      text-decoration: none;
      font-size: 12px;
      font-weight: 400;
      transition: color 0.3s ease;
    }

    .footer-legal-links a:hover {
      color: #f5fc14;
    }

    /* Footer Responsive */
    @media (max-width: 768px) {
      .footer {
        padding: 30px 20px;
      }

      .footer-top {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
        align-items: center;
      }

      .footer-top-left {
        display: flex;
        justify-content: center;
      }

      .footer-top-center {
        width: 100%;
      }

      .footer-top-right {
        justify-content: center;
      }

      .footer-nav {
        flex-direction: column;
        gap: 15px;
        align-items: center;
      }

      .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: center;
      }

      .footer-copyright {
        text-align: center;
        white-space: normal;
      }

      .footer-legal-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
      }
    }

    @media (max-width: 480px) {
      .footer {
        padding: 20px 15px;
      }

      .footer-top {
        align-items: center;
      }

      .footer-top-left {
        display: flex;
        justify-content: center;
      }

      .footer-top-center {
        width: 100%;
      }

      .footer-top-right {
        justify-content: center;
      }

      .footer-logo img {
        height: 35px;
      }

      .footer-nav {
        gap: 15px;
        align-items: center;
      }

      .footer-nav a {
        font-size: 13px;
      }

      .footer-bottom {
        align-items: center;
      }

      .footer-copyright {
        font-size: 12px;
        text-align: center;
      }

      .footer-legal-links {
        align-items: center;
      }

      .footer-legal-links a {
        font-size: 12px;
      }

      .social-link svg {
        width: 22px;
        height: 22px;
      }
    }

 
