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

:root {
  --coef: 1.3;
  --s0: 1rem;
  --s-1: calc(var(--s0) / var(--coef));
  --s1: calc(var(--coef) * var(--s0));
  --s2: calc(var(--coef) * var(--s1));
  --s3: calc(var(--coef) * var(--s2));
  --s4: calc(var(--coef) * var(--s3));
  --s5: calc(var(--coef) * var(--s4));

  --stroke-width: 2px;
  --delay: 1s;
  --easing: cubic-bezier(0.87, 0, 0.13, 1);
  --max-width: 1100px;
  --height: 10dvh;
  --folder-color: #f8f5e6;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  background-color: var(--folder-color);
  color: var(--fg);
  margin: 0;
  font-family: var(--corps);
  font-style: normal;
  font-weight: normal;
  transition:
    background-color var(--easing) var(--delay),
    color var(--easing) var(--delay);
}

body ::selection {
  background: var(--fg);
  color: var(--bg) !important;
}

img {
  max-width: 100%;
  max-height: 100%;
}

/* typo general */
html,
body {
  font-size: clamp(0.8rem, 0.65rem + 0.8vw, 1.4rem);
  font-family: var(--corps);
  color: var(--fg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--titre);
  color: var(--fg);
  font-weight: normal;
  font-style: normal;
}

h1 {
  font-size: var(--s5);
  margin-bottom: 1rem;
  font-weight: bold;
}

h2 {
  font-size: var(--s3);
}

h3 {
  font-size: var(--s3);
}
h4 {
  font-size: var(--s2);
}
h5 {
  font-size: var(--s1);
}
h6 {
  font-size: var(--s0);
}

.title {
  font-family: var(--title);
}

a,
a:visited {
  color: var(--fg);
}

a:hover,
a:focus {
  -webkit-text-stroke: 0 var(--accent);
  text-decoration: none;
  color: var(--accent);
}

h1 ~ p {
  margin-bottom: 1rem;
}

p {
  line-height: 1.3;
  font-size: var(--s1);
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

main {
  /* padding-block: 15rem 2rem; */
  font-size: var(--s0);
  height: 100vh;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 50%);
}

#intro {
  background-color: transparent;
  position: fixed;
  bottom: var(--s0);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

#intro h1 {
  font-size: var(--s2);
  color: var(--bg);
  margin-bottom: 0;
  text-shadow:
    0 0 0.5rem var(--fg),
    0 0 1rem var(--fg);
}

#intro p {
  display: none;
}

/* HEADER */
header.menu-temp {
  position: absolute;
  font-family: "Redaction_10-Bold-CVB";
  font-weight: normal;
  color: var(--bg);
  font-size: 4rem;
  -webkit-text-stroke: 0.01rem var(--fg);
  text-shadow: -0.05em 0.05rem var(--fg);
  transition:
    all var(--easing) var(--delay),
    text-shadow 0.25s ease;
}

header.menu-temp:hover {
  text-shadow: 0 0 var(--fg);
  cursor: pointer;
}

header.menu-temp span {
  position: fixed;
  z-index: 1000;
}

header.menu-temp a {
  color: var(--bg);
  transition: color var(--easing) var(--delay);
  text-decoration: none;
  -webkit-text-stroke: var(--stroke-width) var(--fg);
  margin: 0;
}

header.menu-temp .nos {
  top: 0rem;
  left: 1rem;
}
header.menu-temp .futurs {
  top: 0rem;
  right: 1rem;
}
header.menu-temp .point {
  bottom: 0rem;
  left: 1rem;
}
header.menu-temp .net {
  bottom: 0rem;
  right: 1rem;
}

/* MAIN */

/* ROOM */
#room {
  background-color: lightgray;
}

#room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LISTE ARTICLES */
ul.articles-list-home {
  list-style: none;
  display: grid;
  grid-auto-rows: calc(var(--height) / 1.5);
  gap: 0;
}

.volet {
  font-family: var(--corps);
  color: var(--fg);
  position: relative;
  box-shadow: 0;
  transform: translateY(0);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}

.volet .super {
  box-shadow: 0 -5px 0.6em rgba(64, 64, 64, 0.8);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--height) / -2));
}

.volet .super > * {
  transform: translateY(calc(var(--height) / -2));
}

.volet .intercalaire {
  padding-inline: var(--s-1);
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: calc(var(--height) / 2);
  transform: translateY(calc(var(--height) / -2.02));
  background-color: transparent;
  z-index: 1;
}

.volet .titre {
  pointer-events: auto;
  line-height: 1;
  font-family: var(--titre);
  font-size: var(--s1);
  width: 14rem;
  position: relative;
  border-radius: 8px 8px 0 0;

  /* margin-left: calc(100% - 14rem); */
  padding: 0.5rem 0.7rem;
  box-shadow: 0 -5px 0.3rem rgba(30, 30, 30, 0.3);
}

.volet .contenu {
  padding: 1.5rem;
  min-height: calc(var(--height) * 4);
  box-shadow: 0 -5px 0.3rem rgba(30, 30, 30, 0.3);
}

.volet .titre,
.volet .super {
  background-image:
    linear-gradient(var(--bg), var(--bg)), url("../image/paper-texture.jpg");
  background-repeat: repeat;
  background-size: 300px;
  background-blend-mode: multiply;
}

.volet.empty .titre,
.volet.empty .super {
  background-color: var(--folder-color);
}

.volet:nth-of-type(2n) .titre {
  grid-column: 3 / 3;
}

.volet:nth-of-type(4n) .titre {
  grid-column: 5 / 5;
}

.volet:nth-of-type(3n) .titre {
  grid-column: 6 / 6;
}

.volet:nth-of-type(5n) .titre {
  grid-column: 4 / 4;
}

.volet:nth-of-type(7n) .titre {
  grid-column: 2 / 2;
}

.volet .super:has(.titre:hover),
.volet .super:has(.contenu:hover),
.volet .super:focus-within {
  transform: translateY(calc(var(--height) * -4));
  box-shadow: 0 -5px 1em rgba(30, 30, 30, 0.1);
}

.volet.empty .super:has(.titre:hover),
.volet.empty .super:has(.contenu:hover),
.volet.empty .super:focus-within {
  transform: translateY(calc(var(--height) * -0.9));
}

.titre img {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  filter: drop-shadow(1px -2px 0.1rem #444);
  transform: rotate(7deg);
}

.volet h1,
.volet h2,
.volet h3,
.volet h4,
.volet h5,
.volet h6 {
  font-family: var(--titre);
}

.volet h2 {
  font-weight: bold;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  width: fit-content;
}

.super .contenu * + * {
  margin-top: 1em;
}

a {
  text-decoration: none;
  border-bottom: solid var(--fg) 2px;
  transition: border-color 0.3s;
}

a:hover,
a:focus,
a:active {
  color: var(--accent);
  border-color: transparent;
}

header a {
  border: none;
}

.volet a {
  display: inline-block;
}

.stretched-link {
  text-align: center;
  display: block;
  font-family: var(--titre);
  font-size: 2rem;
}

.stretched-link::after {
  content: " ";
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* STYLES SPÉCIFIQUES À UN VOLET */
/* #atomisation h2 { */
/*   font-weight: 700; */
/* } */
/**/
/* #la-mort-vivante span { */
/*   font-size-adjust: 0.6; */
/* } */
/**/
/* #la-mort-vivante h2 { */
/*   font-size-adjust: 0.6; */
/* } */

.empty,
#securite-alimentaire {
  cursor: not-allowed;
}

#securite-alimentaire h2,
#securite-alimentaire p span {
  background-color: var(--fg);
}

#securite-alimentaire img,
#securite-alimentaire a {
  display: none;
}

@media (max-width: 768px) {
  :root {
    --coef: 1.25;
  }

  nav ul {
    font-size: var(--s1);
  }

  h1 {
    hyphens: auto;
  }

  ul li + li {
    margin-top: 1rem;
  }
}
@media (max-width: 768px) {
  :root {
    --coef: 1.25;
  }

  nav ul {
    font-size: var(--s1);
  }

  h1 {
    hyphens: auto;
  }

  ul li + li {
    margin-top: 1rem;
  }
}
