.image-trail-section {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding-top: 9.6em;
  padding-bottom: 9.6em;
  display: flex;
  position: relative;
  background-color: var(--light-background);
  color: var(--black);
  overflow: hidden;
  font-family: 'RM Neue TRIAL', sans-serif;
  cursor: pointer;
}

.image-trail-content {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    pointer-events: none;
    color: #000; /* On remet le texte en noir */
    /* On retire le mix-blend-mode d'ici */
}

.image-trail-content .top-text,
.image-trail-content .side-text,
.image-trail-content .bottom-text-content {
    text-transform: uppercase;
    font-family: 'RMMono', sans-serif;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--grey-text);
}

.image-trail-content .about-link-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    pointer-events: auto;
    position: relative;
    z-index: 1000;
    text-decoration: none; /* Supprime le soulignement bleu par défaut */
    color: inherit; /* Hérite de la couleur du parent (noir) */
}

.image-trail-content .about-link {
    font-size: 1rem;
    color: var(--black);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.25rem;
    font-weight: 500;
    pointer-events: auto;
}

.image-trail-content .about-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--black);
    transition: width 0.3s ease;
}

.image-trail-content .about-link:hover::after {
    width: 0;
}

.image-trail-content .about-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px dotted var(--black);
    background-color: var(--light-background);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    color: var(--black);
    pointer-events: auto;
}

.image-trail-content .arrow-wrapper {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    position: absolute;
    width: 200%;
    left: 0;
    transform: translateX(-50%); /* Montre la 2ème flèche par défaut */
}

.image-trail-content .about-button:hover .arrow-wrapper {
    transform: translateX(0); /* Slide vers la 1ère flèche */
}

.image-trail-content .arrow-svg {
    width: 50%;
    box-sizing: border-box;
    padding: 0 16px;
}

.image-trail-content .arrow-svg path {
    stroke: var(--black);
}

.image-trail-section .top-text {
  position: absolute;
  top: 15%;
}

/* Eyebrow promu en <h2> pour le SEO : neutralise les marges UA du h2,
   le rendu reste identique (la classe .top-text gère font/taille/couleur) */
h2.top-text {
  margin: 0;
}

.image-trail-heading {
  font-size: clamp(2rem, 8vw, 10rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  margin: 0;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.image-trail-section .side-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.image-trail-section .side-text.left {
  left: 5%;
}

.image-trail-section .side-text.right {
  right: 5%;
}

.image-trail-section .bottom-text {
  position: absolute;
  bottom: 20%;
  font-size: 1rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bottom-text-content {
    margin-left: 0.5rem;
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trail-wrap {
  z-index: 100;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0%;
}

.trail-list {
  width: 100%;
  height: 100%;
  position: relative;
}

.trail-item {
  opacity: 0;
  border-radius: .3125em;
  width: 15em;
  height: 20em;
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.trail-item__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   L'animation image-trail (mouse-follow) ne tourne pas sur tactile (pas de
   pointermove), elle reste invisible — donc pas besoin de la désactiver.
   On adapte juste les paddings, la typo et les positions absolues.
   ============================================= */
@media (max-width: 768px) {
    .image-trail-section {
        padding-top: 6em;
        padding-bottom: 5em;
        min-height: 50vh;
    }

    .image-trail-heading {
        font-size: clamp(2rem, 11vw, 4.5rem);
        padding: 0 1rem;
    }

    .image-trail-section .top-text {
        top: 8%;
    }

    .image-trail-section .bottom-text {
        bottom: 10%;
        font-size: 0.85rem;
        padding: 0 1rem;
        text-align: center;
    }

    /* Les side-texts gauche/droite cassent sur mobile (pas de place) */
    .image-trail-section .side-text {
        display: none;
    }

    .trail-item {
        width: 9em;
        height: 12em;
    }
}
