/* ====================================
   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;
  }
}


/* ====================================
   LINK BIO - links.php
   ==================================== */

.links-page {
  background: #0e0e0e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* Grain subtil */
.links-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.links-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Avatar initiales */
.links-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #f0f0f0;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
  animation: linksUp 0.5s ease 0.1s forwards;
}

.links-name {
  font-family: "Instrument Sans", Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #f0f0f0;
  opacity: 0;
  animation: linksUp 0.5s ease 0.18s forwards;
}

.links-role {
  font-family: "Instrument Sans", Helvetica, sans-serif;
  font-size: 13px;
  color: #888;
  margin-top: 5px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: linksUp 0.5s ease 0.24s forwards;
}

.links-divider {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 28px 0;
  opacity: 0;
  animation: linksUp 0.5s ease 0.30s forwards;
}

/* Liste des liens */
.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: #f0f0f0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: translateY(10px);
}

.links-item:hover {
  background: #242424;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.links-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.links-item-icon svg {
  width: 18px;
  height: 18px;
  fill: #f0f0f0;
}

.links-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.links-item-label {
  font-family: "Instrument Sans", Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #f0f0f0;
  letter-spacing: 0.01em;
}

.links-item-value {
  font-family: "Instrument Sans", Helvetica, sans-serif;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.02em;
}

.links-item-arrow {
  margin-left: auto;
  color: #888;
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.links-item:hover .links-item-arrow {
  transform: translateX(3px);
  color: #f0f0f0;
}

/* Délais échelonnés */
.links-item:nth-child(1) {
  animation: linksUp 0.45s ease 0.38s forwards;
}

.links-item:nth-child(2) {
  animation: linksUp 0.45s ease 0.46s forwards;
}

.links-item:nth-child(3) {
  animation: linksUp 0.45s ease 0.54s forwards;
}

.links-item:nth-child(4) {
  animation: linksUp 0.45s ease 0.62s forwards;
}

.links-item:nth-child(5) {
  animation: linksUp 0.45s ease 0.70s forwards;
}

.links-item:nth-child(6) {
  animation: linksUp 0.45s ease 0.78s forwards;
}

/* Footer */
.links-footer {
  margin-top: 32px;
  font-family: "Instrument Sans", Helvetica, sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  animation: linksUp 0.5s ease 0.9s forwards;
}

@keyframes linksUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}