/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/projets/style.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
/* ==================================================
   PROJETS PAGE
================================================== */

.projets-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #f5f5f5;
  overflow-x: hidden;
}

.projets-main {
  flex: 1 1;
  padding: 150px 0 100px;
  position: relative;
  z-index: 1;
  background: #000;
}

/* CONTAINER CENTRAL */
.projets-main > .container {
  width: 90%;
  max-width: 1400px;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
}

/* ==================================================
   HEADER
================================================== */

.projects-section-header {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 100px;
  padding: 0 20px;
  position: relative;
}

.projets-title {
  font-size: 38px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
}

.projets-title::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(224,31,38,1),
    transparent
  );
  box-shadow: 0 0 20px rgba(224,31,38,.6);
}

.projects-subtitle {
  margin-top: 48px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(227,227,227,.9);
}

/* ==================================================
   PROJECTS LIST – DESKTOP
================================================== */

.projects-list-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1400px;
  margin: auto;
}

.project-item-horizontal {
  display: flex;
  width: 100%;
  height: 620px;
  position: relative;
}

/* Overlap desktop */
.projects-list-column .project-item-horizontal:nth-child(2),
.projects-list-column .project-item-horizontal:nth-child(3) {
  margin-top: -85px;
}

/* ==================================================
   PROJECT CONTENT – DESKTOP
================================================== */

.project-content {
  width: 50%;
  height: 535px;
  background: #fff;
  padding: 40px 40px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Coupe premier projet */
.projects-list-column
  .project-item-horizontal:first-child
  .project-content {
  -webkit-clip-path: polygon(80px 0, 100% 0, 100% 100%, 0 100%, 0 80px);
          clip-path: polygon(80px 0, 100% 0, 100% 100%, 0 100%, 0 80px);
}

/* ==================================================
   IMAGE – DESKTOP
================================================== */

.project-image-wrapper {
  width: 50%;
  height: 535px;
  overflow: hidden;
}

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

/* ==================================================
   ORDER DESKTOP
================================================== */

.project-item-horizontal.image-right .project-content { order: 1; }
.project-item-horizontal.image-right .project-image-wrapper { order: 2; }

.project-item-horizontal.image-left .project-content { order: 2; }
.project-item-horizontal.image-left .project-image-wrapper { order: 1; }

/* ==================================================
   TEXT
================================================== */

.project-title {
 font-size: 36px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-subtitle {
   font-size: 36px;
  color: #5a5a5a;
  margin: 0;
  font-weight: 400;
}

.project-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-features li {
   color: #5a5a5a;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  padding-left: 24px;
}

.project-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #000;
  font-size: 20px;
  line-height: 1;
}

.project-action {
  margin-top: auto;
}

/* ==================================================
   BUTTON STYLES
================================================== */

.projectAction {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  border: none !important;
  margin-top: 40px !important;
  align-self: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.projectAction:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.projectAction.btn,
.projectAction.btn.primary {
  border: none !important;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  background: transparent;
}

.projectAction .icon-square {
  width: 46px;
  height: 46px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none !important;
  outline: none !important;
}

.projectAction:hover .icon-square {
  transform: scale(1.05);
}

.projectAction .icon-square img {
  width: 25px;
  height: 25px;
  transition: transform 0.3s ease;
}

.projectAction:hover .icon-square img {
  transform: rotate(5deg);
}

.projectAction .icon-square-white {
  background: #000;
  color: #fff;
  border: none !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

.projectAction .icon-square-white img {
  filter: brightness(0) invert(1);
}

.projectAction > span:not(.icon-square) {
  background: var(--primary);
  color: #fff;
  border: none;
  border-left: none;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 14px 26px 15px 26px;
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 15px;
}

.projectAction:hover > span:not(.icon-square) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ==================================================
   RESPONSIVE – TABLET
================================================== */

@media (max-width: 1024px) {
  .projets-main > .container {
  width: 100%;
}
  .projects-list-column { padding: 0 40px; }
  .project-item-horizontal {
    flex-direction: column;
    height: auto;
  }
}
/* ==================================================
   MOBILE – FINAL VERSION (ALIGNED CARDS)
================================================== */

@media (max-width: 768px) {

  .projets-main {
    padding: 80px 10px 60px;
  }

  /* Horizontal scroll */
  .projects-list-column {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
    gap: 16px;
    padding: 0 16px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .projects-list-column::-webkit-scrollbar {
    display: none;
  }
.project-features{
  margin-top: 20px;
}
  /* Card */
  .project-item-horizontal {
    min-width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    scroll-snap-align: start;
    margin: 0 !important;
  }

  /* ✅ IMAGE : même hauteur pour toutes les cartes */
  .project-image-wrapper {
    order: 1 !important;
    width: 100%;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    overflow: hidden;
    flex-shrink: 0;
  }

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

  /* ✅ CONTENT : structure identique */
  .project-content {
    order: 2 !important;
    width: 100%;
    min-height: 350px;
    height: auto;
    padding: 28px 22px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    -webkit-clip-path: none !important;
            clip-path: none !important;
  }

  /* Bouton toujours aligné en bas */
  .project-action {
    margin-top: auto;
    margin-top: 20px;
  }

  /* Supprimer overlap desktop */
  .projects-list-column .project-item-horizontal:nth-child(2),
  .projects-list-column .project-item-horizontal:nth-child(3) {
    margin-top: 0 !important;
  }

  /* Typo */
  .project-title {
    font-size: 32px;
  }
}

/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 480px) {
  .projets-title { font-size: 24px; }
  .project-title { font-size: 20px; }
  .project-subtitle { font-size: 20px; }
  .project-features li {font-size: 12px;}
}



