
@media (max-width: 768px) {
  *, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
    width: 100%;
  }

  html {
    overflow-x: hidden;
    width: 100%;
  }

  .infos-containers {
    padding: 0 1rem;
    width: 100%;
    max-width: 100vw;
  }

  .infos-containers div {
    width: 100%;
    max-width: calc(100vw - 2rem);
    box-sizing: border-box;
  }

  .contact-cards {
    padding: 0 1rem;
    width: 100%;
  }

  .contact-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .header {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    transform: none;
    width: calc(100% - 1rem);
    max-width: calc(100vw - 1rem);
  }

  .header-container {
    padding: 0.5rem 0.75rem;
  }

  .home-content {
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .about-me {
    padding: 3rem 1rem;
  }

  .container-about {
    margin: 0 1rem;
    max-width: calc(100% - 2rem);
    padding: 1.5rem 1rem;
  }

  .Philosophie {
    padding: 0 1rem;
    max-width: calc(100% - 2rem);
  }

  .Philosophie-containers > div {
    max-width: 100%;
  }

  .projets {
    padding: 0 1rem;
    max-width: calc(100% - 2rem);
  }

  .projet {
    max-width: 100%;
    padding: 1rem;
  }

  .projet-media {
    width: 100%;
    max-width: 100%;
  }

  .exp-container {
    padding: 0 1rem;
    max-width: calc(100% - 2rem);
  }

  .exp-timeline-content {
    max-width: 100%;
  }

  .contact-container {
    padding: 0 1rem;
    max-width: calc(100% - 2rem);
  }

  .Home-titre {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    word-wrap: break-word;
  }

  .Home-job {
    font-size: clamp(1.2rem, 6vw, 2rem);
  }

  .Home-desc {
    font-size: 1rem;
  }

  .photo-frame {
    max-width: 100%;
  }

  .photo-frame img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .container-about-contenu h2,
  .container-about-contenu p {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .spectre-competences {
    padding: 2rem 1rem;
  }

  .ligne-competence {
    padding: 0.875rem 0.5rem;
  }
}

@media (max-width: 420px) {
  .header {
    top: 0.25rem;
    left: 0.25rem;
    right: 0.25rem;
    width: calc(100% - 0.5rem);
  }

  .logo {
    font-size: 1.1rem;
  }

  .Home-titre {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .Home-job {
    font-size: 1.2rem;
  }

  .Disponible {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }

  .home-content,
  .about-me,
  .Philosophie,
  .projets,
  .exp-container,
  .contact-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .projects-button,
  .contact-button {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  .Home {
    padding-top: 60px;
  }

  .home-content {
    min-height: auto;
    padding: 1.5rem 1rem;
  }

  .photo-frame img {
    max-width: 18rem;
  }
}

@media (max-width: 768px) {
  .contact-card p {
    word-break: break-all;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .infos-containers div p,
  .infos-containers div h2 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .container-about-contenu,
  .projet-info,
  .exp-timeline-content,
  .Philosophie-containers > div {
    overflow: hidden;
  }
}
