
header {
  position: relative;
  z-index: 10; /* le header sera toujours au-dessus */
}

.home-content {
  position: relative;
  z-index: 1; /* contenu derrière le header */
  margin-top: 20px; /* espace sous le header */
  margin-bottom: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.home-content h1 {
  width: 100vw;
  text-align: center;
  font-size: clamp(4rem, 12vw, 12rem);
  font-weight: 900;
  color: var(--color-heading);
  text-transform: uppercase;

  transform: translateX(-100%) scaleY(3);
  transform-origin: center;
  opacity: 0;
  animation: slideIn 1.3s ease-out forwards;

  letter-spacing: 5px;
  margin: 0;
  padding: 100px 0;
  overflow: hidden;

   text-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

@keyframes slideIn {
  0% {
    transform: translateX(-100%) scaleY(5);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scaleY(3);
    opacity: 1;
  }
}

.logo-marti {
  display: block;         /* permet de centrer un <img> avec margin auto */
  margin: 0 auto;         /* centre horizontalement */
  width: 150px;
  height: 150px;
}

.buttom-contact {
  display: inline-block; /* nécessaire pour appliquer padding + animation proprement */
  padding: 20px 50px;
  border-radius: 45px;
  background: var(--color-secondary);
  font-size: 1.5em;
  margin-top: 100px;
  font-weight: 600;
  transition: all 0.3s ease;

  /* animation d’entrée */
  opacity: 0;
  transform: translateX(100%);
  animation: slideInRight 1s ease-out forwards;
}
.buttom-contact a {
    text-decoration: none; /* enlève le soulignement */
  color: var(--color-text); /* enlève le bleu */
}
/* animation */
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* effet au survol */
.buttom-contact:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}
/* SKIlls section */
.skills-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
  width: 100vw;
  background-color: var(--color-primary);
  padding: 100px 0;
  flex-direction: column;
}

.skills-section h2 {
  text-align: center;
  font-size: 3em;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 60px;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDown 1s ease-out forwards;
}

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


.skills-table {
  border-collapse: collapse; /* supprime les lignes */
  text-align: center;
  width: 80%; /* ajuste selon ton design */
  font-size: 1.5em;
  color: var(--color-text);
}

.skills-table th {
  font-size: 1em;
  color: var(--color-text);
  text-transform: uppercase;
  padding-bottom: 30px;
}

.skills-table td {
  padding: 15px 0;
  vertical-align: middle;
}

.skills-table th,
.skills-table td {
  width: 33%;
}

.skills-table img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
  margin-right: 5px;
}

/*SECTION PROJECT*/

.title-project h2{
    text-align: center;
  font-size: 3em;
  font-weight: 900;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDown 1s ease-out forwards;
}

.title-project h2:hover {
  color: var(--color-primary);
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lien-project {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 150px;
  margin: 70px 0 10px 0;
}

.lien-project a {
  position: relative;
  display: inline-block;
  color: var(--color-white);
  text-decoration: none;
  font-size: 1.5em;
  font-weight: 700;
  padding: 25px 60px;
  transition: transform 0.3s ease;
}

.lien-project a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  border-radius: 12px;
  z-index: -1;
}

.lien-project a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 100%;
  height: 100%;
  background: var(--color-secondary);
  border-radius: 12px;
  z-index: -2;
}

.lien-project a:hover {
  transform: scale(1.08);
}

/*SECTION CONTACT*/
.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 50px 10%;
  background: var(--color-background);
}
.title-contact h2 {
      text-align: center;
  font-size: 3em;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 60px;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDown 1s ease-out forwards;
}

.title-contact h2:hover {
  color: var(--color-primary);
}

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

/* Regroupe les deux blocs sur la même ligne */
.contact-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 30px 10%;
  background: var(--color-background);
  margin-left: 40px;
}

.title-contact {
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
}

/* Bloc gauche : info */
/* Bloc gauche : info */
.info-taf {
  flex: 1;
  min-width: 300px;
  max-width: 45%;
  text-align: center;
  background: var(--color-white);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-taf:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.info-taf h4 {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: var(--color-primary);
  position: relative;
}

.info-taf h4::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 10px auto 0;
  border-radius: 5px;
}

.info-taf ul {
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: justify;
    text-decoration: none;
}

.info-taf li {
  margin: 10px 0;
  font-size: 1.1em;
  color: var(--color-text);
  text-align: justify;
  position: relative;
  padding-left: 25px;
}

/* Petits ronds décoratifs avant chaque élément */
.info-taf li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: var(--color-primary);
  font-weight: bold;
}


/* Bloc droit : réseaux */
.resaux-contact {
  flex: 1;
  min-width: 300px;
  max-width: 40%;
  background: var(--color-primary);
  padding: 20px 30px;
  border-radius: 15px;
  color: var(--color-white);
  margin-left: 300px;
}

.resaux-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resaux-contact li {
  margin: 10px 0;
}

.resaux-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 500;
  transition: 0.3s;
  font-size: 1.5em;
}

.resaux-contact a:hover {
  opacity: 0.5;
  transform: translateX(5px);
}

.resaux-contact img {
  width: 60px;
  height: 60px;
}

/* Logo en dessous, centré */
.logo-contact {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-contact img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* ========================================
RESPONSIVE
======================================== */

@media (max-width: 1025px) {
  .home-content h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    letter-spacing: 3px;
    padding: 60px 0;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .logo-marti {
    width: 100px;
    height: 100px;
  }

  .buttom-contact {
    padding: 15px 35px;
    font-size: 1.1em;
    margin-top: 60px;
    border-radius: 35px;
  }
}

/* ---------- PETIT MOBILE (moins de 600px) ---------- */
@media (max-width: 600px) {
  .home-content h1 {
    font-size: clamp(2rem, 9vw, 4rem);
    padding: 40px 0;
  }

  .logo-marti {
    width: 80px;
    height: 80px;
  }

  .buttom-contact {
    padding: 12px 25px;
    font-size: 1em;
    margin-top: 40px;
  }
}

/* ---------- RESPONSIVE (1025px et moins) ---------- */
@media (max-width: 1025px) {
  .skills h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .skills-table {
    width: 90%;
    font-size: 0.95em;
  }

  .skills-table th,
  .skills-table td {
    padding: 15px 20px;
  }
}

/* ---------- PETITS ÉCRANS (600px et moins) ---------- */
@media (max-width: 600px) {
  .skills h2 {
    font-size: 1.8rem;
  }

  .skills-table {
    width: 95%;
    font-size: 0.85em;
  }

  .skills-table th,
  .skills-table td {
    padding: 10px 15px;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1025px) {
  .lien-project {
    flex-direction: column; /* empile les liens */
    gap: 40px;              /* espace vertical entre eux */
  }

  .lien-project a {
    font-size: 1.2em;
    padding: 20px 50px;
  }
}

/* ---------- RESPONSIVE (à partir de 1025px et moins) ---------- */
@media (max-width: 1025px) {
  .contact-content {
    flex-direction: column; /* empile les blocs */
    align-items: center;
    gap: 50px;
    padding: 40px 5%;
    margin-left: 0;
  }

  .info-taf,
  .resaux-contact {
    max-width: 90%;
    width: 100%;
    margin: 0; /* supprime les décalages horizontaux */
  }

  .info-taf {
    padding: 30px 20px;
  }

  .resaux-contact {
    padding: 30px 20px;
  }

  .resaux-contact img {
    width: 50px;
    height: 50px;
  }

  .resaux-contact a {
    font-size: 1.2em;
    text-decoration: none;
        align-items: center;
    text-align: center;
    justify-content: center;
  }

  .logo-contact img {
    width: 150px;
    height: 150px;
  }
}

/* ---------- PETIT MOBILE (600px et moins) ---------- */
@media (max-width: 600px) {
  .contact-content {
    padding: 30px 5%;
    gap: 40px;
  }

  .info-taf h4 {
    font-size: 1.4em;
  }

  .info-taf li {
    font-size: 1em;
  }

  .resaux-contact a {
    font-size: 1.1em;
  }

  .resaux-contact img {
    width: 40px;
    height: 40px;
  }

  .logo-contact img {
    width: 120px;
    height: 120px;
  }
}
