:root {
  --gutter: 2.5vw;
}

/* GLOBAL */
body {
  font-family: 'Crimson Pro', serif;
  cursor: crosshair;
  margin: 0;
  padding: 0;
}

img{
user-select:none;
-webkit-user-drag:none;
}

h1, h2, h3, p, a {
  font-family: 'Crimson Pro', serif;
}

a {
  color: black;
  text-decoration: none;
}

a:hover {
  color: grey !important;
  transition: all 0.3s ease !important;
}

.tab-space {
  display: inline-block;
  width: 1em;
}

/* BANDEAU TEXTE ANIMATION */
#bandeau-wrapper {
  position: relative;
  top: 90px;
  z-index: 10;
  padding-bottom: 80px;
  padding-top: 20px;
}

.bandeau-dynamique {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  background: transparent;
}

.bandeau-content {
  display: inline-block;
  white-space: nowrap;
  animation: defilement 35s linear infinite;
  transform: translateX(100%);
}

.bandeau-content a:hover {
  color: grey;
  transition: all 0.3s ease;
}

@keyframes defilement {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}

/* CONTAINER */
#container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

/* GALERIE DE PROJETS */
#projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  /* 🔥 gap fluide au lieu de fixe */
  gap: clamp(40px, 6vw, 100px);

  padding: 80px 0 0 0;
  align-items: start;
  z-index: 1;
}

#projects-list {
	margin-bottom:-150px;
  }


/* RESPONSIVE */
@media (max-width: 1100px) {
  #projects-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding-top: 80px;
	margin-bottom:-150px;
  }
}

@media (max-width: 768px) {
  #projects-list {
    grid-template-columns: repeat(2, 1fr);
	padding-top: 40px;
	margin-bottom:-150px;
  }
}

@media (max-width: 600px) {
  #projects-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 40px;
	margin-bottom:-200px;
  }
}

/* PROJETS */
.project-item {
  background: #fff;
  padding: 0;
  text-align: center;
}

.project-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

/* FLEX (si utilisé ailleurs) */
.projects-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.project-column {
  flex: 1 1 calc(33.333% - 20px);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .projects-grid { flex-direction: column; }
  .project-column { flex: 1 1 100%; }
}

/* IMAGE WRAPPER (porte les paddings de colonne) */
.image-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0;
  border: 0px solid black;
  box-sizing: border-box;
}

/* ✅ image-inner = boîte au bord exact du visuel */
.image-inner{
  position: relative;
  width: 100%;
}

/* ✅ meta-bar calée sur le visuel (image-inner) + décalée vers le haut */
.image-meta-bar {
  position: absolute;
  top: -22px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  font-size: 1.1em;
  z-index: 5;
  color: #000;
  pointer-events: none;
}

.image-meta-bar .image-info,
.image-meta-bar .image-link {
  pointer-events: auto;
}

.image-info {
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  color: grey;
}

.image-link {
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  color: grey;
  opacity: 50%;
}

.image-tag {
  margin-top: 0.8em;
  font-size: 0.8em;
  font-style: italic;
  color: #666;
  text-align: center;
}

/* TOOLTIP */
#custom-tooltip {
  position: fixed;
  display: none;
  background: white;
  color: black;
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  pointer-events: none;
  font-size: 14px;
  z-index: 1000;
  white-space: nowrap;
}

.image-link img{
  width:16px;
  height:16px;
  display:block;
}

/* =====================
   MASQUE PROPRE FINAL
===================== */


.project-item{
  opacity:1;
  transition:opacity .25s ease;
}

.project-item.masked{
  opacity:0;
  pointer-events:none;
}


/* =====================
   H1 PAGE INDEX
===================== */

.seo-title {
  position: absolute;
  left: -9999px;
  top: auto;
}