/* ── Reset & base ─────────────────────────────────────────── */
@font-face {
  font-family: "Montserrat";
  src:
    url("../Assets/fonts/montserrat.woff2") format("woff2"),
    url("../Assets/fonts/montserrat.ttf") format("truetype");
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #000000;
  color: #f0f0f0;
  overflow-x: hidden;
}

.brand {
  position: absolute;
  top: 70px;
  left: 80px;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 12px;
  /*pointer-events: auto;*/
}
.brand img {
  height: 150px;
  width: auto;
  opacity: 0.55;
}
.brand span {
  font-size: 4rem;
  font-weight: 500;
  letter-spacing: 5px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  opacity: 0.7;
}

/* ── Section hero (section 1) ─────────────────────────────── */
#section-hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
#hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease;
}
#hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
}
.hero-hooks {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 32px 0 48px;
}
.hero-hooks a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.3s,
    color 0.3s;
}
.hero-hooks a:hover {
  border-color: #fff;
  color: #ddd;
}

/* ── Generic content section ──────────────────────────────── */
.content-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 5px 0px;
  position: relative;
  overflow: hidden;
}

/* text block */
.section-text {
  flex: 1;
  padding: 0 40px;
  z-index: 2;
  position: relative;
}
.section-text h2 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: #fff;
}
.section-text p {
  font-size: 1.2rem;
  line-height: 1.9;
  color: #ccc;
  margin-bottom: 16px;
}

.text-mobile {
  display: none;
}
.text-desktop {
  display: block;
}

/* triangle image container */
.tri-wrap {
  flex: 0 0 55vw;
  height: 800px;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.tri-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

/* Par défaut (impair) : texte à gauche, image à droite */
.content-section:nth-child(odd) .section-text {
  order: 1;
}
.content-section:nth-child(odd) .tri-wrap {
  order: 0;
  margin-left: -6vw;
}
.content-section:nth-child(odd) .tri-wrap img {
  clip-path: polygon(0% 0%, 92% 50%, 0% 100%); /* pointe gauche */
}

/* Pair : image à gauche, texte à droite */
.content-section:nth-child(even) .section-text {
  order: 0;
}
.content-section:nth-child(even) .tri-wrap {
  order: 1;
  margin-right: -6vw;
}
.content-section:nth-child(even) .tri-wrap img {
  clip-path: polygon(100% 0%, 8% 50%, 100% 100%); /* pointe droite */
}

.tri-wrap:hover img {
  transform: scale(1.04);
  filter: brightness(1.15);
}

.tri-wrap .gallery-hint {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 2rem;
  letter-spacing: 2px;
  padding: 6px 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

/* ── Projects section ─────────────────────────────────────── */
#section-projects {
  padding: 80px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#section-projects h2 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 40px;
  text-align: center;
}
.project-zip {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.project-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: -30px 0;
  position: relative;
  cursor: pointer;
}

/* impairs : titre à gauche, triangle à droite */
.project-item:nth-child(odd) {
  flex-direction: row;
}
/* pairs : triangle à gauche, titre à droite */
.project-item:nth-child(even) {
  flex-direction: row-reverse;
}

.project-tri {
  width: 40vw;
  height: 25vw;
  flex-shrink: 0;
  position: relative;
  transition: filter 0.3s;
}
.project-item:hover .project-tri {
  filter: brightness(1.15);
}

.project-tri img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* impairs : triangle pointe à gauche */
.project-item:nth-child(odd) .project-tri img {
  clip-path: polygon(100% 0%, 8% 50%, 100% 100%);
}
/* pairs : triangle pointe à droite*/
.project-item:nth-child(even) .project-tri img {
  clip-path: polygon(0% 0%, 92% 50%, 0% 100%);
}

/* titre vertical */
.project-label {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  padding: 0 16px;
  display: flex;
  align-items: center;
}
/* impairs : titre à gauche du triangle → texte de bas en haut */
.project-item:nth-child(odd) .project-label {
  transform: rotate(0deg);
}
/* pairs : titre à droite du triangle → texte de haut en bas */
.project-item:nth-child(even) .project-label {
  transform: rotate(0deg);
}

.project-label h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.project-label p {
  display: none;
}

/* ── Project detail page ──────────────────────────────────── */
#project-page {
  display: none;
  min-height: 100vh;
  padding: 120px 80px 80px;
  background: #000000;
}
#project-page.active {
  display: block;
}
#app.hidden {
  display: none;
}

#project-page h2 {
  font-size: 2.2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
#project-page p {
  font-size: 1rem;
  line-height: 1.9;
  color: #ccc;
  max-width: 700px;
  margin-bottom: 48px;
}
#project-back {
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  margin-bottom: 60px;
  transition:
    background 0.3s,
    color 0.3s;
}
#project-back:hover {
  background: #fff;
  color: #000;
}

/* project page carousel */
#project-carousel-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.proj-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 5;
}
.proj-arrow:hover {
  background: rgba(0, 0, 0, 0.85);
}
.proj-arrow.left {
  left: 0;
}
.proj-arrow.right {
  right: 0;
}
#project-counter {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-top: 14px;
}

/* ── Carousel overlay ────────────────────────────────────────── */
#carousel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#carousel-overlay.hidden {
  display: none;
}

.carousel-close {
  position: absolute;
  top: 24px;
  right: 36px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: opacity 0.2s;
}
.carousel-close:hover {
  opacity: 0.6;
}

/* ── Bandeau partagé overlay + project page ───────────────────── */
.carousel-track-wrap {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.carousel-track.dragging {
  transition: none;
  cursor: grabbing;
}

/* slide inactive */
.carousel-slide {
  position: relative;
  flex-shrink: 0;
  height: 65vh;
  width: clamp(60px, 10vw, 160px);
  opacity: 0.35;
  transform: scale(0.93);
  transition:
    width 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.carousel-skeleton {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #161616 25%, #2a2a2a 50%, #161616 75%);
  background-size: 200% 100%;
  animation: carousel-skeleton-pulse 1.4s ease-in-out infinite;
}
.carousel-slide.loaded .carousel-skeleton {
  display: none;
}
@keyframes carousel-skeleton-pulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* slide active*/
.carousel-slide.active {
  height: 65vh;
  width: clamp(300px, 55vw, 900px);
  opacity: 1;
  transform: scale(1);
}

/* slide inactive*/
.carousel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.carousel-slide.loaded .slide-thumb {
  opacity: 1;
}
/* image pleine résolution : posée par-dessus la miniature, fondu à l'arrivée */
.carousel-slide.full-loaded .slide-full {
  opacity: 1;
}

/* slide active*/
.carousel-slide.active img {
  object-fit: contain;
  background: #000;
}

#carousel-counter,
#project-counter {
  text-align: center;
  color: #777;
  font-size: 0.82rem;
  letter-spacing: 3px;
  margin-top: 20px;
  font-family: "Montserrat", sans-serif;
}

/* ── Project page carousel wrap ──────────────────────────────── */
#proj-carousel-wrap {
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
}
#proj-track {
  display: flex;
  align-items: center;
  gap: 16px;
  will-change: transform;
  cursor: grab;
  user-select: none;
}
#proj-track.dragging {
  cursor: grabbing;
}

/* ── Pages secondaires (projet & prestations) ─────────────────── */
#project-page,
#prestations-page {
  display: none;
  min-height: 100vh;
  padding: 100px 80px 120px;
  background: #000000;
}
#project-page.active,
#prestations-page.active {
  display: block;
}
#app.hidden {
  display: none;
}

.page-back {
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  margin-bottom: 60px;
  transition:
    background 0.3s,
    color 0.3s;
}
.page-back:hover {
  background: #fff;
  color: #000;
}

/* ── Project page carousel ────────────────────────────────── */
#project-page h2 {
  font-size: 2.2rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
#project-page > p {
  font-size: 1rem;
  line-height: 1.9;
  color: #ccc;
  max-width: 700px;
  margin-bottom: 48px;
}
#project-carousel-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
#project-carousel-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
}

#project-counter {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-top: 14px;
}

/* ── prestations page ─────────────────────────────────────────── */
.prestations-wrap {
  max-width: 860px;
  margin: 0 auto;
}
.prestations-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  margin-bottom: 60px;
}
.prestations-intro {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
}

/* socials */
.prestations-socials {
  display: flex;
  gap: 24px;
  margin-bottom: 64px;
}
.prestations-social-link {
  display: flex;
  align-items: left;
  max-width: 600px;
  gap: 8px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid #333;
  padding: 10px 20px;
  border-radius: 4px;
  margin-bottom: 10px;
  transition:
    border-color 0.3s,
    color 0.3s;
}
.prestations-social-link:hover {
  border-color: #fff;
  color: #fff;
}

/* blocks */
.prestations-block {
  margin-bottom: 64px;
}
.prestations-block h2 {
  font-size: 1.4rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2a2a;
}

.prestations-block h3 {
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2px;
  padding-bottom: 12px;
}

/* pricing */
.prestations-pricing {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.prestations-pricing-item {
  background: #141414;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 24px 28px;
  transition: border-color 0.3s;
}
.prestations-pricing-item:hover {
  border-color: #444;
}
.prestations-pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.prestations-pricing-header h3 {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}
.prestations-price {
  font-size: 0.9rem;
  color: #aaa;
  letter-spacing: 1px;
}
.prestations-pricing-item p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
}

/* conditions */
.prestations-conditions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prestations-conditions li {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.prestations-conditions li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #444;
}

/* form */
.prestations-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}
.prestations-form input,
.prestations-form textarea {
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #f0f0f0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  padding: 14px 18px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s;
}
.prestations-form input:focus,
.prestations-form textarea:focus {
  border-color: #666;
}
.prestations-form textarea {
  min-height: 140px;
  resize: vertical;
}
.prestations-form button {
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
  align-self: flex-start;
  min-width: 180px;
}
.prestations-form button:hover {
  background: #fff;
  color: #000;
}

/* ── Footer ───────────────────────────────────────────────── */
#site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 40px;
  background: #7a725d;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
#site-footer.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.footer-link {
  background: none;
  border: none;
  color: #bbb;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #fff;
}

.footer-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.footer-brand {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}
.footer-brand img {
  height: 28px;
  width: auto;
}
.footer-brand span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  text-transform: uppercase;
}

.footer-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}
#footer-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
#footer-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #bbb;
  border-radius: 2px;
  transition: background 0.3s;
}
#footer-menu-btn:hover span {
  background: #fff;
}

.footer-dropdown {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  min-width: 200px;
  padding: 8px 0;
  font-weight: bold;
  display: flex;
  flex-direction: column;
}
.footer-dropdown.hidden {
  display: none;
}
.footer-dropdown a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 24px;
  transition:
    background 0.2s,
    color 0.2s;
  cursor: pointer;
}
.footer-dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hidden {
  display: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1300px) {
}

@media (max-width: 900px) {
  #section-hero {
    height: calc(100vh - 50px);
    margin-bottom: 15px;
  }
  .content-section {
    flex-direction: row;
    padding: 0;
    min-height: auto;
    margin-bottom: 10%;
  }
  .text-desktop {
    display: none;
  }
  .text-mobile {
    display: block;
  }
  .tri-wrap {
    flex: 0 0 50vw;
    height: 55vw;
    margin: -4vw 0;
  }
  .tri-wrap.right {
    margin-right: -8vw;
  }
  .tri-wrap.left {
    margin-left: -8vw;
  }
  .section-text {
    flex: 1;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .tri-wrap .gallery-hint {
    letter-spacing: 0px;
    padding: 0px 6px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.2);
  }
  .section-text h2 {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .section-text p {
    font-size: 0.75rem;
    line-height: 1.6;
  }
  .hero-hooks {
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 12px 28px;
  }

  .project-tri {
    width: 80vw;
    height: 45vw;
    flex-shrink: 0;
    position: relative;
    transition: filter 0.3s;
  }
  .brand {
    top: 20px;
    left: 20px;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
  }
  .brand img {
    height: 60px;
  }
  .brand span {
    font-size: 1.4rem;
    letter-spacing: 3px;
    max-width: 50vw;
  }
  #project-page {
  padding: 100px 20px 20px;
}
  .footer-insta {
    font-size: 0;
    padding: 6px;
    gap: 0;
  }
  .footer-insta svg {
    width: 20px;
    height: 20px;
  }

  .footer-brand span {
    display: none;
  }
  .footer-brand img {
    height: 26px;
  }

  #site-footer {
    padding: 0 20px;
  }
  .footer-left {
    gap: 16px;
  }
}
