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

:root {
  --coef: 1.1;
  --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));

  --bg: white;
  --fg: black;
  /* --accent: #dfdfdf; */
  --accent: #1e1e1e;
  --delay: 0.5s;
  --easing: cubic-bezier(0.87, 0, 0.13, 1);
  --max-width: 1100px;
  --stroke-width: 2px;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  font-family: "Luciole", sans-serif;
  font-style: normal;
  font-weight: normal;
  transition:
    background-color var(--easing) var(--delay),
    color var(--easing) var(--delay);
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--fg);
}

::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
  cursor: grabbing;
}

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

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

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

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

h1 {
  font-size: calc(var(--s5) * 2);
  text-align: center;
  margin-bottom: 1rem;
}

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

h2 {
  font-size: var(--s3);
  margin-bottom: 1rem;
}
h3 {
  font-size: var(--s3);
}
h4 {
  font-size: var(--s2);
}
h5 {
  font-size: var(--s1);
}
h6 {
  font-size: var(--s0);
}

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

a:hover,
a:focus {
  text-decoration: none;
}

p {
  line-height: 1.4;
  font-size: var(--s0);
}

main {
  padding-block: 7rem 2rem;
  font-size: var(--s0);
  scrollbar-color: var(--fg) var(--bg);
  scrollbar-width: auto;
}

/* HEADER */
header.menu-temp {
  position: absolute;
  font-family: "Redaction_10-Bold-CVB";
  font-weight: normal;
  color: var(--bg);
  font-size: 5rem;
  -webkit-text-stroke: 0.01rem var(--fg);
  /* text-shadow: */
  /*   -0.1em 0.2rem 0 #00daaf, */
  /*   -0.2em 0.4rem 0 #0a78fe, */
  /*   -0.3em 0.6rem 0 #ae00e5, */
  /*   -0.4em 0.8rem 0 #ec015c; */
  text-shadow: 0 0 var(--fg);
  transition:
    all var(--easing) var(--delay),
    text-shadow 0.25s ease;
}

header.menu-temp:hover {
  text-shadow:
    -0.1em 0.2rem 0 #00daaf,
    -0.2em 0.4rem 0 #0a78fe,
    -0.3em 0.6rem 0 #ae00e5,
    -0.4em 0.8rem 0 #ec015c;
  cursor: pointer;
}

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

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

/* z-index dans cet ordre pour la version mobile */
header.menu-temp .nos {
  top: 0rem;
  left: 1rem;
  z-index: 1003;
}
header.menu-temp .futurs {
  top: 0rem;
  right: 1rem;
  z-index: 1002;
}
header.menu-temp .point {
  bottom: 0rem;
  left: 1rem;
  z-index: 1001;
}
header.menu-temp .net {
  bottom: 0rem;
  right: 1rem;
  z-index: 1000;
}

nav {
  position: fixed;
  bottom: 0;
  left: 0;

  width: 100%;
  background: transparent;

  z-index: 100;
}

nav ul {
  font-size: var(--s2);
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 3rem;
  margin: 0 auto;
  border-radius: 1em;
  padding: 1rem 2rem;

  max-width: 100%;
  text-align: center;
}

/* MAIN */

ul.articles-list-home {
  list-style: none;

  display: flex;
  flex-flow: row wrap;
  justify-content: center;

  gap: 2rem;
  padding: 1rem;

  perspective: 1000px;
}

.articles-list-home li {
  flex: 1 1 100%;
  min-width: 250px;
  max-width: 450px;
  aspect-ratio: 1 / 2;

  color: var(--fg);
  position: relative;
  border-radius: 0.1rem;
  box-shadow: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;

  border-radius: 60rem 60rem 0 0;
  border: solid var(--fg) 2px;
  box-shadow: -0.2em 0.2em 0.5em var(--accent);
  transform: translateZ(0) scale(1);
  transition:
    transform ease var(--delay),
    box-shadow ease var(--delay);
}

.articles-list-home li:hover,
.articles-list-home li:focus-within {
  box-shadow: -0.2em 0.2em 2em var(--accent);
  transform: translateZ(4px) scale(1);
}

.time {
  font-size: var(--s2);
  font-family: "Young Serif";
  min-width: fit-content;
  position: absolute;
  --margin: 1rem;
  border-radius: 2em;
  border: solid var(--fg) 2px;
  padding: 0.1em;
  line-height: var(--s2);
  height: calc(var(--s2) * 1.65);
  width: calc(var(--s2) * 1.65);
  text-align: center;
  right: var(--margin);
  bottom: var(--margin);
}

.header {
  margin-top: auto;
}

.title {
  transition: color ease var(--delay);
  margin-bottom: 0;
  font-size: var(--s1);
  font-family: "Young Serif", sans-serif;
  border-radius: 2em;
  border: solid var(--fg) 2px;
  padding: 0.3em 0.7em;
  margin-right: 2.7em;

  text-transform: uppercase;
}

.preview {
  height: 100%;
}

.preview img {
  --margin: 1rem;
  border-radius: 60rem 60rem 0 0;
  height: calc(100% - (5 * var(--margin)));
  width: calc(100% - (2 * var(--margin)));
  object-fit: cover;
  position: absolute;
  top: var(--margin);
  left: var(--margin);
  right: var(--margin);
  bottom: calc(2 * var(--margin));
}

li:focus-within .preview,
li:hover .preview {
  display: none;
}

.content {
  display: none;
  height: 100%;
}

li:focus-within .content,
li:hover .content {
  display: flex;
  flex-direction: column;
  justify-content: end;
}

#en-construction {
  cursor: not-allowed;
  margin-top: 1rem;
  font-size: var(--s0);
}

a {
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  border-color: transparent;
}

header a {
  border: none;
}

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

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

  header.menu-temp {
    display: flex;
    flex-direction: row;
    gap: 0;
    justify-content: center;
    width: 100%;
  }

  header.menu-temp span.lien-home {
    position: relative !important;
    top: initial !important;
    right: initial !important;
    bottom: initial !important;
    left: initial !important;
  }

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

  h1 {
    font-size: var(--s5);
    hyphens: auto;
  }

  main {
    padding-block: 7rem 1rem;
  }

  #intro {
    margin-inline: 1rem;
  }
}
