  :root {
      --bg: #212121;

      --surface: #212121;

      --text: #212121;

      --muted: #a8afb9;

      --accent: #2272ff;

      --ring: #212121;


      --radius: 20px;
      --shadow: 0 10px 30px rgba(0, 0, 0, .5);
      --container: clamp(320px, 92vw, 1200px);
  }

  @media (prefers-color-scheme: light) {
      :root {
          --bg: #f7f8fb;
          --surface: #ffffff;
          --text: #0b0c10;
          --muted: #5b6472;
          --ring: #dde2ea;
          --shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
      }
  }


  * {
      box-sizing: border-box;
  }

  main h1 {
      color: #2272ff;
      font-family: 'Poppins', sans-serif;
      font-size: 3rem;
      justify-items: center;
      padding: 80px 50px 0px 50px;
  }

  body {
      font-family: 'Poppins', sans-serif;
      color: var(--text);
      background: var(--bg);
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      background-color: #212121;
  }

  a {
      color: inherit;
      text-decoration: none;
  }

  img {
      display: block;
      max-width: 100%;
      height: auto;
  }

  /* ========= En-tête de page ========= */
  .page {
      width: var(--container);
      margin: 0 auto;
      padding: clamp(16px, 3vw, 32px);
  }


  .page__title {
      font-size: clamp(26px, 3.2vw, 42px);
      letter-spacing: -.02em;
      font-weight: 700;
  }

  .page__desc {
      color: var(--muted);
      max-width: 70ch;
      font-size: clamp(14px, 1.6vw, 16px);
  }


  .projects {
      display: grid;
      gap: clamp(16px, 2vw, 24px);
      margin-top: clamp(12px, 2.5vw, 28px);
  }


  .project {
      background: var(--surface);
      border: 1px solid var(--ring);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: clip;
      display: grid;
      grid-template-columns: 1fr;
      transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
      will-change: transform;
      background-color: #e6e6e6;
  }

  .project:is(:hover, :focus-within) {
      transform: translateY(-2px);
      box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
      border-color: color-mix(in oklab, var(--accent) 24%, var(--ring));
  }


  @media (min-width: 1000px) {
      .project {
          grid-template-columns: 1.2fr 1fr;
          min-height: 400px;
      }

      .project--image-right {
          grid-template-columns: 1.1fr minmax(260px, .9fr);
      }

      .project--image-right .project__media {
          order: 2;
      }

      .project--image-right .project__body {
          order: 1;
      }
  }

  .project__media {
      position: relative;
      overflow: hidden;
      height: 100%;
      min-height: 100%;
  }

  .project__media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transform: scale(1.01);
      transition: transform .5s ease;
  }
  .project:nth-child(1) .project__media img {
    transform: scale(1.13);
  }

.project:nth-child(2) .project__media img {
  object-position: right center;   
}

  .project:is(:hover, :focus-within) .project__media img {
      transform: scale(1.13);
  }

 .project:nth-child(6).project:is(:hover, :focus-within) .project__media img {
      transform: scale(1);
  }
   .project:nth-child(3).project:is(:hover, :focus-within) .project__media img {
      transform: scale(1);
  } 
     .project:nth-child(1).project:is(:hover, :focus-within) .project__media img {
      transform: scale(1.28);
  } 

  .project__body {
      padding: clamp(14px, 2.4vw, 22px);
      display: grid;
      align-content: center;
      gap: 10px;
  }

  .project__eyebrow {
      color: var(--accent);
      font-weight: 600;
      font-size: .9rem;
      letter-spacing: .04em;
      text-transform: uppercase;
  }

  .project__title {
      font-size: clamp(18px, 2.2vw, 24px);
      letter-spacing: -.01em;
      margin: 0 0 30px 0;
      color: #212121;
  }

  .project__text {
      color: var(--muted);
      margin: 0 0 30px 0;
  }

  .project__meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
  }

  .tag {
      border: 1px solid var(--ring);
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 12px;
      color: var(--muted);
      background: color-mix(in oklab, var(--surface) 85%, transparent);
  }

  .project__cta {
      margin-top: 2px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: color-mix(in oklab, var(--accent) 92%, #fff 0%);
      color: white;
      border-radius: 12px;
      padding: 10px 14px;
      font-weight: 600;
      font-size: 14px;
      border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent);
      transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
      box-shadow: 0 8px 20px color-mix(in oklab, var(--accent) 35%, transparent);
  }

  .project__cta:hover {
      transform: translateY(-1px);
  }

  .project__cta:active {
      transform: translateY(0);
  }


  .project {
      opacity: 0;
      transform: translateY(16px) scale(.995);
  }

  .is-ready .project {
      animation: fadeUp 1s cubic-bezier(.22, .9, .22, 1) forwards;
  }

  .is-ready .project:nth-child(1) {
      animation-delay: 0.2s
  }

  .is-ready .project:nth-child(2) {
      animation-delay: 0.4s
  }

  .is-ready .project:nth-child(3) {
      animation-delay: .6s
  }

  .is-ready .project:nth-child(4) {
      animation-delay: 0.8s
  }

  .is-ready .project:nth-child(5) {
      animation-delay: 1s
  }

  .projects .project:last-child {
      margin-bottom: 50px;
  }

  @keyframes fadeUp {
      to {
          opacity: 1;
          transform: translateY(0) scale(1);
      }
  }

  @media (prefers-reduced-motion: reduce) {
      .project {
          opacity: 1;
          transform: none;
          animation: none !important;
      }

      .project__media img {
          transition: none;
      }

      .project {
          transition: border-color .2s ease;
      }
  }

.image-container {
  position: relative;
  width: 100%;
  max-width: 700px;  
  margin: auto;
  overflow: hidden; 

}

.slider {
  display: flex;
  transition: transform 1.5s ease; 
  gap: 0;
}

.slider img {
  width: 100%;
  height: auto;
  flex-shrink: 0; 
}

.image-container1 {
  position: relative;
  width: 100%;
  max-width: 700px;  
  margin: auto;
  overflow: hidden; 

}

.slider1 {
  display: flex;
  transition: transform 1.5s ease;
  gap: 0; 
}

.slider1 img {
  width: 100%;
  height: auto;
  flex-shrink: 0; 
}


.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.2);
  color: white;
  border: none;
  font-size: 20px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 1000;
}
.arrow:hover { background: #2272ff; }
.arrow.left { left: 20px; }
.arrow.right { right: 20px; }
  