@charset "UTF-8";
:root {
  --gap: 1.5rem;
  --speed: 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --closed: 7rem;
  --open: 38rem;
  --accent: #CFB17B;
  --accent-strong: #DCC396;
  --brand-bg: #594748;
  --brand-bg-dark: #33292a;
  --brand-text: #f1dfd9;
  --ig-gap: 0.6rem;
}

@media (max-width: 767px) {
  :root {
    --closed: 100%;
    --open: 100%;
    --gap: 0.8rem;
  }
}
/* régler des petits détails globaux sans surcharger Tailwind */
html,
body {
  height: 100%;
  font-family: minion-pro, serif;
  background-color: black;
}

/* améliorer l'apparence de la sélection de texte (complément à Tailwind) */
::selection {
  background: rgba(249, 249, 249, 0.25);
}

.articles-slider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.articles-slider .head {
  width: 100%;
  margin: 0 auto 30px;
  padding: 70px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  border-bottom: 1px solid rgba(51, 41, 42, 0.5);
}

.articles-slider .head h2 {
  font: 400 1.5rem/1.2 Inter, sans-serif;
  color: var(--brand-text);
}

@media (min-width: 1024px) {
  .articles-slider .head h2 {
    font-size: 2.25rem;
  }
}
.articles-slider .slider {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 1rem;
  background: linear-gradient(120deg, rgba(51, 41, 42, 0.55), rgba(0, 0, 0, 0) 45%, rgba(51, 41, 42, 0.45));
  border-radius: 1.5rem;
  position: relative;
}

.articles-slider .track {
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
  justify-content: center;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 40px;
}

.articles-slider .track::-webkit-scrollbar {
  display: none;
}

.articles-slider .project-card {
  position: relative;
  flex: 0 0 var(--closed);
  height: 34rem;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: flex-basis var(--speed), transform var(--speed);
  border: 1px solid rgba(51, 41, 42, 0.65);
  background: rgba(17, 12, 13, 0.65);
}

.articles-slider .project-card[active] {
  flex-basis: var(--open);
  transform: translateY(-6px);
  box-shadow: 0 18px 55px rgba(17, 12, 13, 0.65), 0 0 0 1px rgba(207, 177, 123, 0.25);
}

.articles-slider .project-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(75%);
  transition: filter 0.3s, transform var(--speed);
}

.articles-slider .project-card:hover .project-card__bg {
  filter: brightness(0.9) saturate(100%);
  transform: scale(1.06);
}

.articles-slider .project-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  background: linear-gradient(180deg, rgba(12, 9, 10, 0.05), rgba(12, 8, 9, 0.6)), linear-gradient(0deg, rgba(12, 9, 10, 0.1), rgba(89, 71, 72, 0.8));
  z-index: 2;
}

.articles-slider .project-card__title {
  color: var(--brand-text);
  font-weight: 700;
  font-size: 1.35rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.articles-slider .project-card__thumb,
.articles-slider .project-card__desc,
.articles-slider .project-card__btn {
  display: none;
}

.articles-slider .project-card[active] .project-card__content {
  flex-direction: row;
  align-items: center;
  padding: 1.2rem 2rem;
  gap: 1.1rem;
}

.articles-slider .project-card[active] .project-card__title {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 2.4rem;
}

.articles-slider .project-card[active] .project-card__thumb,
.articles-slider .project-card[active] .project-card__desc,
.articles-slider .project-card[active] .project-card__btn {
  display: block;
}

.articles-slider .project-card__thumb {
  width: 150px;
  height: 300px;
  border-radius: 0.45rem;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.articles-slider .project-card__desc {
  color: rgba(244, 234, 230, 0.85);
  font-size: 1rem;
  line-height: 1.4;
  max-width: 16rem;
}

.articles-slider .project-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.3rem;
  border: 1px solid rgba(51, 41, 42, 0.6);
  border-radius: 9999px;
  background: var(--accent);
  color: #130e0f;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(17, 12, 13, 0.35);
}

.articles-slider .project-card__btn:hover {
  background: var(--accent-strong);
}

.articles-slider .dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 20px 0;
}

.articles-slider .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(207, 177, 123, 0.35);
  border: 1px solid rgba(51, 41, 42, 0.4);
  cursor: pointer;
  transition: 0.3s;
}

.articles-slider .dot.active {
  background: var(--accent);
  transform: scale(1.2);
  border-color: rgba(207, 177, 123, 0.7);
}

@media (max-width: 767px) {
  .articles-slider .head {
    padding: 30px 15px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .articles-slider .slider {
    padding: 0 15px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    max-height: 80vh;
    /* Ensure it has a height to scroll */
  }
  .articles-slider .track {
    flex-direction: column;
    gap: 0.8rem;
    padding-bottom: 20px;
  }
  .articles-slider .project-card {
    height: auto;
    min-height: 80px;
    flex: 0 0 auto;
    width: 100%;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: rgba(207, 177, 123, 0.3);
    touch-action: pan-y;
  }
  .articles-slider .project-card[active] {
    min-height: 300px;
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }
  .articles-slider .project-card__content {
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem;
    align-items: center;
    gap: 1rem;
  }
  .articles-slider .project-card__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.2rem;
    margin-right: auto;
  }
  .articles-slider .project-card__thumb,
  .articles-slider .project-card__desc,
  .articles-slider .project-card__btn {
    display: none;
  }
  .articles-slider .project-card[active] .project-card__content {
    align-items: flex-start;
    padding: 1.5rem;
  }
  .articles-slider .project-card[active] .project-card__title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
  }
  .articles-slider .project-card[active] .project-card__thumb {
    width: 140px;
    height: 180px;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
  }
  .articles-slider .project-card[active] .project-card__desc {
    font-size: 0.95rem;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .articles-slider .project-card[active] .project-card__btn {
    display: none;
  }
  .articles-slider .dots {
    display: none;
  }
}
/* Image slider */
.images-slider {
  position: relative;
  width: 100%;
  height: clamp(420px, 60vh, 640px);
  border-radius: inherit;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.images-slider .slider {
  position: relative;
  width: 100%;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.images-slider .item {
  width: 200px;
  height: 300px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
  transition: transform 0.1s ease-in-out, left 0.75s ease-in-out, top 0.75s ease-in-out, width 0.75s ease-in-out, height 0.75s ease-in-out;
}

.images-slider .item:nth-child(1),
.images-slider .item:nth-child(2) {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 1;
}

.images-slider .item:nth-child(3) {
  left: 50%;
}

.images-slider .item:nth-child(4) {
  left: calc(50% + 220px);
}

.images-slider .item:nth-child(5) {
  left: calc(50% + 440px);
}

.images-slider .item:nth-child(6) {
  left: calc(50% + 660px);
  opacity: 0;
}

.images-slider .content {
  width: min(30vw, 400px);
  position: absolute;
  top: 50%;
  left: 3rem;
  transform: translateY(-50%);
  font: 400 0.85rem helvetica, sans-serif;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: none;
}

.images-slider .content .title {
  font-family: "arial-black";
  text-transform: uppercase;
  font-size: 1.2rem;
}

.images-slider .content .description {
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
}

.images-slider .content button {
  width: fit-content;
  background-color: rgba(0, 0, 0, 0.1);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 0.25rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.images-slider .content button:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

.images-slider .item:nth-of-type(2) .content {
  display: block;
  animation: slider-show 0.75s ease-in-out 0.3s forwards;
}

@keyframes slider-show {
  0% {
    filter: blur(5px);
    transform: translateY(calc(-50% + 75px));
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%);
  }
}
.images-slider .slider-nav {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
  user-select: none;
}

.images-slider .slider-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.5);
  color: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(0, 0, 0, 0.6);
  margin: 0;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.images-slider .slider-nav .btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.images-slider .slider-nav .btn ion-icon {
  font-size: 1.25rem;
}

@media (min-width: 651px) and (max-width: 900px) {
  .images-slider .content .title {
    font-size: 1rem;
  }
  .images-slider .content .description,
  .images-slider .content button {
    font-size: 0.7rem;
  }
  .images-slider .item {
    width: 160px;
    height: 270px;
  }
  .images-slider .item:nth-child(4) {
    left: calc(50% + 170px);
  }
  .images-slider .item:nth-child(5) {
    left: calc(50% + 340px);
  }
  .images-slider .item:nth-child(6) {
    left: calc(50% + 510px);
  }
}
@media (max-width: 650px) {
  .images-slider {
    height: clamp(380px, 65vh, 520px);
  }
  .images-slider .content .title {
    font-size: 0.9rem;
  }
  .images-slider .content .description,
  .images-slider .content button {
    font-size: 0.7rem;
  }
  .images-slider .item {
    width: 130px;
    height: 220px;
  }
  .images-slider .item:nth-child(4) {
    left: calc(50% + 140px);
  }
  .images-slider .item:nth-child(5) {
    left: calc(50% + 280px);
  }
  .images-slider .item:nth-child(6) {
    left: calc(50% + 420px);
  }
  .images-slider .slider-nav {
    bottom: 1.5rem;
  }
}
/* modal pour afficher l'image en grand */
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.image-modal.hidden {
  display: none;
}

.image-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 0;
}

.image-modal-content {
  position: relative;
  z-index: 1;
  width: 85vw;
  height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.image-modal-image-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.image-modal-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.image-modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  z-index: 2;
  pointer-events: auto;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* texte descriptif sous l image */
.image-modal-caption {
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 1rem 0;
  line-height: 1.5;
}

@media (max-width: 650px) {
  .image-modal {
    padding: 1rem;
  }
  .image-modal-content {
    width: 85vw;
    height: 85vh;
  }
  .image-modal-close {
    top: -3rem;
    width: 2rem;
    height: 2rem;
  }
}
@media (min-width: 1024px) {
  .image-modal-content {
    flex-direction: column;
    gap: 0;
    align-items: center;
    width: auto;
    /* Allow shrinking */
    max-width: 95vw;
  }
  .image-modal-image-wrapper {
    display: flex;
    flex-direction: column;
    width: min-content;
    /* Shrink to fit the widest child (the image) */
    max-width: 100%;
    gap: 1.5rem;
  }
  .image-modal-content img {
    display: block;
    max-height: 70vh;
    /* Leave room for caption */
    width: auto;
    /* Intrinsic width */
    max-width: 90vw;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
  /* Styled caption block below image */
  .image-modal-caption {
    flex: 0 0 auto;
    width: 100%;
    /* Match wrapper width (which is image width) */
    background: rgba(89, 71, 72, 0.9);
    border: 1px solid rgba(207, 177, 123, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: #f1dfd9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    /* Ensure padding doesn't overflow */
  }
}

/*# sourceMappingURL=styles.css.map */
