/* ==========================================================
   DESIGN
========================================================== */

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  font-family: "Neue Haas Grotesk Light", "Neue Haas Grotesk", Helvetica, Arial, sans-serif;
  font-weight: 600; /* LIGHT */
  font-variation-settings: "wght" 600;
}

html, body {
  width: 100%;
  height: 100%;
  background: white;
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between; /* Jules à gauche, tagline à droite */
  align-items: center;
  background: transparent;
  z-index: 2000;
}

/* Brand et tagline */
.brand,
.tagline {
  font-family: "Neue Haas Grotesk Light", "Neue Haas Grotesk", Helvetica, Arial, sans-serif;
  font-weight: 400; /* LIGHT */
  font-variation-settings: "wght" 400;
  font-size: 16px;
  letter-spacing: 0.2px;
  line-height: 1.5;
  color: black;
  text-decoration: none;
}

.brand {
  cursor: pointer;
}

.tagline {
  text-align: right;
}

/* Section centrale avec image */
.white-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.white-section .top-img {
  max-width: 80%;
  max-height: 80%;
  position: relative;
  z-index: 2;
  transition: filter 0.3s ease;
}

.white-section .top-img:hover {
  filter: grayscale(100%);
}

/* Conteneur de l'image pour positionner le texte */
.photo-container {
  position: relative; /* nécessaire pour que le texte soit relatif à l'image */
  display: inline-block; /* s'adapte à la taille de l'image */
}

/* Image principale */
.photo-container .top-img {
  display: block;
  max-width: 80%;
  max-height: 80%;
  transition: filter 0.3s ease;
}

.photo-container .top-img:hover {
  filter: grayscale(100%);
}

/* Texte en bas à gauche de l'image */
.photo-caption {
  position: absolute;
  bottom: 0; /* collé au bas de l'image */
  left: 0;   /* collé à gauche */
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 14px;
  color: black;
  text-transform: none;
  padding: 8px; /* petit padding pour ne pas toucher le bord */
  background: rgba(255, 255, 255, 0.5); /* optionnel : fond semi-transparent pour lisibilité */
}

/* Texte description */
.architecture-text {
  max-width: 420px;
  margin-top: -335px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  text-transform: none;
   margin-left: calc((100vw - 75%) / 2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 300; /* light */
}

.top-img {
  cursor: pointer;
}

.white-section a {
  display: block;
  text-align: center;
}

.site-footer {
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
  background-color: #fff;
}

a {
  -webkit-tap-highlight-color: transparent; /* mobile */
  outline: none;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

a:focus,
a:active {
  outline: none;
}

a {
  text-decoration: none;      /* enlève le soulignement */
  color: inherit;             /* enlève le bleu */
  -webkit-tap-highlight-color: transparent;
}

a:focus,
a:active {
  outline: none;
}

/* Footer */
.site-footer p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 300; /* light */
  text-transform: none;
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: center; /* centre le texte dans le footer */
  color: #666; /* optionnel, tu peux changer la couleur */
}

.photo-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  gap: 24px; /* écart entre chaque image, ajuste ici */
  padding: 120px 0; /* évite que les images touchent le header/footer si la galerie dépasse l'écran */
}

.photo-gallery a {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gallery-img {
  display: block;
  max-width: 80%;
  max-height: 40vh;
  transition: filter 0.3s ease;
}

.gallery-img:hover {
  filter: grayscale(100%);
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 32px; /* j'allège le padding pour qu'il reste discret, comme le header */
  background: transparent;
  z-index: 2000;
}

.photo-gallery {
  padding: 120px 0; /* espace en haut pour le header, en bas pour le footer */
}

.more-link {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    font-weight: 200;
    letter-spacing: 0.08em;
    color: #111;
    text-decoration: none;
    text-transform: lowercase;
    transition: opacity 0.2s ease;
}

.more-link:hover {
    opacity: 0.45;
}

/* ==========================================================
   HEADER
========================================================== */

.site-header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    padding:24px 32px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    background:transparent;

    z-index:5000;

}

.header-left{

    display:flex;
    align-items:center;
    gap:14px;

}

.brand,
.tagline{

    font-size:16px;
    font-weight:400;
    letter-spacing:.2px;

}

/* ==========================================================
   HAMBURGER
========================================================== */

.hamburger{

    width:22px;
    height:22px;

    position:relative;

    border:none;
    background:none;

    cursor:pointer;

}

.hamburger span{

    position:absolute;

    left:0;

    width:14px;
    height:1px;

    background:#111;

    transition:
        transform .35s,
        top .35s,
        background .35s;

}

.hamburger span:first-child{

    top:7px;

}

.hamburger span:last-child{

    top:13px;

}

/* Icône → Croix */

.hamburger.active span:first-child{

    top:10px;
    transform:rotate(45deg);

}

.hamburger.active span:last-child{

    top:10px;
    transform:rotate(-45deg);

}

/* ==========================================================
   MENU PLEIN ÉCRAN
========================================================== */

#menu-deroulant{

    position:fixed;
    inset:0;

    display:flex;
    align-items:flex-start;
    justify-content:flex-start;

    padding:120px 40px;

    background:rgba(15,15,15,.18);

    backdrop-filter:blur(14px) saturate(140%);
    -webkit-backdrop-filter:blur(14px) saturate(140%);

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transition:
        opacity .45s ease,
        visibility .45s ease;

    overflow-y:auto;
    -webkit-overflow-scrolling:touch;

    z-index:4000;

}

/* État ouvert */

#menu-deroulant.active{

    opacity:1;
    visibility:visible;
    pointer-events:auto;

}

/* ==========================================================
   COULEURS LORSQUE LE MENU EST OUVERT
========================================================== */

body.menu-open .brand,
body.menu-open .tagline{

    color:white;

}

body.menu-open .hamburger span{

    background:white;

}

/* ==========================================================
   MENU PRINCIPAL
========================================================== */

.menu-main{

    list-style:none;

    display:flex;
    flex-direction:column;

    gap:8px;

    font-size:clamp(32px,6vw,72px);
    line-height:1;

}

.menu-main > li{

    opacity:0;
    transform:translateY(16px);

    transition:
        opacity .45s ease,
        transform .45s ease;

}

#menu-deroulant.active .menu-main > li{

    opacity:1;
    transform:translateY(0);

}

#menu-deroulant.active .menu-main > li:nth-child(1){
    transition-delay:.05s;
}

#menu-deroulant.active .menu-main > li:nth-child(2){
    transition-delay:.10s;
}

#menu-deroulant.active .menu-main > li:nth-child(3){
    transition-delay:.15s;
}

#menu-deroulant.active .menu-main > li:nth-child(4){
    transition-delay:.20s;
}

.menu-main > li > a{

    color:white;
    font-weight:400;
    letter-spacing:-.02em;

    transition:opacity .25s ease;

}

.menu-main > li > a:hover{

    opacity:.65;

}

/* ==========================================================
   SOUS-MENU
========================================================== */

.has-submenu{

    position:relative;

}

.has-submenu > .submenu{

    display:none;

    list-style:none;

    margin-top:18px;
    padding-left:8px;

    font-family:'JetBrains Mono', monospace;

    font-size:14px;
    font-weight:300;

    text-transform:none;

}

.has-submenu.active > .submenu{

    display:block;

}

.submenu li{

    margin-bottom:10px;

}

.submenu a{

    color:rgba(255,255,255,.78);

    transition:
        opacity .25s ease,
        color .25s ease;

}

.submenu a:hover{

    opacity:1;
    color:white;

}

/* ==========================================================
   SCROLLBAR
========================================================== */

#menu-deroulant::-webkit-scrollbar{

    width:6px;

}

#menu-deroulant::-webkit-scrollbar-thumb{

    background:rgba(255,255,255,.2);
    border-radius:999px;

}

/* ==========================================================
   EFFET SUR LE FOND
========================================================== */

body.menu-open .top-img{

    transform:scale(1.015);
    transition:transform .45s ease;

}

body.menu-open .white-section{

    filter:brightness(.92);
    transition:filter .45s ease;

}

/* ==========================================================
   TRANSITIONS
========================================================== */

.brand,
.tagline,
.menu-main a,
.submenu a,
.hamburger span{

    transition:all .3s ease;

}

.design-page {
  width: 100%;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 140px 32px 120px;
}


.design-project {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Image principale */

.design-img {
  display: block;

  max-width: 70vw;
  max-height: 60vh;
  width: auto;
  height: auto;

  object-fit: contain;

  transition: filter 0.3s ease;
}


.design-img:hover {
  filter: grayscale(100%);
}


/* Titre */

.design-title {
  margin-top: 28px;

  font-family:
    "Neue Haas Grotesk Light",
    "Neue Haas Grotesk",
    Helvetica,
    Arial,
    sans-serif;

  font-size: 18px;
  font-weight: 400;
  font-variation-settings: "wght" 400;

  letter-spacing: 0.2px;
  line-height: 1.4;

  text-transform: none;

  color: #111;

  text-align: center;
}


/* Description */

.design-text {
  max-width: 420px;

  margin-top: 18px;

  font-family: "JetBrains Mono", monospace;

  font-size: 14px;
  font-weight: 300;

  line-height: 1.6;

  text-transform: none;

  text-align: left;

  color: #111;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

  .design-page {
    padding: 120px 24px 100px;
  }

  .design-img {
    max-width: 88vw;
    max-height: 55vh;
  }

  .design-title {
    margin-top: 22px;
    font-size: 16px;
  }

  .design-text {
    max-width: 90vw;
    font-size: 12px;
    line-height: 1.6;
  }

}