/*
Theme Name: Thibaut Portfolio
Author: Thibaut Piquet
Version: 1.0
*/

@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

/* Vos styles personnalisés */

.project-marquee-section {
  position: relative;
}

.project-marquee-fade {
  background: linear-gradient(to right, #cfc1ae 0%, rgba(207, 193, 174, 0) 100%);
}

.project-marquee-fade--right {
  background: linear-gradient(to left, #cfc1ae 0%, rgba(207, 193, 174, 0) 100%);
}

.marquee-row {
  overflow: hidden;
  width: 100%;
  transform: translateZ(0);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  will-change: transform;
  transition: transform 0.35s ease;
}

.project-shot {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #f4f1ea;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.project-shot--sm {
  width: 435px;
  height: 250px;
}

.project-shot--md {
  width: 435px;
  height: 265px;
}

.project-shot--lg {
  width: 410px;
  height: 280px;
}

.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.project-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(0,0,0,0.03));
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.project-shot:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(17, 17, 17, 0.18);
  box-shadow: 0 22px 50px rgba(17, 17, 17, 0.12);
  z-index: 5;
}

.project-shot:hover img {
  transform: scale(1.05);
  filter: saturate(1.02) contrast(1.01);
}

.project-shot:hover::after {
  opacity: 1;
}

.marquee-left .marquee-track {
  animation: marqueeLeft 38s linear infinite;
}

.marquee-right .marquee-track {
  animation: marqueeRight 38s linear infinite;
}

.marquee-row[data-speed="1"] .marquee-track {
  animation-duration: 38s;
}

.marquee-row[data-speed="1.18"] .marquee-track {
  animation-duration: 33s;
}

.marquee-row[data-speed="0.9"] .marquee-track {
  animation-duration: 43s;
}

.marquee-row[data-speed="1.28"] .marquee-track {
  animation-duration: 29s;
}

.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(calc(-50% - 1rem), 0, 0);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translate3d(calc(-50% - 1rem), 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* TABLETTE */
@media (max-width: 1024px) {
  .marquee-track {
    gap: 1.4rem;
  }

  .project-shot--sm,
  .project-shot--md,
  .project-shot--lg {
    width: 340px;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .project-shot img {
    object-position: center top;
  }

  .marquee-row[data-speed="1"] .marquee-track {
    animation-duration: 34s;
  }

  .marquee-row[data-speed="1.18"] .marquee-track {
    animation-duration: 30s;
  }
}

/* MOBILE PREMIUM */
@media (max-width: 768px) {
  .project-marquee-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .project-marquee-fade {
    width: 1.75rem;
  }

  .marquee-track {
    gap: 0.9rem;
  }

  .project-shot {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.05);
  }

  .project-shot--sm,
  .project-shot--md,
  .project-shot--lg {
    width: 85vw;
    max-width: 350px;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .project-shot img {
    object-fit: cover;
    object-position: center top;
  }

  .marquee-row[data-speed="1"] .marquee-track {
    animation-duration: 26s;
  }

  .marquee-row[data-speed="1.18"] .marquee-track {
    animation-duration: 22s;
  }

  .marquee-row[data-speed="0.9"] .marquee-track {
    animation-duration: 29s;
  }

  .marquee-row[data-speed="1.28"] .marquee-track {
    animation-duration: 20s;
  }
}

/* PETIT MOBILE */
@media (max-width: 480px) {
  .project-marquee-section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .project-marquee-fade {
    width: 1.2rem;
  }

  .marquee-track {
    gap: 0.8rem;
  }

  .project-shot--sm,
  .project-shot--md,
  .project-shot--lg {
    width: 84vw;
    max-width: none;
    aspect-ratio: 16 / 10.4;
  }

  .project-shot {
    border-radius: 11px;
  }

  .project-shot img {
    object-position: center top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none !important;
    transform: none !important;
  }

  .project-shot,
  .project-shot img {
    transition: none !important;
  }
}


.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  height: 40px;
  padding: 0 15px;

  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.45);
  background: transparent;

  font-family: sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #111111;

  transition:
    transform 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;

  cursor: default;
}

.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateY(100%);
  background: #111111;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tag:hover {
  transform: translateY(-2px);
  color: #EEE5DA;
  border-color: #111111;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
}

.tag:hover::before {
  transform: translateY(0);
}

.tag span {
  position: relative;
  z-index: 1;
}


.js-gsap-ready .intro-title,
.js-gsap-ready .intro-text p,
.js-gsap-ready .intro-buttons a,
.js-gsap-ready .intro-card {
  opacity: 0;
  transform: translateY(30px);
}

.js-gsap-ready .intro-card {
  transform: translateX(45px);
}

@media (prefers-reduced-motion: reduce) {
  .js-gsap-ready .intro-title,
  .js-gsap-ready .intro-text p,
  .js-gsap-ready .intro-buttons a,
  .js-gsap-ready .intro-card {
    opacity: 1;
    transform: none;
  }
}


/* Harmonisation globale des images */
.ribbon-media-img {
  filter: brightness(1.06) contrast(0.95) saturate(0.9);
  transition: all 0.4s ease;
}

/* Overlay beige premium subtil */
.ribbon-media-overlay {
  background: linear-gradient(
    180deg,
    rgba(238, 229, 218, 0.08),
    rgba(238, 229, 218, 0.12)
  );
  mix-blend-mode: lighten;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

/* Hover premium (léger) */
.ribbon-media-card:hover .ribbon-media-overlay {
  opacity: 0.3;
}

.ribbon-media-card:hover .ribbon-media-img {
  filter: brightness(1.08) contrast(0.97) saturate(0.95);
}


/* Base shot */
.project-shot {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f4f4f4;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Images harmonisées */
.project-shot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.06) contrast(0.95) saturate(0.9);
  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}

/* Overlay beige subtil */
.project-shot-overlay {
  background: linear-gradient(
    180deg,
    rgba(238, 229, 218, 0.08),
    rgba(238, 229, 218, 0.12)
  );
  mix-blend-mode: lighten;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

/* Hover léger et premium */
.project-shot:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.project-shot:hover .project-shot-img {
  filter: brightness(1.08) contrast(0.97) saturate(0.95);
  transform: scale(1.015);
}

.project-shot:hover .project-shot-overlay {
  opacity: 0.3;
}