/* ============================================================================== */
/*                          TYPOGRAPHY: font import                               */
/* ============================================================================== */
@font-face {
  font-family: 'Almendra';
  src: url('../Fonts/Almendra/Almendra-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Amiamie';
  src: url('../Fonts/Amiamie/Amiamie-Regular.woff2') format('woff2'),
      url('../Fonts/Amiamie/Amiamie-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Anthony';
  src: url('../Fonts/Anthony/Anthony.woff2') format('woff2'),
       url('../Fonts/Anthony/Anthony.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'baskervvol';
  src: url('../Fonts/baskervvol/BBBBaskervvol-Base.woff2') format('woff2'),
       url('../Fonts/baskervvol/BBBBaskervvol-Base.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Sinistre';
  src: url('../Fonts/CLT-Sinistre/Sinistre-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'isenheim';
  src: url('../Fonts/isenheim/Isenheim_Regulier.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'roberte';
  src: url('../Fonts/roberte/Roberte-Regular.woff2') format('woff2'),
       url('../Fonts/roberte/Roberte-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Scribble-Fill';
  src: url('../Fonts/Scribble-Fill/Scribble-Fill.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  text-decoration: underline;
}
@font-face {
  font-family: 'FranklintheGoth';
  src: url('../Fonts/MudClub-FranklintheGoth/MudClub-FranklintheGoth.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
/* ============================================================================== */
/*                          TYPOGRAPHY : font declaration                         */
/* ============================================================================== */

body,    /* body inherit this font here */
.font-body {
  font-family: 'baskervvol', serif;
  color: #0011ff;
  font-size: clamp(1em, 2vw, 2em);
}

.font-title {
  font-family: 'Sinistre', cursive;
  font-size: clamp(1em,9vw,6em);
  color: transparent;
  -webkit-text-stroke: 2px #0011ff;
  transform: scaleX(2); /* Crazy wide look */
  transform-origin: center;

}

/* Fewer letters → more horizontal stretch */
.font-title.short {
  transform: scaleX(2.4);
}

/* Long word → less horizontal stretch */
.font-title.long {
  transform: scaleX(1.7); /* Crazy wide look */
}

.font-menu {
  font-family: 'isenheim', cursive;
  font-size: clamp(1.2em,6vw,10em);
  color: white;
  -webkit-text-stroke: 1px #0011ff;
}

.font-menu-index {
  font-family: 'isenheim', cursive;
  font-size: clamp(1.2em,2em,10em);
  color: white;
  -webkit-text-stroke: 1px #0011ff;
}

/* less stroke pixels for mobile (finer line) */
@media (max-width: 768px) {
  .font-title {
    -webkit-text-stroke: 1px #0011ff;
  }
  .font-menu {
    -webkit-text-stroke: 0.5px #0011ff;
  }
}

.font1 {
  font-family: 'Almendra', fantasy;
  font-size: clamp(1.3em,3vw,5em);
}
.font2 {
  font-family: 'Amiamie', serif;
  font-size: clamp(1em,3vw,5.2em);
}
.font3 {
  font-family: 'Anthony', serif;
  font-size: clamp(1.7em,2vw,5.5em);
}
.font4 {
  font-family: 'roberte', serif;
  font-size: clamp(2em,4vw,6em);
}
.font5 {
  font-family: 'Scribble-Fill', serif;
  font-size: clamp(1.5em,2vw,6em);
}
.font6 {
  font-family: 'FranklintheGoth', serif;
  font-size: clamp(2em,3vw,6em);
}

/* ============================================================================== */
/*                          GENERAL SETTINGS                                      */
/* ============================================================================== */
/* General settings */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh; /* dynamic, will override if supported */
  overflow-x: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

html {
  min-height: -webkit-fill-available;
}

.spacer {
  height: 3vh;
}


*, *::before, *::after {
  box-sizing: border-box;
}

/* Universal link reset: no special color for visited links, no forced underline for links */
a:link,
a:visited {
  color: inherit;
  text-decoration: none;
  -webkit-text-stroke: inherit;
}
/*                    */
/* ALL PAGES MAIN TITLE   */
/*                    */
h1 {
  text-align: center;
  margin: 0.5rem 0;
  white-space: nowrap; /* Prevent line breaks */
}
/* ============================================================================== */
/*                        INDEX PAGE                                              */
/* ============================================================================== */
.landing-layout {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  height: 100dvh; /* will override if supported */
  width: 100vw;
  overflow: hidden;
}
.messy-menu-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.messy-menu {
  position: absolute;
}

/* ============================================================================== */
/*                        NAVIGATION MENU                                         */
/* ============================================================================== */

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0em 7em;
  flex-wrap: wrap; /* allow wrap for mobile */
}

.nav-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-right {
  display: flex;
  align-items: flex-start;
}

.navigation a:hover {
  text-decoration: underline;
}
/* menu on mobile */
@media (max-width: 768px) {
  .navigation {
    margin: 0em 2em;
  }
}

/* ============================================================================== */
/*                       MESSY WHITE BOXES  (apropos)                             */
/* ============================================================================== */

.messy-box-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2em;
  padding: 2em;
}
.messy-box {
  grid-column: span 6; /* half width by default */
}
.messy-box.half {
    grid-column: span 3; /* tier width */
}

/* Individual positions and styles */
.pos-b-1 { /*l Expositions */
  transform: translateX(5vw);
}
.pos-b-2 { /* Performances */
  transform: translateX(8vw) rotate(-5deg);
}

.pos-b-3 { /* Residences */
  transform: translateX(10vw);
}

.pos-b-4 { /* Articles */
  transform: translateX(5vw) rotate(5deg);
}

.pos-b-5 { /* cv */
  transform: translateX(10vw);
}

.pos-b-6 { /* diplomes */
  transform: translateX(10vw);
}

.pos-b-7 { /* contact */
  transform: translateX(7vw);
}


@media (max-width: 1000px) {
  .messy-box-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1em;
    padding: 1em;
  }

  .messy-box {
    grid-column: span 12; /* default: full width */
  }

  .messy-box.half {
    grid-column: span 6; /* half width */
  }
}

/* ============================================================================== */
/*                       MESSY WORDS (PROJETS PAGE)                               */
/* ============================================================================== */

.messy-wrapper {
  height: 100vh;
  height: 100dvh; /* will override if supported */
  position: relative;
}

/* Main container */
.messy-words-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Base link style */
.messy-word {
  position: absolute;
}

/* Individual positions and styles */
.pos-a-1 { /*le plus long feu */
  top: 10%;
  left: 7%;
}
.pos-a-2 { /* Chateau lointain */
  top: 5%;
  left: 30%;
}

.pos-a-3 { /* Poésie */
  top: 25%;
  left: 45%;
  transform: rotate(-5deg);
}

.pos-a-4 { /* J'ai vendu */
  top: 18%;
  left: 67%;
}

.pos-a-5 { /* lisière */
  top: 50%;
  left: 5%;
  transform: scaleX(1.1);
}

.pos-a-6 { /* l'essentiel */
  top: 65%;
  left: 58%;
  font-style: italic;
  text-decoration: underline;
}

.pos-a-7 { /* jungles */
  top: 75%;
  left: 8%;
  transform: rotate(5deg);
}
.pos-a-8 { /* on ne sera pas  */
  top: 72%;
  left: 28%;
  transform: rotate(-5deg);
  text-decoration: underline;
}
.pos-a-9 { /* Audioguides */
  top: 85%;
  left: 48%;
}
.pos-a-10 { /* Paradigmes */
  top: 90%;
  left: 70%;
}
.pos-a-11 { /* Taux d'echange */
  top: 108%;
  left: 2%;
}
.pos-a-12 { /* Facture */
  top: 98%;
  left: 28%;
}
.pos-a-13 { /* Chromatiques */
  top: 120%;
  left: 60%;
}
.pos-a-14 { /* Entre les lignes */
  top: 130%;
  left: 20%;
}

/* spécial positions de l'index */

.pos-c-1 { /*Projets */
  top: 50%;
  left: 7%;
}
.pos-c-2 { /* Actualités */
  top: 10%;
  left: 30%;
}

.pos-c-3 { /* A propos */
  top: 30%;
  left: 60%;
}


/* Mobile: reset flex layout (stacked) and right-centered text */
@media (max-width: 768px) {
  .messy-words-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 2em;
    gap: 2em;
    height: auto;
    max-width: 100vw;
  }
  .messy-word {
    position: static;
    display: block;
    text-align: right;
    transform: none !important;
  }
}

/* ============================================================================== */
/*                       WHITE SQUARE BOXES                                       */
/* ============================================================================== */
/* Title over the whitebox */
.whitebox-title {
  text-align: left;
  font-weight: bold;
  margin-bottom: 0.3em;
}
/* Subtitle over the whitebox */
.whitebox-subtitle {
  text-align: left;
  margin-bottom: 0.3em;
}
/* White Boxes */
.whitebox {
  background: white;
  padding: 0.8em;
  color: #0011ff;
  position: relative;
  overflow: hidden;
  width: clamp(260px, 50vw, 600px);
}
/* Small version of whitebox */
.whitebox.small {
  width: clamp(100px, 40vw, 400px);
}

/* Plus Button for white boxes */
.plus {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #0011ff;
  cursor: pointer;
}

/* Plus button: extra content hidden initially */
.extra {
  display: none;
  margin-top: 1em;
}

/* ============================================================================== */
/*                       IMAGES ON HOVER FOR MESSY ITEMS                          */
/* ============================================================================== */
/* Hide the hover images by default */
.hover-image {
  display: none;
  /* width: 100%; */
  /* max-width: 400px; */
  /* margin-top: 0.5rem; */
}

/* Show the hover image when hovering over the whole item */
.item:hover .hover-image {
  /* display: block; */
  display: none;
}


/* ============================================================================== */
/*                       INDIVIDUAL PROJECT PAGE                                  */
/* ============================================================================== */

.project-page {
  display: grid;
  grid-template-columns: auto 1fr 2fr auto;
  grid-template-rows: 1fr;
  width: 100vw;
  padding: 3rem;
  gap: 1rem;
}

.project-info {
  padding: 2rem;
  position: relative;
}

.photo-wall {
  position: relative;
  height: 100%;
  width: 100%;
}

.photo {
  position: absolute;
  width: clamp(200px, 25vw, 500px);
  max-width: 100%;
  object-fit: contain;
}

/* Photo positions */
.p1 { top: 0; left: 40%; }
.p2 { top: 40%; left: 0%; }
.p3 { top: 80%; left: 40%; }
.p4 { top: 100%; left: 0%; }


.arrow {
  font-size: 4rem;
  font-size: clamp(2rem, 3vw, 4rem);
  color: #0011ff;
  text-decoration: none;
  align-self: center;
}

/* Photos fullscreen overlay on click */
.photo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* will override if supported */
  background: rgba(255, 246, 173, 0.90);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  cursor: pointer;
}

.photo-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}


@media (max-width: 1000px) {
  .project-page {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "left-arrow project-info right-arrow"
      ". photo-wall .";
    padding: 1em;
    height: auto;
  }

  .arrow.left {
    grid-area: left-arrow;
    justify-self: start;
  }

  .arrow.right {
    grid-area: right-arrow;
    justify-self: end;
  }

  .project-info {
    grid-area: project-info;
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ horizontally center content */
  }

  .photo-wall {
    grid-area: photo-wall;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    position: static;
  }

  .photo {
    position: static;
    width: 90%;
    max-width: 300px;
    margin: 0.5em;
  }
}
