/*
Theme Name: Goury Bodier
Author: ùnräad
Author URI: https://unraad.com/
Description: Thème custom pour Goury Bodier - 2026.
Version: 0.06
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: goury
*/

/* Variables */
:root {
  --space--sides: 0.5rem;
  --space--gutter: 1rem;
  --space--gutter-large: 1rem;
  --space--section: 2rem;
  --gallery--spacing: 0.2rem;
  --space-below-header: 3.5rem;
  --color--text: #000000;
  --color--invert: #ffffff;
  --color--disabled: #cbc5c5;
  --grid: repeat(6, 1fr);
  /* scroll-behavior: smooth; */
}
@media (min-width: 48rem) {
  :root {
    --space--sides: 0.875rem;
    --space--section: 3rem;
  }
}
@media (min-width: 72rem) {
  :root {
    --space--sides: 1rem;
    --space--gutter: 0.25rem;
    --space--gutter-large: 1rem;
    --space--section: 6.75rem;
    --space-below-header: 2rem;
    --grid: repeat(12, 1fr);
  }
}

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

/* Typography */
@font-face {
  font-family: "body";
  src: url("./assets/fonts/font.woff2");
  font-weight: 400;
}
@media (min-width: 24rem) {
  :root {
    font-size: 1.25rem;
  }
}
@media (min-width: 120rem) {
  :root {
    font-size: 1.5rem;
  }
}

body {
  line-height: 1.025;
  font-family: body, sans-serif;
  color: var(--color--text);
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
figure,
dl,
dd,
dt {
  margin: 0;
  padding: 0;
}
button {
  display: inline-block;
  width: fit-content;
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  line-height: 1.025;
}
button[aria-selected="false"] {
  color: var(--color--disabled);
}
button[aria-selected="false"]:hover {
  color: var(--color--text);
}

/* Layout */
.page--content > * {
  padding-inline: var(--space--sides);
  margin-block-start: var(--space-below-header);
}
.page--footer {
  margin-block: 8rem 1rem;
}
.page--footer ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space--gutter);
  padding: 0;
  margin: 0;
}
.page--footer a {
  text-decoration: none;
}
.entry--text p {
  margin-block-end: 1rem;
}
.entry--text strong {
  text-decoration: underline;
}
.entry--text ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: "\00a0\00a0\00a0\00a0–\00a0\00a0\00a0\00a0";
  list-style-position: inside;
}
.entry--text ul ::marker {
  display: inline-block;
  width: 3em;
  text-align: center;
}
@media (min-width: 32rem) {
  .page--footer ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 48rem) {
  .page--footer {
    margin-block-start: 6.75rem;
  }
  .page--footer ul {
    grid-template-columns: repeat(6, 1fr);
  }
  .entry--text {
    display: grid;
    grid-template-columns: var(--grid);
    gap: var(--space--gutter);
  }
  .entry--text > * {
    grid-column: span 3;
  }
  .entry--text > :first-child {
    padding-right: 1rem;
  }
  /*   .entry--text p {
    margin-block-end: 0;
  } */
}
@media (min-width: 72rem) {
  .page--footer ul {
    grid-template-columns: repeat(10, 1fr);
  }
  .entry--text {
    grid-template-columns: repeat(10, 1fr);
  }
  .entry--text > * {
    grid-column: span 4;
  }
}

/* Splash */
.splash a {
  display: block;
  width: 100%;
  height: 100dvh;
  position: relative;
}
.splash .imgs img {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s;
}
.splash .imgs .active {
  opacity: 1;
}
.splash .splash-logo {
  position: absolute;
  bottom: 1rem;
  height: auto;
  width: 21rem;
  max-width: 60dvw;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 71.99rem) {
  .splash {
    display: none;
  }
}

/* Galerie */
.project--gallery {
  margin-block-start: var(--space-below-header);
  margin-inline: var(--space--sides);
}
.project-teaser a {
  text-decoration: none;
  display: block;
  margin-block-end: 0.5rem;
}
.project-teaser--image {
  overflow: hidden;
  margin-block-end: 0.125rem;
}
.project-teaser img {
  aspect-ratio: 1.5;
  object-fit: cover;
}
.project-teaser.vertical img {
  aspect-ratio: 0.8;
}

@media (min-width: 64rem) {
  .project--gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space--gutter);
  }
  .project-teaser a {
    position: relative;
    aspect-ratio: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--color--invert);
    padding: 1em;
    overflow: hidden;
    margin-block-end: 0;
    background-color: #b8b8b8;
  }
  .project-teaser img {
    aspect-ratio: unset !important;
    position: absolute;
    /* z-index: -1; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
      filter 0.2s,
      opacity 0.2s,
      transform 0.2s;
  }

  .project-teaser--title,
  .project-teaser--ville {
    opacity: 0;
    transition: opacity 0.2s;
    position: relative;
  }
  .project-teaser a:hover img {
    filter: blur(0.15rem);
    opacity: 0.85;
    /* transform: scale(1.02); */
  }
  .project-teaser a:hover .project-teaser--title,
  .project-teaser a:hover .project-teaser--ville {
    opacity: 1;
  }
}
