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

:root {
  --coef: 1.2;
  --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: #1e1e1e;
  --delay: 1s;
  --easing: cubic-bezier(0.87, 0, 0.13, 1);
  --max-width: 1100px;
  --stroke-width: 2px;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  overflow: hidden;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  font-family: 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;
  height: 100%;
  font-size: var(--s0);
  scrollbar-color: var(--fg) var(--bg);
  scrollbar-width: auto;
}

#intro {
  display: none;
}

/* 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: grid; */
  /* grid-template-columns: repeat(2, 1fr); */
  /* grid-template-columns: repeat(auto-fill, minmax(1fr, 400px)); */

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

  gap: 2rem;
  padding: 1rem;
}

.articles-list-home li {
  min-width: 250px;
  max-width: 400px;
  flex: 1 1 50%;
  perspective: 1000px;
  z-index: 1000;
}

.articles-list-home li::before {
  content: " ";
  width: 80%;
  height: 30%;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, -100px) scale(0);
  transition: transform var(--delay);
  border-radius: 100%;
  background: var(--bg-volet);
  position: absolute;
  z-index: -1000;
  isolation: auto;
  pointer-events: none;
}

li:hover::before,
li:focus-within::before {
  transform: translate(-50%, -50%) scale(20);
}

.carte {
  aspect-ratio: 4 / 7;
  color: var(--fg);
  background-color: var(--bg);
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* padding: 1rem; */
  gap: 1rem;
  box-shadow: -0.2em 0.2em 0.5em var(--accent);
  transform: rotateY(0deg);
  transition: transform ease calc(var(--delay) * 1);
  transform-style: preserve-3d;

  padding: 1rem;
}

li:hover .carte,
li:focus-within .carte {
  transform: rotateY(180deg);
  background-color: var(--bg-volet);
}

.carte,
.recto,
.verso {
  border-radius: 60rem 60rem 1rem 1rem;
}

.recto,
.verso {
  margin: 0.5rem;
  border: solid var(--fg) 0.15rem;
  overflow: hidden;

  position: absolute;
  inset: 0;
  -moz-backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-flow: column nowrap;
}

/* RECTO */
.recto {
  background-color: var(--bg);
}

.blason {
  flex: 1 1 auto;
  height: 90%;
  padding: 5rem 2rem 2rem 2rem;
}

.blason img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.title {
  text-align: center;
  transition: color ease var(--delay);
  margin-bottom: 0;
  font-size: var(--s2);
  font-weight: 700;
  text-transform: uppercase;
  border-top: solid var(--fg) 0.15rem;
  padding: 0.5rem;
}

/* VERSO */
.verso {
  color: var(--fg-volet);
  background-color: var(--bg-volet);
  transform: rotateY(180deg);
  padding: 1rem;

  gap: 1rem;
  justify-content: space-between;
}

.preview {
  height: 14rem;
}

.preview img {
  --radius: 9rem;
  border-radius: var(--radius) var(--radius) 0rem 0rem;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.content {
  font-size: var(--s-1);
}

#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;
  }
}
