/* =========================================================
   CSS POUR LES PAGES DES PROJECTS
   ========================================================= */


.realisation-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.realisation-logo {
  width: 600px;
  height: auto;
  max-height: 400px;
}

.ardian-logo {
  height: auto;
  margin-top: 48px;
  margin-bottom: 144px;
}

.insee-logo {
  width: 280px;
  height: 400px;
}


.realisation-date {
  color: white;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1.28px;
  word-wrap: break-word;
}


.realisation-description {
  /* Gradient texte */
  background: linear-gradient(91deg, #FFF 0.2%, #AAA 99.81%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* pour compatibilité non-webkit */

  /* Police et typographie */
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.44px;

  /* Couleur de fallback si gradient non supporté */
  color: rgba(255, 255, 255, 0.2);
}


.realisation-info {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.info-title {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.96px;
  text-transform: uppercase;
  opacity: 0.66;
  background: linear-gradient(90deg, #FFF 0.08%, #999 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-value {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  /* 171.429% */
  letter-spacing: 1.12px;
  background: linear-gradient(90deg, #FFF 0.08%, #999 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
  align-self: stretch;
}

.divider-mobile {
  display: none;
}

.info-button .btn {
  height: 56px;
  padding: 0 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: none;
  color: white;
  font-size: 22px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0.44px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-button .btn:hover {
  background: rgba(255, 255, 255, 0.1);
}







/* Conteneur des éléments texte */
.project-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

/* Texte court */
.project-item .short-text {
  font-family: 'Advercase', "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  /* 133.333% */
  letter-spacing: 0.96px;
  text-transform: uppercase;

  background: linear-gradient(90deg, #FFF 0.08%, #999 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Texte long */
.project-item .long-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.55px;

  background: linear-gradient(91deg, #FFF 0.2%, #AAA 99.81%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Images SVG */
.project-image {
  flex-shrink: 0;
  max-width: 1280px;
  border-radius: 20px;
}

.project-video {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}


.image-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
}

.img-legend {
  font-size: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.28px;
  word-wrap: break-word;
  margin: 0;
  /* on retire tout margin top négatif */

  /* Gradient texte */
  background: linear-gradient(to right, #ffffff, #aaaaaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Wrapper responsive */
.media-embed {
  position: relative;
  width: 100%;
  max-width: 1280px;
  /* Largeur max desktop */
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  /* évite flash blanc au chargement */
}


/* =========================================================
   MOBILE OPTIMIZED PROJECTS PAGE
   ========================================================= */
@media (max-width: 768px) {
  .realisation-card {
    gap: 12px;
    padding: 12px;
  }

  .realisation-logo {
    width: 200px;
    /* réduit encore pour mobile */
    height: auto;
  }

  .ardian-logo {
    height: auto;
    margin-bottom: 64px;
  }

  .insee-logo {
    height: 200px;
    width: 140px;
  }


  .realisation-date {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.8px;
  }

  .realisation-description {
    font-size: 12px;
    line-height: 18px;
    word-wrap: break-word;
  }

  .realisation-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-start;
    padding: 8px 0;
  }

  .info-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
  }

  .info-title {
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 0.7px;
  }

  .info-value {
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.9px;
  }

  .divider {
    height: 1px;
    width: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 6px 0;
  }

  .divider-mobile {
    display: flex;
    height: 1px;
    width: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 6px 0;
  }

  .realisation-info>.divider:last-of-type {
    display: none;
  }

  .info-button {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    width: 100%;
  }

  .info-button .btn {
    width: 100%;
    max-width: 300px;
    height: 44px;
    padding: 0 16px;
    font-size: 16px;
    line-height: 20px;
    border-radius: 36px;
    gap: 6px;
  }


  .btn-center {
    display: block;
    margin-top: 16px;
    width: 100%;
  }

  .btn-container {
    display: flex;
    justify-content: center;
    /* centre horizontalement */
    align-items: center;
    /* centre verticalement */
    height: 200px;
    /* hauteur du conteneur */
  }



  .project-item .long-text {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    letter-spacing: 0.6px;
    /* léger espacement positif */
    word-spacing: 1px;
    line-height: 24px;
  }

  .project-image {
    flex-shrink: 0;
    width: 90%;
  }

  .project-video {
    width: 90%;
  }

  .img-legend {
    font-size: 11px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.28px;
    word-wrap: break-word;
    margin: 0;
    /* on retire tout margin top négatif */

    /* Gradient texte */
    background: linear-gradient(to right, #ffffff, #aaaaaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }


}


/* Wrapper responsive */
.media-embed {
  position: relative;
  width: 100%;
  max-width: 1280px;
  /* Largeur max desktop */
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  /* évite flash blanc au chargement */
}

/* Ratio 16/9 pour desktop */
.media-embed::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
  /* 16:9 */
}

/* Iframe full container */
.media-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .media-embed {
    border-radius: 8px;
    margin: 1.2rem auto;
  }

  /* Ratio un peu plus vertical pour mobile */
  .media-embed::before {
    padding-bottom: 70%;
  }
}

/* État initial : invisible et légèrement décalé vers le bas */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Quand l’élément devient visible */
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}