/* SYSTEME DE GRILLE & BASES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'SuisseIntlMono';
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  background-color: #fff;
  padding: 1rem 1rem;
}

a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.SuisseIntlScreen {
  font-family: 'SuisseIntlScreen';
  font-size: 25px;
}

a:hover {
  opacity: 1;
}

iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

/* VUES */
.view {
  display: none;
  margin: 0 auto;
  animation-name: Hide;
  animation-duration: .5s;
}

.view.active {
  display: block;
  animation-name: Show;
  animation-duration: .5s;
}

@keyframes Hide {
  from {display: block; opacity: 1;}
  50% {display: block; opacity: 0;}
  to {display: none; opacity: 0;}
}

@keyframes Show {
  from {display: none; opacity: 0;}
  50% {display: none; opacity: 0;}
  to {display: block; opacity: 1;}
}

.site-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.brand {
  grid-column: span 5;
}

.brand h1, .brand .home-link {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
}

.subtitle {
  margin-top: 0.25rem;
  font-weight: 400;
  font-size: 20px;
  color: #111;
}

.contact-links {
  grid-column: span 2;
  grid-column-start: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
}

/* BIO & SECTIONS */
.bio-section {
  margin-top: 15px;
  margin-bottom: 4rem;
}

.section-block {
  margin-bottom: 3.5rem;
}

.section-block.margin-top {
  margin-top: 5rem;
}

.section-block h2 {
  font-size: 1.2rem;
  font-weight: normal;
  margin-bottom: 0.5rem;
}
.section-title {
  grid-column: span 12;
}

.section-desc {
  grid-column: span 5;
  margin-bottom: 1.5rem;
}

.external-link-head {
  text-decoration: underline;
}

.table-header {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.5rem;
  color: #999;
  padding-bottom: 0.5rem;
  font-size: 13px;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-top: 1px solid #111;
  text-decoration: none;
  color: #000;
  align-items: center;
  transition: background-color 0.15s ease;
  
}

.table-row:last-child {
  border-bottom: 1px solid #111;
}

.table-row:hover {
  background-color: magenta;
}

/* Attribution des colonnes du tableau */
.col-year { grid-column: span 2; }
.col-project { grid-column: span 3; }
.col-client { grid-column: span 3; }
.col-contrib { grid-column: span 3; }
.col-action { 
  grid-column: span 1; text-align: right; 
  font-family: 'SuisseIntlScreen';
  font-size: 30px;
  line-height: 1px;
}

.table-row.row-disabled {
  cursor: default;
}
.table-row.row-disabled:hover {
  background-color: transparent;
}


/* VUE DETAIL PROJET (Layout Desktop) */
.project-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 2rem;
}

.sticky-project-info {
  grid-column: span 5;
  position: sticky;
  top: 2.5rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  padding-right: 1rem;
}

.project-meta {
  margin-bottom: 2.5rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
}

.project-meta-details {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.project-description p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.official-site-link {
  display: inline-block;
  margin-top: 1rem;
}

.project-gallery {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 0px solid;
}


/* RESPONSIVE DESIGN (Tablettes et Mobiles - Système 4 colonnes) */
@media (max-width: 1023px) {

  .disable {
   display: none;
  } 

  body {
    padding: 1.5rem 1rem;
  }

  .site-header {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .brand {
    grid-column: span 4;
  }

  .contact-links {
    grid-column: span 4;
    grid-column-start: 1;
    align-items: flex-start;
  }

  .table-header {
     grid-template-columns: repeat(4, 1fr);
     gap: 0rem;
    padding: 1rem 0;
  }

  .table-header .col-year { grid-column: span 4;  order: 2; }
  .table-header .col-project { grid-column: span 3;  order: 1; }
  .table-header .col-client { grid-column: span 4;  order: 3; }
  .table-header .col-contrib { grid-column: span 4; order: 4; margin-top: 0.2rem; }
  .table-header .col-action { display: none; }

  .table-row {
    grid-template-columns: repeat(4, 1fr);
    padding: 1rem 0;
  }

  .col-year { grid-column: span 4;  order: 2; }
  .col-project { grid-column: span 3;  order: 1; }
  .col-client { grid-column: span 4;  order: 3; }
  .col-contrib { grid-column: span 4; order: 4; margin-top: 0.2rem; }
  .col-action { grid-column: span 1; grid-column-start: 4; order: 1; text-align: right; }

  .project-layout {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .sticky-project-info {
    grid-column: span 4;
    position: static;
    max-height: none;
    padding-right: 0;
  }

  .project-gallery {
    grid-column: span 4;
  }

  .section-title {
    grid-column: span 4;
  }

  .section-desc {
    grid-column: span 4;
  }


}


/*=====================================PHOTO=====================================*/


.body-photo {
    background-color: white;
    margin: 0;
    padding: 0;
}


.gallery {
  list-style: none;
}

.gallery li {
  display: none;
}

.gallery li.active {
  display: block;
}

.gallery li img {
    width: 100dvw;
    height: 100dvh;
    object-fit: contain;
    padding: 50px 0;
    box-sizing: border-box;
}


.slider-controls {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  bottom: 0;
  z-index: 100;

}

#prev,#next {
  cursor: none;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0);
}

#counter {
  font-size: 18px;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.body-photo h1 {
  font-size: 18px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  margin: 0;
  text-transform: uppercase;
  z-index: 1000;
}

.hover-label {
  position: fixed;
  pointer-events: none;
  color: white;
  mix-blend-mode: difference;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 15px;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 9999;
}

.mobile-hint {
    width: 100dvw;
    position: absolute;
    display: flex;
    justify-content: space-between;
    padding: 10px 10px;
    box-sizing: border-box;
    top: 0;
    text-transform: uppercase;
    visibility: hidden;
}

@media (max-width:800px) {
    .hover-label {
        opacity: 0;
    }

    .mobile-hint  {
        visibility: visible;
    }
}