/* =========================
       PROJECT
   ========================= */

:root {
  --project-mint: var(--mint-600, #33bfa7);
  --project-bg-alt: rgba(51, 191, 167, 0.05);
  --project-text: #111;
  --project-muted: rgba(0, 0, 0, 0.65);
  --project-line: rgba(0, 0, 0, 0.08);
  --project-radius: 18px;
  --project-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* =========================
   BASE
   ========================= */

.project {
  background: #fff;
  color: var(--project-text);
}

.project h1,
.project h2,
.project h3 {
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.project h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.project h2 {
  font-size: clamp(24px, 3.5vw, 34px);
}

.project h3 {
  margin-top: 20px;
  font-size: 18px;
}

.project p {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--project-muted);
}

.project-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 12px;
  font-size: clamp(28px, 3vw, 38px);
  color: #111;
}

.project-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--project-mint) 0%,
    rgba(123, 225, 206, 0.45) 100%
  );
}
/* =========================
   BOUTONS PAGE PROJET
   ========================= */

.project-buttons .btn {
  min-height: 50px;
  padding: 14px 26px;
  border-radius: 999px;
}

.project-buttons .btn,
.project-buttons .btn:hover,
.project-buttons .btn:focus,
.project-buttons .btn:active,
.project-buttons .btn:visited {
  text-decoration: none;
}

/* =========================
   HERO
   ========================= */

.project-hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--project-line);
}

.project-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  padding: 60px 20px;
}

.project-hero-content .container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.project-hero-content .container > * {
  margin-left: auto;
  margin-right: auto;
}

.project-intro {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
}
/* =========================
   SECTIONS
   ========================= */

.project-section {
  padding: 80px 0;
}

.project-section--alt {
  background: var(--project-bg-alt);
}

.project-section-intro {
  max-width: 720px;
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--project-muted);
}

.project-performance .project-section-intro,
.project-section--center .project-section-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* =========================
   CAROUSEL
   ========================= */

.project-carousel {
  padding: 120px 0;
}
.carousel-title {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 12px;
  text-align: left;
}

.carousel-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--project-mint) 0%,
    rgba(123, 225, 206, 0.45) 100%
  );
}

.carousel-viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 40px;
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--project-line);
  box-shadow: var(--project-shadow);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--project-mint);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: #111;
  transform: translateY(-2px);
}

/* =========================
   GRID 2 COLONNES
   ========================= */

.project-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-col h2 {
  margin-bottom: 25px;
}

.project-col h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.project-col p {
  margin-bottom: 14px;
  line-height: 1.6;
}

/* =========================
   QUOTE
   ========================= */

.project-quote-section {
  padding: 120px 0;
  text-align: center;
}

.project-quote {
  position: relative;
  max-width: 28ch;
  margin: 0 auto;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  color: #111;
}

.project-quote::before {
  content: '“';
  position: absolute;
  top: -30px;
  left: -40px;
  font-size: 90px;
  color: var(--project-mint);
  opacity: 0.8;
}

.project-quote::after {
  content: '”';
  position: absolute;
  right: -35px;
  bottom: -50px;
  font-size: 90px;
  color: var(--project-mint);
  opacity: 0.8;
}



/* =========================
   IMAGES
   ========================= */

.project-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 30px auto 0;
  justify-items: center;
}

.project-images img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: var(--project-radius);
  border: 1px solid var(--project-line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Version 1 seule image plus large mais plus compacte */
.project-images--single {
  display: block;
  max-width: 760px;
  margin: 28px auto 0;
}

.project-images--single img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 4px;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--project-line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}

@media (max-width: 900px) {
  .project-images--single {
    max-width: 620px;
    margin-top: 24px;
  }

  .project-images--single img {
    aspect-ratio: 16 / 11;
    border-radius: 16px;
    padding: 4px;
  }
}

@media (max-width: 640px) {
  .project-images--single {
    max-width: 92%;
  }

  .project-images--single img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    padding: 3px;
  }
}

/* =========================
   PERFORMANCE
   ========================= */

.project-performance {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.project-performance p {
  max-width: 720px;
  margin: 0 auto 30px;
}

.project-pagespeed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.project-pagespeed {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--project-line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

/* =========================
   CTA FINAL
   ========================= */

.project-cta {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--project-line);
}

.project-buttons {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 980px) {
  .project-section,
  .project-carousel,
  .project-quote-section,
  .project-cta {
    padding: 56px 0;
  }

  .project-grid-2 {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .carousel-track img {
    flex: 0 0 75%;
  }

  .project-quote {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  
.project-section,
.project-carousel,
.project-quote-section,
.project-cta {
  padding: 42px 0;
}

  .project-hero {
    height: 360px;
  }

  .project-hero-content {
    padding: 36px 20px;
  }

  .project h1 {
    font-size: clamp(28px, 6vw, 40px);
  }

  .project-intro {
    font-size: 16px;
  }

  .carousel-viewport {
    padding: 0 14px;
    overflow-x: auto;
  }

  .carousel-track {
    display: flex;
    gap: 40px;
  }

  .carousel-track img {
    flex: 0 0 52%;
    width: 100%;
  }

  .project-pagespeed-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-quote {
    font-size: 22px;
    line-height: 1.35;
    padding: 0 14px;
  }

  .project-quote::before {
    top: -10px;
    left: -6px;
    font-size: 46px;
  }

  .project-quote::after {
    right: -4px;
    bottom: -12px;
    font-size: 46px;
  }
}

@media (max-width: 540px) {
  .project-section,
  .project-carousel,
  .project-quote-section,
  .project-cta {
    padding: 34px 0;
  }

  .carousel-track img {
    flex: 0 0 92%;
  }
}