/* Déclaration des fontes Neue Haas Unica */
@font-face {
  font-family: 'Neue Haas Unica';
  src: url('../fonts/NeueHaasUnicaPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Neue Haas Unica';
  src: url('../fonts/NeueHaasUnicaPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Neue Haas Unica';
  src: url('../fonts/NeueHaasUnicaPro-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Neue Haas Unica';
  src: url('../fonts/NeueHaasUnicaPro-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: 'Neue Haas Unica';
  src: url('../fonts/NeueHaasUnicaPro-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Neue Haas Unica', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #222;
  min-height: 100vh;
}

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

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  background: #4CAF50;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.2s, transform 0.07s;
  cursor: none;
}

.main-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 40px 60px 0 60px;
  min-height: 180px;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.fixed-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: transparent;
  z-index: 1000;
}

.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.logo {
  width: 94.5px;
  height: auto;
  margin-bottom: 0;
}

.logo-subtitle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subtitle {
  font-family: 'Neue Haas Unica', Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #444;
  text-align: center;
  margin: 10px 0 0 0;
  line-height: 1.1;
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-column: 2;
}

.timer {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #222;
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: flex-end;
  margin-top: 10px;
}

.nav-link {
  font-family: 'Neue Haas Unica', Arial, Helvetica, sans-serif;
  font-size: 37.3px;
  font-weight: 500;
  cursor: pointer;
  color: #222;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-link:visited,
.nav-link:active,
.nav-link:focus {
  color: #222;
  text-decoration: none;
}

.nav-link:hover {
  color: #888;
}

.masonry-grid {
  column-count: 3;
  column-gap: 5%;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 8px 0 8px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  background: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 0;
  object-fit: cover;
  padding: 10px;
}

.ref-num {
  font-family: 'Neue Haas Unica', Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  color: #222;
  padding: 10px 0 8px 0;
  text-align: left;
  background: none;
  box-shadow: none;
  border-radius: 0;
  align-self: flex-start;
}

.about-columns {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 0 auto;
  padding: 0 24px;
}

.about-col {
  flex: 1 1 0;
  min-width: 250px;
  max-width: 500px;
  font-family: 'Neue Haas Unica', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #222;
}

.about-col h2 {
  font-family: 'Neue Haas Unica', Arial, Helvetica, sans-serif;
  font-size: 37.3px;
  font-weight: 500;
  margin: 0 0 18px 0;
  color: #222;
  text-transform: none;
}

main {
  margin-top: 0;
  padding-top: 0;
}
.about-columns {
  margin: 0 auto 0 auto;
  padding-top: 0;
}
.about-col {
  margin-top: 0;
  padding-top: 0;
}

p {
  line-height: 1.15;
}

@media (max-width: 1100px) {
  .masonry-grid {
    column-count: 2;
  }
}
@media (max-width: 700px) {
  .masonry-grid {
    column-count: 1;
    padding: 24px 4vw 0 4vw;
  }
  .masonry-item img {
    border-radius: 10px 10px 0 0;
  }
}

@media (max-width: 900px) {
  .about-columns {
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
  }
  .about-col {
    max-width: 100%;
  }
  #custom-cursor {
    display: none !important;
  }
  html, body, *, *:hover, *:active, *:focus, img, .masonry-item, button, input, textarea, select, .nav-link, .logo, a, a:visited, a:active, a:focus, a:hover {
    cursor: auto !important;
  }
  /* Augmente la taille de l'image Glade House (S-01) dans atlas de 20% */
  #projectTable tbody tr td:nth-child(3):contains('Glade House') ~ td img,
  #projectTable tbody tr td:nth-child(3):contains('Glade House') img {
    width: 120% !important;
    max-width: 120% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  #lang-switch {
    background: #111 !important;
    box-shadow: none !important;
    border: 1.5px solid #222 !important;
    color: #fff !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 0.9em;
    border-radius: 6px !important;
    right: 32px !important;
    left: auto !important;
  }
  p {
    text-align: left !important;
  }
  #contact-block p {
    text-align: left !important;
  }
  .project-info-columns {
    display: block !important;
  }
}

@media (max-width: 800px) {
  .main-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 8px 0 0 0;
    min-height: 100px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .header-center {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .header-right {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
  }
  .header-left {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    margin: 0;
  }
  .logo {
    width: 84.5px;
  }
  .nav-link {
    font-size: 37.3px;
  }
  .timer {
    font-size: 0.9rem;
    display: none;
  }
}

@media (max-width: 500px) {
  .main-header {
    padding: 10px 6vw 0 2vw;
  }
  .logo {
    width: 73.5px;
  }
  .subtitle {
    font-size: 0.95rem;
  }
  .nav-link {
    font-size: 28px;
  }
  .header-left {
    justify-content: flex-end;
    margin-right: 2vw;
  }
  .masonry-grid {
    margin: 0 auto;
    max-width: 95vw;
    padding: 0;
  }
}

@media (max-width: 1023px) {
  .timer {
    display: none !important;
  }
}

@media (max-width: 425px) {
  .masonry-grid {
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
  }
  .masonry-item {
    width: 95vw;
    max-width: 500px;
    margin: 0 auto 20px auto;
  }
}

.img-large {
  width: 130% !important;
  max-width: 130% !important;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.img-small {
  width: 70% !important;
  max-width: 70% !important;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.img-medium {
  width: 85% !important;
  max-width: 85% !important;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.img-num {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s;
  font-size: 9pt;
  color: #222;
  text-align: left;
  width: 100%;
  font-family: 'Neue Haas Unica', Arial, Helvetica, sans-serif;
  min-height: 1.2em;
  margin: 0;
}
.masonry-item:hover .img-num {
  opacity: 1;
  visibility: visible;
}

.img-overlay {
  position: static;
  display: block;
  margin-top: 6px;
  margin-left: 0;
  text-align: left;
  font-size: 8pt;
  font-family: 'Neue Haas Unica', Arial, Helvetica, sans-serif;
  color: #222;
  background: none;
  padding: 0;
  border-radius: 0;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 1;
  font-weight: bold;
}
.masonry-item:hover .img-overlay,
.masonry-item img:hover + .img-overlay {
  opacity: 1;
}

#projectTable thead th {
  color: #222 !important;
  font-weight: 300;
}
#projectTable td:nth-child(2) {
  color: #222;
  font-weight: 300;
}
#projectTable td:nth-child(3) {
  font-weight: 700;
  font-style: italic;
}
#projectTable td:nth-child(4) {
  text-transform: lowercase;
  font-style: italic;
}
#projectTable td:nth-child(6) {
  text-transform: lowercase;
  font-style: italic;
}
#projectTable td:nth-child(8) {
  text-transform: lowercase;
  font-style: italic;
}
#projectTable td:not(:nth-child(3)) {
  color: #bbb;
}
.diamond-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: #4CAF50;
  border: 1.5px solid #4CAF50;
  transform: none;
  transition: background 0.2s, border-color 0.2s;
}
#projectTable tbody tr:hover .diamond-indicator {
  background: #388E3C;
  border-color: #388E3C;
}

@media (min-width: 600px) and (max-width: 1023px) {
  .logo {
    width: 100px;
  }
  .masonry-grid {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}

.clickable-slider {
  cursor: none;
}

@media (max-width: 374px) {
  .glade-house-row img {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: auto !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .glade-house-row td {
    padding: 0 !important;
  }
}

#loader-overlay {
  position: fixed;
  z-index: 999999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s;
}
#loader-bar-container {
  width: 420px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Inter', 'Arial', sans-serif;
}
#loader-bar-labels {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #14224a;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.04em;
}
#loader-bar-outer {
  width: 100%;
  height: 22px;
  border: 2.5px solid #14224a;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 0;
}
#loader-bar-inner {
  width: 0%;
  height: 100%;
  background: #14224a;
  border-radius: 2px 0 0 2px;
  transition: width 0.4s cubic-bezier(.4,1.2,.6,1);
}
@media (max-width: 600px) {
  #loader-bar-container {
    width: 98vw;
    padding: 0;
  }
  #loader-bar-labels {
    font-size: 1em;
  }
  #loader-bar-outer {
    height: 16px;
  }
}

.close-btn {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.2em;
  color: #111;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  z-index: 2002;
  transition: color 0.2s;
}
@media (min-width: 900px) {
  .close-btn.blink {
    animation: blink-cross 0.7s linear 2;
    color: #4CAF50 !important;
  }
  @keyframes blink-cross {
    0%, 100% { opacity: 1; }
    20%, 60% { opacity: 0; }
    40%, 80% { opacity: 1; }
  }
}

.dotted-separator {
  display: block;
  width: 100%;
  text-align: center;
  color: #111;
  font-size: 0.85em;
  letter-spacing: 0.12em;
  margin: 36px 0 32px 0;
  user-select: none;
  white-space: nowrap;
}

#lang-switch {
  position: fixed !important;
  right: 32px !important;
  bottom: 32px !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #111 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50% !important;
  width: 39px !important;
  height: 39px !important;
  padding: 0 !important;
  font-size: 1.1em !important;
  font-weight: bold !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (min-width: 601px) and (max-width: 1023px) {
  .project-info-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
  }
}
