@media (max-width: 1000px) {
    .hero {
      padding-left: 10%;
      text-align:left;
      align-items: left;
      transform: translateY(-50);
    }
  
    .hero h1 {
      font-size: 2rem;
      transform: none;
    }
  
    .hero-separator {
      width: 70%;
      margin: 20px left;
      transform: none;
    }
  
    .hero p {
      font-size: 0.95rem;
      transform: none;
      margin-top: -5px;
    }
  
    .hero-btn {
      transform: none;
      font-size: 0.95rem;
      padding: 12px 20px;
      margin-top: 15px;
    }
  }

  @media (max-width: 1000px)
{
    .conteneur
    {
        margin: 10px;
        grid-template-columns: repeat(1,1fr);
    }
    .interest ul
    {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 600px)
{
    .about .box
    {
        flex-direction: column;
    }
    .about .box .year_company
    {
        margin-bottom: 5px;
    }
    .interest ul
    {
        grid-template-columns: repeat(1,1fr);
    }
    .skills .box
    {
        grid-template-columns: repeat(1,1fr);
    }
}

@media (max-width: 768px) {
    .mention-legales {
        flex-direction: column; /* Pour les écrans plus petits, aligner verticalement */
        align-items: center;
    }

    .mention-legales > div {
        width: 90%; /* Largeur des sections dans une disposition en colonne */
        margin-bottom: 20px;
    }
}




@media screen and (max-width:900px){
    .navbar{
        width: 50%;
    }

    .conteneurmentionleg{
        width: 100%;
    }

    .Tableau_portfolio h1{
        margin-top: 5%;
    }

    .conteneurhobby{
        width: 80%;
    }
}

@media screen and (max-width:1500px){
    .conteneurhobby{
        width: 80%;
    }
}

/* responsive bouton download CV */
@media (max-width: 768px) {
  .cv-download {
    margin-top: 20px; /* Assez d'espace pour ne pas toucher la navbar */
    padding: 0 15px;
  }

  .btn-cv {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
    box-sizing: border-box;
  }
}

@media (max-width: 300px) {
  .cv-download {
    margin-top: 10px; /* Plus petit écran = plus de marge si navbar fixe */
  }

  .btn-cv {
    font-size: 0.95rem;
    padding: 12px;
  }
}

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .intro-banner h1 {
      font-size: 2rem;
    }
  
    .intro-banner p {
      font-size: 1rem;
    }
  
    .passion-cards {
      flex-direction: column;
      align-items: center;
    }
  
    .card {
      width: 90%;
    }
  
    .section-parcours h2 {
      font-size: 1.8rem;
    }
  
    .timeline li {
      font-size: 1rem;
    }
  }


/* === RESPONSIVE === */
@media (max-width: 900px) {
  .etablissement-bloc {
    flex-direction: column;
    text-align: center;
  }

  .etab-text {
    text-align: center;
  }

  .etab-image {
    margin-bottom: 20px;
  }

  .etab-image img {
    max-width: 180px;
  }
}


  