/* =========================================================
   FONTS
   ========================================================= */
@font-face {
  font-family: "Oniria";
  src: url(fonts/Oniria-Regular.otf) ;
}

@font-face {
  font-family: "Arimo-Regular";
  src: url(fonts/Arimo-VariableFont_wght.ttf) ;
}

@font-face {
  font-family: "Arimo-Italic";
  src: url(fonts/Arimo-Italic-VariableFont_wght.ttf) ;
}


  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    font-family: "Arimo-Regular", sans-serif;
    font-variation-settings: "wght" 600;
    background: #f0f0f0;
    color: #070707;
    overflow: hidden;
   }

   main {
     flex: 1 0 auto;
     display: flex;
     flex-direction: column;
     justify-content: flex-end;
     margin-top: auto;
   }


   .projects-layout {
     display: flex;
     flex-direction: column;
     align-items: stretch;
     min-height: 0;
     margin-top: 0;
     margin-bottom: 0;
     flex: 1 1 auto;
   }

   .projects-layout:not(.has-project-selected) .projects-visuals {
     display: none;
   }

   .projects-layout.has-project-selected {
     display: grid;
     grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
     grid-template-rows: minmax(0, 1fr) auto;
     align-items: stretch;
     min-height: calc(100vh - 78px);
   }

   .projects-layout.has-project-selected .projects-visuals {
     grid-column: 1;
     grid-row: 1;
     width: 100%;
     height: 100%;
     min-height: 220px;
     display: flex;
     align-items: center;
     justify-content: flex-start;
     padding: 0rem 1rem 2.5rem 0;
     box-sizing: border-box;
     overflow-y: auto;
     overflow-x: hidden;
     scrollbar-width: none;
     -ms-overflow-style: none;
     max-height: calc(100vh - 90px);
     transform: translateY(-0.2rem);
   }

   .projects-copy {
     display: none;
   }

   .projects-layout.has-project-selected .projects-copy {
     grid-column: 2;
     grid-row: 1;
     position: relative;
     display: flex;
     align-items: flex-start;
     justify-content: flex-start;
     padding: 0 2rem 0 0;
     box-sizing: border-box;
     width: 100%;
     min-height: 220px;
     transform: translateY(-0.6rem);
   }

   .projects-layout.has-project-selected .projects-visuals::-webkit-scrollbar {
     display: none;
   }

   .projects-layout.has-project-selected .projects-visuals:not(:has(.project-visual-grid > img:nth-child(3))) {
     align-items: center;
   }

   .project-visual {
     display: none;
     width: 100%;
     max-width: none;
     max-height: 100%;
     margin: 0 auto;
   }

   .project-visual.is-active {
     display: block;
   }

   .project-visual-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(240px, max-content));
     gap: 0;
     width: 100%;
     align-items: center;
     justify-content: center;
     padding-bottom: 0;
   }

   .project-visual-grid img {
     width: 100%;
     max-width: none;
     height: auto;
     max-height: none;
     object-fit: contain;
     display: block;
     background: transparent;
     opacity: 0;
     transform: scale(0.995);
     transition: opacity 2.4s ease, transform 2.4s ease;
     margin: 0;
   }

   .project-visual-grid img.is-horizontal {
     grid-column: 1 / -1;
     width: 100%;
     max-width: none;
     max-height: none;
     object-fit: contain;
     justify-self: stretch;
   }

   .project-visual-grid img.is-wide {
     grid-column: 1 / -1;
     width: 100%;
     max-width: none;
     height: auto;
     max-height: none;
     object-fit: contain;
     justify-self: stretch;
   }

   .project-visual-grid img.is-loaded {
     opacity: 1;
     transform: scale(1);
   }

   body.lightbox-open {
     overflow: hidden;
   }

   .image-lightbox {
     position: fixed;
     inset: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     background: rgba(0, 0, 0, 0.82);
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.45s ease, visibility 0.45s ease;
     z-index: 9999;
     padding: 2rem;
     box-sizing: border-box;
   }

   .image-lightbox.open {
     opacity: 1;
     visibility: visible;
   }

   .lightbox-image {
     display: block;
     max-width: min(90vw, 1200px);
     max-height: 88vh;
     width: auto;
     height: auto;
     object-fit: contain;
     background: rgba(255, 255, 255, 0.04);
     box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
     transform: scale(0.92);
     opacity: 0;
     transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
   }

   .image-lightbox.open .lightbox-image {
     transform: scale(1);
     opacity: 1;
   }

   .projects-col {
     min-height: 100%;
     box-sizing: border-box;
     background: transparent;
   }

   .projects-col--side {
     width: 100%;
     min-height: 100%;
     order: 1;
     padding: 0;
     display: flex;
     flex-direction: column;
     align-items: stretch;
     justify-content: flex-start;
     color: #f0f0f0;
     align-self: stretch;
   }

   .projects-layout.has-project-selected .projects-col--side {
     grid-column: 1 / -1;
     width: 100%;
     align-self: stretch;
     height: auto;
   }

   .projects-layout.has-project-selected .projects-filters {
     display: none;
   }

   .projects-filters {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 0.5rem;
     margin: 0 0 1rem;
     padding: 0 1.5rem 0 2rem;
     width: 100%;
     box-sizing: border-box;
   }

   .filter-btn {
     appearance: none;
     border: 2px solid #070707;
     background: transparent;
     color: #070707;
     padding: 0.5rem 0.75rem;
     cursor: pointer;
     font-family: "Arimo-Regular", sans-serif;
     font-size: 0.92rem;
     font-variation-settings: "wght" 700;
     letter-spacing: 0.05em;
     text-transform: uppercase;
     line-height: 1.2;
     transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
   }

   .filter-btn:hover,
   .filter-btn:focus-visible,
   .filter-btn.is-active {
     background: #070707;
     color: #f5f5f0;
     border-color: #070707;
   }

   .projects-list {
     width: 100%;
     display: flex;
     flex-direction: column;
     justify-content: flex-end;
     margin-left: 0;
     margin-top: auto;
     margin-bottom: 0;
     transition: all 0.35s ease;
   }

   .project-item.is-hidden-by-filter {
     display: none;
   }

   .project-item {
     display: block;
     width: 100%;
     order: var(--project-order, 0);
     padding-left: 2rem;
     padding-right: 1.5rem;
     padding-top: 0.5rem;
     padding-bottom: 0.5rem;
     color:black;
     text-decoration: none;
     font-family: "Arimo-Regular", sans-serif;
     font-size: 1rem;
     font-variation-settings: "wght" 600;
     letter-spacing: 0.05em;
     border-top: 2px solid #070707;
     box-sizing: border-box;
     text-transform: uppercase;
     transition: opacity 0.7s ease, color 0.18s ease;
   }

   .project-item:hover,
   .project-item:focus-visible,
   .project-item:hover .project-line,
   .project-item:focus-visible .project-line,
   .project-item:hover .project-year,
   .project-item:hover .project-name,
   .project-item:hover .project-category,
   .project-item:focus-visible .project-year,
   .project-item:focus-visible .project-name,
   .project-item:focus-visible .project-category {
     color: #afadac;
   }

   .project-item.is-active:hover,
   .project-item.is-active:hover .project-line,
   .project-item.is-active:hover .project-year,
   .project-item.is-active:hover .project-name,
   .project-item.is-active .project-category {
     color: black;
   }

  
   .projects-layout:not(.has-project-selected) .project-item {
     opacity: 1;
     max-height: 999px;
     padding-top: 0.5rem;
     padding-bottom: 0.5rem;
     border-top: 2px solid #070707;
     overflow: visible;
     pointer-events: auto;
   }

   .projects-layout.has-project-selected .project-item:not(.is-active) {
     opacity: 0;
     max-height: 0;
     padding-top: 0;
     padding-bottom: 0;
     border-top: none;
     overflow: hidden;
     pointer-events: none;
   }

   .project-item.is-active {
     order: 999;
     margin-top: auto;
     border-top: 2px solid #070707;
     transition: opacity 1.3s ease, transform 1.4s ease, padding 1.4s ease, max-height 1.4s ease, margin 1.4s ease, border-color 1.4s ease;
   }

   .projects-layout.has-project-selected .project-item.is-active,
   .projects-layout.has-project-selected .project-item:not(.is-active) {
     border-top-color: transparent;
   }

   .projects-layout.has-project-selected .project-item.is-active {
     border-top: none;
   }

   .project-visual {
     display: none;
     width: 100%;
     max-height: 100%;
     opacity: 0;
     transform: translateY(14px);
     transition: opacity 1.4s ease, transform 1.4s ease;
   }

   .project-visual.is-active {
     display: block;
     opacity: 1;
     transform: translateY(0);
   }

   .project-description {
     position: absolute;
     inset: 0 auto auto 0;
     display: block;
     width: min(100%, 30rem);
     max-width: 100%;
     opacity: 0;
     visibility: hidden;
     color: #f0f0f0;
     transform: translateY(18px) scale(0.985);
     transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease, visibility 0s linear 0.5s;
     padding-left: 0.75rem;
     box-sizing: border-box;
     align-self: flex-end;
     pointer-events: none;
   }

   .project-description.is-active {
     position: relative;
     opacity: 1;
     visibility: visible;
     color: #070707;
     transform: translateY(0.35rem) scale(1);
     transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease, visibility 0s linear 0s;
   }

   .project-description h2 {
     margin: 0 0 0.55rem;
     font-family: "Arimo-Regular", sans-serif;
     font-size: 0.9rem;
     font-weight: 500;
     font-variation-settings: "wght" 500;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: inherit;
     transition: color 2.4s ease;
   }

   .project-description p {
     margin: 0;
     font-family: "Arimo-Regular", sans-serif;
     font-size: 1rem;
     font-variation-settings: "wght" 600;
     color: inherit;
     transition: color 2.4s ease;
   }

   .project-line {
     display: flex;
     align-items: baseline;
     gap: 4rem;
     width: 100%;
   }

   .project-year {
     display: inline-block;
     min-width: 3.5rem;
     color: black;
     font-family: "Arimo-Regular", sans-serif;
     font-size: 1rem;
     font-variation-settings: "wght" 600;
     letter-spacing: 0.08em;
     text-transform: uppercase;
   }

   .project-name {
     display: inline-block;
     flex: 1 1 auto;
     
   }

   .project-category {
     display: inline-block;
     margin-left: auto;
     color: black;
     font-family: "Arimo-Regular", sans-serif;
     font-size: 1rem;
     text-align: right;
   }

   .project-item:first-child {
     border-top: none;
   }

   .projects-heading {
     margin: 0;
     padding: 0rem 1rem 1rem;
     font-family: "Arimo-Regular", sans-serif;
     color: #070707;
   }

   .hero-title {
     flex: 1 0 auto;
     background: transparent;
     width: 100%;
   }

    header.site-header {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background:#F0F0F0;
      color: #070707;
      padding: 0.5rem 1rem;
    }

    header.site-header h1 {
      margin: 0;
      margin-left: 1rem;
      font-family: "Arimo-Regular", sans-serif;
     font-variation-settings: "wght" 500;
      color: #070707;
      font-size: 1rem;
      letter-spacing: 0.03em;
    }
     header.site-header h1:hover  {
      text-decoration: underline;
      text-decoration-thickness: 1.5px;
      text-underline-offset: 2px;
    }

    /* Ensure header navigation texts are black on the projects page */
    header.site-header .header-button,
    header.site-header .header-actions a,
    header.site-header .lang-option {
      color: #070707;
    }

    /* header links inherit color from specific rules below */

    .header-actions {
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    .header-button {
      color: #070707;
      text-decoration: none;
      font-family: "Arimo-Regular", sans-serif;
      font-size: 1rem;
      padding: 0.35rem 0.75rem;
      border-radius: 0.35rem;
      transition: color 0.2s ease, text-decoration-color 0.2s ease;
    }

    html,
    body,
    * {
      cursor: none !important;
    }

    :root {
      cursor: none;
    }


    .cursor-follower {
      position: fixed;
      top: 0;
      left: 0;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 34px;
      pointer-events: none;
      transform: translate(-50%, -50%);
      z-index: 9999;
      transition: transform 0.05s ease-out;
      will-change: transform;
      user-select: none;
      animation: rotate-cursor 2.5s linear infinite;
    }

    .cursor-follower.hover {
      animation: none;
    }

    @keyframes rotate-cursor {
      from {
        transform: translate(-50%, -50%) rotate(0deg);
      }
      to {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }

    .cursor-follower.on-panel {
      color: #070707;
    }

    .lang-option {
      opacity: 0.35;
      color: #999 !important;
      transition: opacity 0.2s ease;
    }

    .lang-option.active {
      opacity: 1;
      color: #070707 !important;
    }

    .lang-toggle {
      text-decoration: none;
    }

    .lang-toggle .lang-option {
      text-decoration: none;
      cursor: pointer;
    }

    .lang-toggle .lang-option:hover {
      text-decoration: underline;
      text-decoration-thickness: 1.5px;
      text-underline-offset: 2px;
    }

    .about-panel-link.lang-toggle:hover,
    .about-panel-link.lang-toggle:focus-visible,
    .header-button.lang-toggle:hover,
    .header-button.lang-toggle:focus-visible {
      text-decoration: none;
    }

    .hero-title {
      position: relative;
      z-index: 0;
      width: 100%;
      margin-top: 0;
      padding-top: 6rem;
      padding-bottom: 5rem;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: visible;
      min-height: 38vh;
    }

    .hero-title h2 {
      margin: 0 auto;
      max-width: 95%;
      text-align: center;
      font-family: "Oniria", sans-serif;
      font-size: clamp(6rem, 18vw, 12rem);
      font-weight: 400;
      font-style: normal;
      font-variation-settings: normal;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      line-height: 0.95;
      letter-spacing: 0.05em;
      color: transparent;
      text-shadow: none;
      transform: translateX(1.5rem);
    }



    .panel-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      z-index: 9;
    }

    .panel-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .about-panel {
      position: fixed;
      top: 0;
      right: 0;
      height: 100%;
      width: min(80vw, 95%);
      max-width: 80rem;
      background: #f0f0f0;
      color: #070707;
      transform: translateX(100%);
      transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 10;
      display: flex;
      flex-direction: column;
      padding: 2rem;
      box-shadow: -16px 0 50px rgba(0, 0, 0, 0.18);
    }

    .about-panel.open {
      transform: translateX(0);
    }

    .about-panel .close-panel {
      margin-left: auto;
      border: none;
      background: transparent;
      color: #070707;
      font-size: 1rem;
      cursor: pointer;
      padding: 0.25rem;
    }

    .about-panel .about-content {
      font-family: "Arimo-Regular", sans-serif;
      margin-top: 3rem;
      margin-left: 3rem;
      max-width: 34rem;
      line-height: 1.45;
    }

    .about-panel-nav {
      position: absolute;
      top: 0rem;
      right: 1rem;
      display: flex;
      align-items: center;
      gap: 1.5rem;
      background: transparent;
      padding: 0.75rem 1rem;
      border-radius: 0.75rem;
      color: #070707;
      font-family: "Arimo-Regular", sans-serif;
      font-size: 0.95rem;
      z-index: 11;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .about-panel.open .about-panel-nav {
      opacity: 1;
      transition-delay: 0.5s;
      pointer-events: auto;
    }

    .about-panel-link {
      color: #070707;
      text-decoration: none;
      font-weight: 500;
    }

    .about-panel-link:hover,
    .about-panel-link:focus-visible {
      text-decoration: underline;
    }

    .about-panel h3 {
      margin: 0 0 1rem;
      font-family: "Arimo-Regular", sans-serif;
      font-size: 1.5rem;
       color: #999;
    }

    .about-panel p {
      margin: 0 0 1rem;
    }

    .about-extra {
      display: flex;
      flex-wrap: wrap;
      gap: 2.5rem;
      margin-top: 7rem;
      font-size: 0.95rem;
      line-height: 1.3;
      color: black;
      max-width: 100%;
    }

    /* Decorative eyes in about panel */
    .eyes {
      position: absolute;
      right: 4rem;
      bottom: 8rem;
      display: flex;
      gap: 0.75rem;
      z-index: 12;
      align-items: center;
      pointer-events: none;
    }

    .eye {
      width: 56px;
      height: 36px;
      background: #fff;
      position: relative;
      border-radius: 50% / 60%;
      border: 3px solid #070707;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: inset 0 2px 0 rgba(0,0,0,0.05);
    }

    .eye .pupil {
      width: 18px;
      height: 18px;
      background: #070707;
      border-radius: 50%;
      transform: translate(0px, 0px);
      transition: transform 0.05s linear;
      will-change: transform;
    }


    /* Eyelid (used for blink effect) */

    .eye::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 0%;
      /* match panel background to 'erase' the top of the eye */
      background: #f0f0f0;
      z-index: 2;
      transition: height 320ms cubic-bezier(.2,.9,.3,1);
      pointer-events: none;
      border-bottom-left-radius: 50% 40%;
      border-bottom-right-radius: 50% 40%;
    }

    /* When blinking, slide the eyelid down to cover the upper portion.
       Also hide the top border so only the lower curve remains visible. */
    .eye.blink::after {
      height: 62%;
    }

    .eye.blink {
      /* make the top border blend with background to visually remove it */
      border-top-color: #f0f0f0;
    }

    .eye.blink .pupil {
      opacity: 0;
      transition: opacity 80ms linear;
    }

    .about-references,
    .about-contact {
      margin: 0;
      flex: 1 1 40%;
      min-width: 12rem;
      max-width: 18rem;
      text-align: left;
    }

    .about-references {
      margin-right: 2rem;
    }

    .about-references span,
    .about-contact span {
      display: block;
      margin-bottom: 0.35rem;
      font-weight: 500;
    }

    .about-label {
      color: #999;
    }

    .about-label--references,
    .about-label--contact {
      color: #999;
    }

    .about-link {
      color: #070707;
      text-decoration: none;
      transition: text-decoration-color 0.2s ease;
    }

    .about-link.about-link-muted {
      color: #999;
    }

    .about-link:hover,
    .about-link:focus-visible {
      text-decoration: underline;
    }

    .about-references {
      width: 18rem;
    }

    .about-contact {
      width: 16rem;
    }

    .about-contact {
      flex: 1 1 35%;
      min-width: 12rem;
    }

    .gif-screen {
      min-height: calc(100vh + 4rem);
      width: 100%;
      background: #000;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: 3rem 1rem 2.5rem;
      margin-top: -3rem;
    }

    .gif-screen .center-gif {
      margin-top: 5rem;
      max-width: 90%;
      max-height: 68vh;
      display: block;
    }

    .hero-title {
      background: #f0f0f0;
    }

    .header-button {
      color: #f0f0f0;
      text-decoration: none;
      font-family: "Arimo-Regular", sans-serif;
      font-size: 0.95rem;
      padding: 0.35rem 0.75rem;
      border-radius: 0.35rem;
      transition: color 0.2s ease, text-decoration-color 0.2s ease;
    }

    .header-button:hover,
    .header-button:focus-visible {
      background: transparent;
      
      text-decoration: underline;
      text-decoration-thickness: 1.5px;
      text-underline-offset: 2px;
    }

    header.site-header p {
      margin: 0.35rem 0 0;
      font-size: 0.95rem;
      color: #cbd5e1;
    }

    .site-footer {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100%;
      background: #f0f0f0;
      color: #070707;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.75rem 1rem;
      box-sizing: border-box;
      z-index: 5;
    }

    .site-footer__left,
    .site-footer__right {
      margin: 0;
      font-family: "Arimo-Regular", sans-serif;
      font-size: 0.7rem;
      letter-spacing: 0.08em;
      text-transform: none;
      color: #070707;
      flex: 1 1 0;
    }

    .site-footer__left {
      text-align: left;
    }

    .site-footer__right {
      text-align: right;
    }
@media (max-width: 720px) {

  /* =========================================================
     MOBILE — PROJET OUVERT
     ========================================================= */

  body {
    overflow: hidden;
  }

  .eyes {
    display: none !important;
  }


  /* =========================================================
     HEADER — FIXE EN HAUT
     ========================================================= */

  header.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;

    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0.5rem 1rem;

    box-sizing: border-box;

    z-index: 100;
  }


  /* =========================================================
     CONTENEUR DU PROJET OUVERT
     
     1. description
     2. images scrollables
     3. projet actif
     ========================================================= */

  .projects-layout.has-project-selected {
    position: fixed !important;

    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    display: grid !important;

    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    box-sizing: border-box;
  }


  /* =========================================================
     1 — DESCRIPTION
     ========================================================= */

  .projects-layout.has-project-selected .projects-copy {
    grid-column: 1 !important;
    grid-row: 1 !important;

    position: relative !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    display: block !important;

    padding: 0.75rem 1rem 1rem !important;
    margin: 0 !important;

    box-sizing: border-box;

    transform: none !important;

    overflow: visible !important;
  }

.projects-layout.has-project-selected .project-description {
  display: none !important;

  position: relative !important;

  width: 100% !important;
  max-width: none !important;

  padding: 0 !important;
  margin: 0 !important;

  box-sizing: border-box;
}


.projects-layout.has-project-selected .project-description.is-active {
  display: block !important;

  opacity: 1 !important;
  visibility: visible !important;

  transform: none !important;
}



  .projects-layout.has-project-selected .project-description p {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    font-size: 0.9rem !important;
    line-height: 1.2 !important;

    overflow-wrap: normal;
    word-break: normal;
  }

  .about-panel {
    padding: 1.25rem 1rem 1rem !important;
  }

  .about-panel .about-content {
    margin-top: 2.5rem !important;
    margin-left: 0.8rem !important;
    max-width: 70% !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  .about-panel h3 {
    font-size: 1.1rem !important;
  }

  .about-panel p,
  .about-panel li,
  .about-panel .about-extra {
    font-size: 0.88rem !important;
  }

  .about-extra {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    margin-top: 2.5rem !important;
    align-items: flex-start !important;
  }

  .about-references,
  .about-contact {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-right: 0 !important;
  }


  /* =========================================================
     2 — IMAGES
     ========================================================= */

  .projects-layout.has-project-selected .projects-visuals {
    grid-column: 1 !important;
    grid-row: 2 !important;

    position: relative !important;

    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;

    display: block !important;

    padding: 0 !important;
    margin: 0 !important;

    box-sizing: border-box;

    /*
     * SEULE cette zone défile.
     */
    overflow-x: hidden !important;
    overflow-y: auto !important;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }


  .projects-layout.has-project-selected .projects-visuals::-webkit-scrollbar {
    display: none;
  }


  /* Projet visuel */

  .projects-layout.has-project-selected .project-visual {
    display: none !important;

    width: 100% !important;
    max-width: none !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  .projects-layout.has-project-selected .project-visual.is-active {
    display: block !important;

    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }


  /* Images les unes sous les autres */

  .projects-layout.has-project-selected .project-visual-grid {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    gap: 0 !important;

    align-items: stretch !important;
    justify-content: flex-start !important;

    padding: 0 0 3rem 0 !important;
    margin: 0 !important;

    box-sizing: border-box;
  }


  .projects-layout.has-project-selected .project-visual-grid img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: none !important;

    min-width: 0 !important;
    min-height: 0 !important;

    object-fit: contain !important;

    margin: 0 !important;
  }


  .projects-layout.has-project-selected .project-visual-grid img.is-horizontal,
  .projects-layout.has-project-selected .project-visual-grid img.is-wide {
    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: none !important;

    object-fit: contain !important;
  }


  /* =========================================================
     3 — PROJECT ITEM
     
     Cette zone reste complètement fixe en bas.
     ========================================================= */

  .projects-layout.has-project-selected .projects-col--side {
    grid-column: 1 !important;
    grid-row: 3 !important;

    position: relative !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;

    z-index: 50;

    background: #f0f0f0;
  }


  .projects-layout.has-project-selected .projects-list {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  /* Tous les autres projets disparaissent */

  .projects-layout.has-project-selected .project-item:not(.is-active) {
    display: none !important;
  }


  /* Projet actif */

  .projects-layout.has-project-selected .project-item.is-active {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    opacity: 1 !important;
    max-height: none !important;

    margin: 0 !important;

    padding: 0.5rem 1rem !important;

    /*
     * PAS DE BORDURE.
     */
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;

    background: #f0f0f0;

    box-sizing: border-box;

    pointer-events: auto;
  }


  .projects-layout.has-project-selected .project-line {
    width: 100% !important;
    min-width: 0 !important;

    display: flex;
    align-items: baseline;

    gap: 1rem !important;
  }
/* =========================================================
   CORRECTION PROJET MOBILE
   ========================================================= */

.projects-layout.has-project-selected {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
}


/* ---------------------------------------------------------
   DESCRIPTION — tout en haut
   --------------------------------------------------------- */

.projects-layout.has-project-selected .projects-copy {
  grid-row: 1 !important;

  height: auto !important;
  min-height: 0 !important;

  padding: 0.75rem 1rem 1rem !important;
  margin: 0 !important;

  transform: none !important;
}


/* ---------------------------------------------------------
   IMAGES — prennent uniquement l'espace restant
   --------------------------------------------------------- */

.projects-layout.has-project-selected .projects-visuals {
  grid-row: 2 !important;

  height: auto !important;
  min-height: 0 !important;

  display: block !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  padding: 0 0rem !important;
  margin: 0 !important;
}


/* Le projet visuel ne doit plus prendre 100% de la hauteur */

.projects-layout.has-project-selected .project-visual {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;

  margin: 0 !important;
}


/* La grille ne doit plus avoir une hauteur artificielle */

.projects-layout.has-project-selected .project-visual-grid {
  display: flex !important;
  flex-direction: column !important;

  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  align-items: stretch !important;
  justify-content: flex-start !important;

  margin: 0 !important;
  padding: 0 0 3rem 0 !important;
}


/* Images */

.projects-layout.has-project-selected .project-visual-grid img {
  width: 100% !important;
  max-width: 100% !important;

  height: auto !important;
  max-height: none !important;

  margin: 0 !important;

  object-fit: contain !important;
}


/* ---------------------------------------------------------
   PROJECT ITEM — reste en bas
   --------------------------------------------------------- */

.projects-layout.has-project-selected .projects-col--side {
  grid-row: 3 !important;

  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}

.projects-layout.has-project-selected .project-item.is-active {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
}
header.site-header {
  box-shadow: none !important;
  border: none !important;
}
header.site-header::before,
header.site-header::after {
  box-shadow: none !important;
  border: none !important;
}
}