/* ====================================
   PROJECT DETAIL - ../assets/CSS/project-detail.css
   Style Anima - 100% fidèle à Figma
   ==================================== */

:root {
  --h1-font-family: "Instrument Sans", Helvetica;
  --h1-font-size: 62px;
  --h1-font-style: normal;
  --h1-font-weight: 500;
  --h1-letter-spacing: 0px;
  --h1-line-height: 67px;

  --h2-font-family: "Instrument Sans", Helvetica;
  --h2-font-size: 32px;
  --h2-font-style: normal;
  --h2-font-weight: 500;
  --h2-letter-spacing: 0px;
  --h2-line-height: 70px;

  --h3-font-family: "Instrument Sans", Helvetica;
  --h3-font-size: 20px;
  --h3-font-style: normal;
  --h3-font-weight: 400;
  --h3-letter-spacing: 0px;
  --h3-line-height: 36px;

  --header-font-family: "Instrument Sans", Helvetica;
  --header-font-size: 18px;
  --header-font-style: normal;
  --header-font-weight: 400;
  --header-letter-spacing: 0px;
  --header-line-height: 25.9px;

  --pragraphes-2-font-family: "Instrument Sans", Helvetica;
  --pragraphes-2-font-size: 20px;
  --pragraphes-2-font-style: normal;
  --pragraphes-2-font-weight: 400;
  --pragraphes-2-letter-spacing: 0px;
  --pragraphes-2-line-height: 32.4px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f9f9f9;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  font-family: var(--pragraphes-2-font-family);
}

/* Background Vector */
.background-vector {
  position: absolute;
  top: 0;
  left: 603px;
  width: 763px;
  height: 771px;
  pointer-events: none;
  z-index: 0;
}

.background-vector img {
  width: 100%;
  height: 100%;
}

/* Header */
.header-section {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px 366px;
  background-color: transparent;
  position: relative;
  z-index: 10;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-button {
  font-family: var(--header-font-family);
  font-weight: var(--header-font-weight);
  color: #1e1e1e;
  font-size: var(--header-font-size);
  text-align: center;
  letter-spacing: var(--header-letter-spacing);
  line-height: var(--header-line-height);
  white-space: nowrap;
  font-style: var(--header-font-style);
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity 0.3s;
}

.nav-button:hover,
.nav-button.active {
  opacity: 0.7;
}

/* Main Content */
.main-content-section {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 90px 366px;
  position: relative;
  z-index: 10;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.main-title {
  font-family: var(--h1-font-family);
  font-weight: var(--h1-font-weight);
  color: black;
  font-size: var(--h1-font-size);
  letter-spacing: var(--h1-letter-spacing);
  line-height: var(--h1-line-height);
  white-space: nowrap;
  font-style: var(--h1-font-style);
}

.main-subtitle {
  font-family: var(--h3-font-family);
  font-weight: var(--h3-font-weight);
  color: black;
  font-size: var(--h3-font-size);
  letter-spacing: var(--h3-letter-spacing);
  line-height: var(--h3-line-height);
  white-space: nowrap;
  font-style: var(--h3-font-style);
}

.gallery-image {
  width: 420px;
  height: 271.03px;
  background-size: cover;
  background-position: 50% 50%;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Featured Images */
.featured-image-container {
  position: relative;
  width: 100%;
  z-index: 10;
}

.featured-image-1,
.featured-image-2 {
  width: 100%;
  height: 700px;
  background-size: cover;
  background-position: 50% 50%;
}

.featured-video-1,
.featured-video-2 {
  width: 100%;
  /* Use aspect-ratio for videos/iframes to make them responsive */
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}

.featured-video-1 video,
.featured-video-2 iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.overview-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  gap: 10px;
  padding: 90px 336px;
  position: relative;
  z-index: 10;
}

.section-content {
  position: relative;
  width: 100%;
  max-width: 1252px;
}

.section-title {
  font-family: var(--h2-font-family);
  font-weight: var(--h2-font-weight);
  color: #1e1e1e;
  font-size: var(--h2-font-size);
  letter-spacing: var(--h2-letter-spacing);
  line-height: var(--h2-line-height);
  font-style: var(--h2-font-style);
  margin-bottom: 32px;
}

.section-text {
  font-family: var(--pragraphes-2-font-family);
  font-weight: var(--pragraphes-2-font-weight);
  color: #1e1e1e;
  font-size: var(--pragraphes-2-font-size);
  letter-spacing: var(--pragraphes-2-letter-spacing);
  line-height: var(--pragraphes-2-line-height);
  font-style: var(--pragraphes-2-font-style);
}

/* Contact Section */
.contact-section {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 90px 32px;
  position: relative;
  z-index: 10;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1024px;
  width: 100%;
  gap: 20px;
  text-align: center;
}

/* Bouton "View the Live Site" */
.live-site-btn {
  display: inline-block;
  width: 220px;
  height: 56px;
  background-color: #353738;
  border-radius: 1000px;
  color: white;
  font-family: "DM Sans", Helvetica;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 56px;
  text-align: center;
  text-decoration: none;
  margin-top: 32px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.live-site-btn:hover {
  background-color: #494b4d;
  transform: translateY(-2px);
}

/* RESPONSIVE UPDATED */

/* Grande Taille (Desktop > 1024px) - Les styles par défaut ci-dessus s'appliquent */

/* Taille Moyenne (Tablette, 769px à 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Désactiver le vecteur de fond */
  .background-vector {
    display: none;
  }

  .header-section,
  .main-content-section,
  .overview-section {
    padding-left: 64px;
    padding-right: 64px;
  }

  .featured-video-1 {
    height: 100%;
    width: 100%;
  }

  .main-title {
    font-size: 52px; /* Ajustement de la taille de police */
    line-height: 1.1;
    white-space: normal; /* Permettre le retour à la ligne */
  }

  .main-subtitle {
    white-space: normal; /* Permettre le retour à la ligne */
  }

  .gallery-image {
    width: 100%;
    max-width: 350px; /* Taille max pour la tablette */
    height: auto;
  }

  .featured-image-1,
  .featured-image-2 {
    height: 500px; /* Réduire la hauteur des images vedettes */
  }

  .featured-video-1 {
    height: 600px; /* Réduire la hauteur de la vidéo 1 */
  }

  .featured-video-2 iframe {
    width: 100%;
    max-width: 700px;
    height: 400px;
  }

  .overview-section {
    padding-left: 64px;
    padding-right: 64px;
  }
}

/* Petite Taille (Mobile, max-width: 768px) */
@media (max-width: 768px) {
  /* Désactiver le vecteur de fond */
  .background-vector {
    display: none;
  }

  .header-section {
    padding: 22px 24px; /* Padding pour mobile */
  }

  .main-content-section,
  .overview-section {
    padding: 60px 24px; /* Padding plus petit pour mobile */
    flex-direction: column;
    gap: 32px;
  }

  .main-title {
    font-size: 42px; /* Taille de police plus petite */
    line-height: 1.2;
    white-space: normal;
  }

  .main-subtitle {
    font-size: 18px;
    line-height: 1.6;
    white-space: normal;
  }

  .content-wrapper {
    gap: 32px;
  }

  .gallery-image {
    width: 100%; /* Image prend toute la largeur */
    height: 200px; /* Hauteur fixe réduite ou ajustez l'aspect-ratio si nécessaire */
    flex-shrink: 1;
  }

  .featured-image-1,
  .featured-image-2 {
    height: 300px; /* Réduire encore la hauteur des images vedettes */
  }

  .featured-video-1 {
    height: 400px; /* Réduire encore la hauteur de la vidéo 1 */
  }

  .featured-video-2 iframe {
    width: 100%;
    height: 250px; /* Réduire la hauteur de l'iframe YouTube */
  }

  .section-title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 24px;
  }

  .section-text {
    font-size: 18px;
    line-height: 1.6;
  }

  .contact-section {
    padding: 60px 24px;
  }

  .live-site-btn {
    width: 100%;
    max-width: 280px;
    margin-top: 24px;
  }
}

/* Photo de profil — carré arrondi */
.gallery-image-profile {
  width: 340px;
  height: 340px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}

.gallery-image-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@media (max-width: 768px) {
  .gallery-image-profile {
    width: 220px;
    height: 220px;
    border-radius: 16px;
  }
}

.competences-bloc {
  margin-top: 24px;
}

.competences-label {
  font-family: "Instrument Sans", Helvetica;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.competences-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.competence-tag {
  display: inline-flex;
  flex-direction: column;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: "Instrument Sans", Helvetica;
  border-left: 3px solid #1e1e1e;
}

.competence-tag .tag-code {
  font-size: 12px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: 0.05em;
}

.competence-tag .tag-label {
  font-size: 13px;
  color: #444;
  margin-top: 2px;
}

.stack-bloc {
  margin-top: 24px;
  margin-bottom: 8px;
}

.stack-label {
  font-family: "Instrument Sans", Helvetica;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tag {
  background: #1e1e1e;
  color: #fff;
  border-radius: 100px;
  padding: 5px 14px;
  font-family: "Instrument Sans", Helvetica;
  font-size: 13px;
  font-weight: 500;
}

.defi-bloc {
  background: #f9f9f9;
  border-left: 3px solid #1e1e1e;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 12px;
  font-family: "Instrument Sans", Helvetica;
  font-size: 18px;
  line-height: 1.6;
  color: #1e1e1e;
}

.defi-titre {
  font-weight: 600;
  margin-bottom: 4px;
}

.defi-solution {
  color: #555;
}

.section-label {
  font-family: "Instrument Sans", Helvetica;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 28px;
  display: block;
}

/* ── Animation scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Image inline ── */
.inline-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 40px 0;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.11);
}

.inline-image img {
  width: 100%;
  height: auto;
  display: block;
}

.inline-image figcaption {
  font-family: "Instrument Sans", Helvetica;
  font-size: 13px;
  color: #999;
  padding: 9px 16px;
  background: #f4f4f4;
  border-radius: 0 0 12px 12px;
  letter-spacing: 0.02em;
}

/* ── Duo d'images côte à côte ── */
.inline-image-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

.inline-image-duo .inline-image {
  margin: 0;
}

@media (max-width: 768px) {
  .inline-image-duo {
    grid-template-columns: 1fr;
  }
}
