/* ====== GLOBAL ====== */
body {
  background-image: url('/image/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
  color: #fff;
  padding-top: 100px;
  margin: 0;
}

/* NAVIGATION BAR */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  width: 100%;
  padding: 0 40px;
  background: linear-gradient(180deg, #111 0%, #000000cc 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Arial Black', Arial, sans-serif;
  z-index: 1000;
  box-sizing: border-box;
  user-select: none;
}

/* LOGO À GAUCHE */
.logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo img {
  height: 200px;  /* tu peux ajuster la taille ici */
  object-fit: contain;
  padding-left: 0;
}

/* LIENS CENTRÉS VISUELLEMENT */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 0 auto;
  transform: translateX(-100px);
}


/* LIENS */
.nav-links a {
  color: #eee;
  padding: 10px 24px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: transparent;
  text-decoration: none;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-align: center;
  display: inline-block;
  min-width: 120px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* HOVER EFFETS */
.nav-links a:hover {
  background-color: #222;
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

/* EFFETS D’ANIMATION */
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 4px;
  left: 0;
  background-color: white;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0.6), rgba(255,255,255,0.2));
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover::before {
  left: 125%;
}
/* ====== PROJETS ====== */
.projects {
  padding: 20px;
  margin-bottom: 40px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.project-item {
  flex: 1 1 calc(50% - 10px);
  box-sizing: border-box;
  margin-bottom: 20px;
}

.project-item a.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-item a.card-link:hover {
  text-decoration: underline;
}

.media-block {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 20px;
  height: 100%;
  background-color: rgba(5, 10, 20, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.media-block:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-8px);
}

.media-left {
  width: 300px;
  height: 180px;
  flex-shrink: 0;
  position: relative;
}

.media-left img,
.media-left video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.content {
  flex: 1;
  color: white;
}

/* ====== FOOTER ====== */
.footer {
  background-color: rgba(5, 10, 20, 0.6);
  backdrop-filter: blur(12px);
  padding: 30px 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.footer p {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 12px 0;
  margin: 0 auto;
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

/* ====== RESPONSIVE ====== */
.language-selector {
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border: 1px solid rgba(224, 234, 255, 0.3);
  box-shadow: 0 0 10px rgba(224, 234, 255, 0.2);
  padding: 6px 12px;
  font-size: 1rem;
  color: #e0eaff;
  width: 100px;
  margin: 10px 20px 20px auto;
}

.language-selector select {
  background: transparent;
  border: none;
  color: #e0eaff;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 25px;
  outline: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23e0eaff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px 16px;
}

.language-selector select::-ms-expand {
  display: none;
}
/* ====== RESPONSIVE ====== */

/* Tablettes (≤1024px) */
@media (max-width: 1024px) {
  .project-grid {
    justify-content: center;
  }

  .project-item {
    flex: 1 1 80%;
    max-width: 600px;
    margin: 0 auto 20px auto;
  }

  .media-block {
    flex-direction: column;
    text-align: center;
  }

  .media-left {
    width: 100%;
    height: 200px;
  }

  .content {
    padding-top: 10px;
  }
}

/* Mobiles (≤768px) */
@media (max-width: 768px) {

 nav {
    position: static;
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  body {
    padding-top: 0;
  }
  
  .logo {
    display: flex;          /* reste visible */
    margin-bottom: 8px;    /* espace entre logo et liens */
    height: auto;           /* s’adapte */
  }

    .logo img {
    height: 100px; /* réduis la taille du logo */
    padding-left: 0;
  }

    .nav-links {
    transform: none;  /* annule le translateX */
    flex-direction: column;  /* colonne pour les liens */
    align-items: center;     /* centre les liens */
    gap: 15px;               /* espace entre liens */
    margin: 0;               /* annule margin auto */
  }

  nav a {
    width: 90%;
    text-align: center;
    padding: 12px 0;
    border-radius: 20px;
  }

  .nav-links a {
    padding: 8px 16px; /* liens un peu plus petits */
    min-width: auto;
  }



  .project-item {
    flex: 1 1 100%;
    max-width: 90%;
  }

  .footer p {
    font-size: 1rem;
  }
 
}

/* Très petits écrans (≤480px) */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
    nav {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 15px;
    align-items: center;
    justify-content: center;
  }

  .logo {
    margin-bottom: 12px;
  }

  nav a {
    width: 90%;
    max-width: 300px;
    padding: 12px 0;
    min-width: auto;
    text-align: center;
  }

  .project-item {
    max-width: 100%;
    margin: 0 0 20px 0;
  }

  .media-left {
    height: 160px;
  }

  .footer p {
    font-size: 0.95rem;
    padding: 10px;
  }
}
