/*
Theme Name: bureaumotifs
Author: Bureau Motifs
*/

@font-face {
  font-family: 'LostTrial';
  src: url('https://bureaumotifs.com/wp-content/themes/bureaumotifs/fonts/LostTrial-Normal.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SFUIDisplay';
  src: url('https://bureaumotifs.com/wp-content/themes/bureaumotifs/fonts/SFUIDisplay-Thin.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #efefef;
  font-family: 'SFUIDisplay', sans-serif;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
.bm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background-color: #efefef;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.bm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: black;
}

.bm-logo img {
  height: clamp(20px, 3vw, 50px);
  width: auto;
}

.bm-site-title {
  font-family: 'LostTrial', sans-serif;
  font-size: clamp(1rem, 3vw, 3rem);
  font-weight: normal;
  letter-spacing: -0.05em;
  color: #1d1d1b;
  white-space: nowrap;
}

.bm-nav a {
  font-family: 'SFUIDisplay', sans-serif;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  letter-spacing: 0.05em;
  color: black;
  text-decoration: none;
  white-space: nowrap;
}

.bm-nav a:hover {
  opacity: 0.5;
}

/* CONTENT */
.bm-content {
  margin-top: 0;
  margin-bottom: 48px;
}

/* FOOTER */
.bm-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 30px);
  padding: clamp(8px, 1.5vw, 16px) clamp(12px, 2vw, 24px);
  background-color: #efefef;
}

.bm-footer a {
  font-family: 'SFUIDisplay', sans-serif;
  font-size: clamp(0.6rem, 1.2vw, 0.82rem);
  letter-spacing: 0.05em;
  color: black;
  text-decoration: none;
  white-space: nowrap;
}

.bm-footer a:hover {
  opacity: 0.5;
}

/* FRONT PAGE */
.bm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
}

.bm-project {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  height: calc((100vh - 70px - 48px) / 2);
}

.bm-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.45);
}

.bm-project:hover img {
  filter: brightness(1);
}

.bm-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 20px;
  color: white;
  font-size: 0.82rem;
  font-family: 'SFUIDisplay', sans-serif;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  background: rgba(0,0,0,0);
}

.bm-project:hover .bm-caption {
  background: rgba(0,0,0,0.55);
}

/* PAGE PROJET */
.projet-page {
  font-family: 'SFUIDisplay', sans-serif;
}

.projet-banniere {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.projet-banniere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.projet-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 0;
}

.projet-infos {
  height: 420px;
  padding: 16px;
  background: #efefef;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.projet-infos-top {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.projet-titre {
  font-size: clamp(0.8rem, 1.4vw, 1.1rem);
  font-weight: normal;
  color: black;
  margin: 0 0 2px;
  line-height: 1.2;
}

.projet-meta-line {
  font-size: clamp(0.65rem, 1.1vw, 0.9rem);
  color: #888;
  margin: 0;
  line-height: 1.2;
}

.projet-description {
  font-size: clamp(0.65rem, 1.1vw, 0.9rem);
  line-height: 1.6;
  color: black;
  margin: 0;
  overflow: hidden;
}
.projet-image2 {
  height: 420px;
  overflow: hidden;
  position: relative;
}

.projet-image2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.projet-galerie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  grid-column: 1 / -1;
  align-items: start;
}

.projet-col-gauche,
.projet-col-droite {
  display: flex;
  flex-direction: column;
}

.projet-img-wrap {
  position: relative;
  overflow: hidden;
}

.projet-img-wrap img {
  width: 100%;
  height: auto;
  object-position: center center;
  display: block;
}
.projet-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.72rem;
  color: white;
  font-family: 'SFUIDisplay', sans-serif;
  line-height: 1;
  background: rgba(0, 0, 0, 0.5);
}
/* PAGE INFO */
.info-wrap {
  padding: 24px;
  max-width: 700px;
  font-family: 'SFUIDisplay', sans-serif;
}

.info-wrap p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: black;
  margin: 0 0 20px;
}

.info-wrap p.accroche {
  font-weight: bold;
  margin-top: 8px;
}

/* RESPONSIVE 600px */
@media (max-width: 600px) {

  .bm-header {
    padding: 8px 16px;
  }

  .bm-grid {
    grid-template-columns: 1fr !important;
  }

  .bm-project {
    height: 250px;
  }

  .projet-grille {
    grid-template-columns: 1fr !important;
  }

  .projet-galerie {
    grid-template-columns: 1fr !important;
  }

  .projet-col-gauche,
  .projet-col-droite {
    width: 100%;
  }

  .projet-banniere {
    height: 180px;
  }

  .projet-infos {
    height: auto;
    min-height: 200px;
  }

  .projet-image2 {
    width: 100%;
    height: 250px;
  }

  .projet-image2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .bm-footer {
    justify-content: flex-end;
    gap: 20px;
  }
}