
/* =========================================================
   MARIE FOURMENT — PORTFOLIO
   CSS commun à toutes les pages
   ========================================================= */

:root {
  --page-padding: 14px;
  --gap: 10px;
  --font: Arial, Helvetica, sans-serif;
  --text: #111;
  --bg: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.35;
}

body {
  margin: 0;
  padding: 14px;
  padding-top: 90px;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------------
   HEADER — identique partout
   ------------------------- */

.site-header {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1000;
  background: white;
}

.site-header__left {
  display: flex;
  flex-direction: column;
  gap: 1px;
 
}

.site-header__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
 
}


/* -------------------------
   TITRES DE SECTION
   ------------------------- */

.section-title {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

/* -------------------------
   IMAGES
   ------------------------- */

img {
  display: block;
  max-width: 100%;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eee;
  object-fit: cover;
}

/* =========================================================
   INDEX — deux colonnes indépendantes
   ========================================================= */

.index-page {
  height: calc(100vh - 28px);
  overflow: hidden;
}

.index-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  height: calc(100vh - 95px);
}

.index-column {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-width: thin;
}

.index-column__image {
  width: 100%;
  height: auto;
  margin-bottom: var(--gap);
  object-fit: cover;
}

.index-column__image--wide {
  aspect-ratio: 16 / 9;
}

.index-column__image--portrait {
  aspect-ratio: 4 / 5;
}

/* =========================================================
   PROJET
   ========================================================= */

.project-intro {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
}

.project-intro__text {
  max-width: 50%;
}

.project-intro__title {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
}

.project-intro__description {
  margin: 0;
  font-size: 15px;
}

.project-intro__arrow {
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.project-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-grid .full {
  grid-column: 1 / -1;
}

/* =========================================================
   MOSAÏQUE
   ========================================================= */

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.mosaic-item {
  display: block;
}

.mosaic-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.mosaic-item__caption {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.25;
}

/* =========================================================
   INFORMATIONS
   ========================================================= */

.info-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-column {
  min-height: 55vh;
}

.info-column:first-child .info-block {
  max-width: 83%;
}

.info-title {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 700;
  
}

.info-block {
  margin-bottom: 28px;
}

.info-block p {
  margin: 0 0 5px;
}

.info-link {
  text-decoration: underline;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {
  body {
     padding: 0 12px;
    padding-top: 110px;
  }

  .site-header {
    margin-bottom: 30px;
  }

  .index-page {
    height: auto;
    overflow: visible;
  }

  .index-layout {
    height: auto;
    grid-template-columns: 1fr;
  }

  .index-column {
    overflow: visible;
  }

  .project-grid,
  .mosaic-grid,
  .info-layout {
    grid-template-columns: 1fr;
  }

  .project-grid .full {
    grid-column: auto;
  }

  .project-intro {
    display: block;
  }

  .project-intro__arrow {
    margin-top: 10px;
  }

  .project-intro__text {
  max-width: 100%;
}

.info-column:first-child .info-block {
  max-width: 100%;
}

  .mosaic-item img {
    aspect-ratio: 4 / 3;
  }
}
