/* ===============================
   VARIABLES DE COULEURS ET STYLES
   =============================== */
   :root {
    --bg: #0b0c10;
    --card: #121417;
    --accent: #66fcf1;
    --muted: #9ea3a6;
    --btn-bg: #45a29e;
    --btn-text: #0b0c10;
    --glass: rgba(255,255,255,0.03);
  }
  
  /* ===============================
     STYLE GÉNÉRAL
     =============================== */
  * {
    box-sizing: border-box;
  }
  
  body {
    font-family: Inter, "Segoe UI", system-ui, Arial, sans-serif;
    margin: 0;
    color: #e6eef0;
    background: linear-gradient(180deg, var(--bg), #060606 120%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
  }
  
  a {
    color: var(--accent);
    text-decoration: none;
  }
  
  a:hover {
    opacity: 0.8;
  }
  
  /* ===============================
     CONTAINERS ET STRUCTURE
     =============================== */
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
  }
  
  /* ===============================
     HEADER
     =============================== */
  .site-header {
    padding: 48px 0 24px;
  }
  
  .header-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .avatar {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(102,252,241,0.12);
  }
  
  .hero-text h1 {
    font-size: 2.6rem;
    margin: 0;
    color: var(--accent);
  }
  
  .subtitle {
    margin: 8px 0;
    color: var(--muted);
  }
  
  .lead {
    margin: 10px 0 16px;
    color: #d7f6f4;
  }
  
  /* ===============================
     BOUTONS
     =============================== */
  .btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
    box-shadow: 0 6px 18px rgba(4,20,24,0.6);
    transition: 0.2s ease;
  }
  
  .btn:hover {
    background-color: var(--accent);
    color: #000;
  }
  
  .btn.ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(102,252,241,0.08);
  }
  
  .header-cta {
    margin-top: 8px;
  }
  
  /* ===============================
     SECTIONS
     =============================== */
  .section {
    padding: 48px 0;
  }
  
  .section h2 {
    color: var(--accent);
    margin-bottom: 8px;
  }
  
  .muted {
    color: var(--muted);
  }
  
  /* ===============================
     À PROPOS
     =============================== */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .about-grid ul {
    list-style-type: disc;
    padding-left: 20px;
  }
  
  /* ===============================
     PROJETS
     =============================== */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
  }
  
  .project-card {
    background: linear-gradient(180deg, var(--card), rgba(255,255,255,0.02));
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(102,252,241,0.04);
    box-shadow: 0 6px 24px rgba(3,6,8,0.6);
    transition: 0.3s ease;
  }
  
  .project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(102,252,241,0.4);
  }
  
  .project-card h3 {
    margin: 0 0 8px;
    color: #bff7f4;
    font-size: 1.05rem;
  }
  
  .card-actions {
    margin-top: 12px;
  }
  
  /* ===============================
     DÉTAILS PROJETS
     =============================== */
  .project-details {
    margin-top: 28px;
  }
  
  .detail {
    background: var(--glass);
    padding: 16px;
    border-radius: 10px;
    margin-top: 14px;
    border: 1px solid rgba(255,255,255,0.02);
  }
  
  .detail h3 {
    color: var(--accent);
  }
  
  /* ===============================
     IMAGES PROJETS
     =============================== */
  .project-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 3em 0;
    text-align: center;
  }
  
  .project-media img {
    width: 55%;                 /* 🔹 Taille contrôlée ici */
    max-width: 550px;           /* 🔹 Taille max pour grand écran */
    min-width: 280px;           /* 🔹 Minimum pour petit écran */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(102, 252, 241, 0.25);
    margin-bottom: 0.8em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-media img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(102, 252, 241, 0.4);
  }
  
  .project-media figcaption {
    text-align: center;
    color: #b8c3c6;
    font-style: italic;
    font-size: 0.95em;
    max-width: 80%;
    margin-top: 0.4em;
  }
  
  /* ===============================
     FOOTER
     =============================== */
  .site-footer {
    padding: 18px 0;
    background: linear-gradient(180deg,#060606, #050505);
    color: var(--muted);
    margin-top: 36px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.02);
    font-size: 0.9rem;
  }
  
  /* ===============================
     RESPONSIVE DESIGN
     =============================== */
  @media (max-width: 800px) {
    .header-inner {
      flex-direction: column;
      align-items: flex-start;
    }
    .about-grid {
      grid-template-columns: 1fr;
    }
    .project-media img {
      width: 85%;
      max-width: none;
    }
  }
  
  /* ===============================
     FOND MATRIX
     =============================== */
    body:not(.splash) canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
  }
  
  header, main, footer {
    position: relative;
    z-index: 1;
  }
  
  /* légère ombre pour la lisibilité */
  body, h1, h2, h3, p, a, li {
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.6);
  }
  
/* ===============================
   STYLE CONSOLES OTP
   =============================== */
   .output {
    background: #0b0c10;
    color: #fff;                    /* texte binaire blanc */
    border-radius: 8px;
    padding: 12px;
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    margin-top: 1em;
    box-shadow: 0 0 12px rgba(102,252,241,0.1);
  }
  
  /* titres à l’intérieur des .output */
  .output::first-line {
    color: var(--accent);           /* le bleu du site pour les titres */
    font-weight: 600;
  }
  
  /* petits ajustements d’alignement */
  #otp-demo button {
    background: var(--btn-bg);
    color: var(--btn-text);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
    border: none;
    box-shadow: 0 6px 18px rgba(4,20,24,0.6);
    transition: 0.2s ease;
  }
  
  #otp-demo button:hover {
    background-color: var(--accent);
    color: #000;
  }
  
/* ===============================
   FORCE GPU & ANTI-CLAMP CHROME
   =============================== */
   #btn, .linkedin-btn {
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
  }
  
  /* ===============================
     BOUTON CV — version optimisée
     =============================== */
  #btn {
    padding: 12px 26px;
    text-transform: uppercase;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffffaa;
    background: transparent;
    border: 1px solid #ffffff55;
    cursor: pointer;
    transition: 0.35s ease;
    letter-spacing: 0.5px;
  }
  
  #btn:hover,
  #btn:focus {
    color: #000;
    background: #0ef;
    border-color: #0ef;
    text-shadow: none;
    box-shadow:
      0 0 12px #0ef,
      0 0 28px #0ef,
      0 0 45px #0ef;
    transform: scale(1.07) translateZ(0);
  }
  
  #btn:active {
    transform: scale(0.94) translateZ(0);
  }
  
  /* ===============================
     BOUTON LINKEDIN — optimisé
     =============================== */
  .linkedin-btn {
    background: transparent;
    position: relative;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 40px;
    border: 1px solid rgb(0, 119, 181);
    color: rgb(0, 119, 181);
    overflow: hidden;
    transition: 0.35s ease;
  }
  
  .linkedin-btn svg {
    height: 23px;
    width: 23px;
  }
  
  .linkedin-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background: rgb(0, 119, 181);
    transform: scale(0);
    transition: transform 0.45s ease-out;
    z-index: -1;
  }
  
  .linkedin-btn:hover {
    color: #fff;
    transform: scale(1.07) translateZ(0);
    border-color: rgb(0, 119, 181);
  }
  
  .linkedin-btn:hover::before {
    transform: scale(1);
  }
  

  /* ===============================
     ANTARES
     =============================== */

    .video-container {
      margin: 40px 0;
      display: flex;
      justify-content: center;
    }
    
    .video-container video {
      width: 70%;
      max-width: 820px;
      border-radius: 12px;
      box-shadow: 0 0 25px rgba(102,252,241,0.25);
      border: 1px solid rgba(255,255,255,0.05);
    }
    
    .video-container video:hover {
      box-shadow: 0 0 35px rgba(102,252,241,0.4);
      transform: scale(1.01);
      transition: 0.3s ease;
    }
    

    html,body{
      margin:0;
      padding:0;
    }
    
    .particules{
      width: 100%;
      height: 100vh;
      background: #111;
    }
    
    canvas{
      width: 100%;
      height: 100%;
    }
    
    
    
    .button {
      /* in scss with just one variable i can change opacity with rgba(variable, opacity) but in css it's not possible so i have used three seperate variables */
      /* with hue-rotate color can be changed */
      --main-color: #66fcf1;
      --main-bg-color: #0b0c10;
      --pattern-color: rgba(102,252,241,0.1);
    
    
      /* change this rotation value */
      filter: hue-rotate(0deg);
    
      cursor: pointer;
      text-transform: uppercase;
      letter-spacing: 0.5rem;
      background: radial-gradient(
          circle,
          var(--main-bg-color) 0%,
          rgba(0, 0, 0, 0) 95%
        ),
        linear-gradient(var(--pattern-color) 1px, transparent 1px),
        linear-gradient(to right, var(--pattern-color) 1px, transparent 1px);
      background-size:
        cover,
        15px 15px,
        15px 15px;
      background-position:
        center center,
        center center,
        center center;
      border-image: radial-gradient(
          circle,
          var(--main-color) 0%,
          rgba(0, 0, 0, 0) 100%
        )
        1;
      border-width: 1px 0 1px 0;
      color: var(--main-color);
      padding: 1rem 3rem;
      font-weight: 700;
      font-size: 1.5rem;
      transition: background-size 0.2s ease-in-out;
    }
    
    .button:hover {
      --pattern-color: rgba(255, 0, 0, 0.175);
      --main-color: #ff0000;
      background-size: cover, 10px 10px, 10px 10px;
      filter: none; /* éviter le hue-rotate */
    }
    .button:active {
      filter: hue-rotate(250deg);
    }
    

/* ===============================
   SPLASH SCREEN - À LA FIN DU FICHIER
   =============================== */

/* Fond particules plein écran */
body.splash #particles-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #0b0b0b;
}

/* Conteneur du bouton START */
body.splash #center-container {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Canvas des particules plein écran */
body.splash .particules {
  width: 100%;
  height: 100%;
  background: #111;
}

body.splash .particules canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Bouton START - style final qui écrase tout */
body.splash .button {
  --main-color: rgb(102,252,241);
  --main-bg-color: rgba(0, 43, 46, 0.36);
  --pattern-color: rgba(46, 213, 116, 0.073);

  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  background: radial-gradient(circle, var(--main-bg-color) 0%, rgba(0,0,0,0) 95%),
              linear-gradient(var(--pattern-color) 1px, transparent 1px),
              linear-gradient(to right, var(--pattern-color) 1px, transparent 1px);
  background-size: cover, 15px 15px, 15px 15px;
  background-position: center center;
  border: 1px solid transparent;
  border-image: radial-gradient(circle, var(--main-color) 0%, rgba(0, 0, 0, 0) 100%) 1;
  border-width: 1px 0;
  color: var(--main-color);
  padding: 1rem 3rem;
  font-weight: 700;
  font-size: 1.5rem;
  transition: background-size 0.2s ease-in-out;
  filter: hue-rotate(0deg);
}

body.splash .button:hover {
  --pattern-color: rgba(255, 0, 0, 0.175);
  --main-color: #ff0000;
  background-size: cover, 10px 10px, 10px 10px;
  filter: none;
}

body.splash .button:active {
  filter: hue-rotate(250deg);
}

/* ===============================
   SPLASH SCREEN - PRIORITÉ MAXIMALE
   =============================== */

   body.splash {
    overflow: hidden;
  }
  
  body.splash #particles-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: #0b0b0b;
  }
  
  body.splash .particules {
    width: 100%;
    height: 100%;
    background: transparent;
  }
  
  body.splash .particules canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }
  
  body.splash #center-container {
    position: fixed;
    inset: 0;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 100;
  }
  
  body.splash .button {
    --main-color: rgb(102,252,241);
    --main-bg-color: rgba(0, 43, 46, 0.36);
    --pattern-color: rgba(46, 213, 116, 0.073);
  
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    background: radial-gradient(circle, var(--main-bg-color) 0%, rgba(0,0,0,0) 95%),
                linear-gradient(var(--pattern-color) 1px, transparent 1px),
                linear-gradient(to right, var(--pattern-color) 1px, transparent 1px);
    background-size: cover, 15px 15px, 15px 15px;
    background-position: center;
    border: none;
    border-top: 1px solid var(--main-color);
    border-bottom: 1px solid var(--main-color);
    color: var(--main-color);
    padding: 1rem 3rem;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.2s ease-in-out;
  }
  
  body.splash .button:hover {
    --pattern-color: rgba(255, 0, 0, 0.175);
    --main-color: #ff0000;
    background-size: cover, 10px 10px, 10px 10px;
  }