/* ░▒▓ LAYOUT.CSS - Détermine la spatialisation des éléments ▓▒░ */
/*
/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ▓▓ RÈGLES DE BASE (mobile first) ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/*
/* ▒▒▒▒▒▒▒▒▒▒▒ */
/* Généralités */
/* ▒▒▒▒▒▒▒▒▒▒▒ */
.invisible {
  position: fixed;
  top: -1;
  left: -1;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hidden {
  display: none;
}

time {
  display: block;
  text-align: center;
}

.imgWrapper {
  flex: 1 0 auto;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.imgWrapper * {
  flex: 0 0 100%;
}

.imgWrapper img {
  object-fit: cover;
  object-position: center;
  position: relative;
  max-width: 100vw;
  min-height: 16rem;
}

.button,
.button-inverted {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  justify-content: center;
  -ms-align-items: center;
  align-items: center;
  padding: 1em;
  text-align: center;
}

.doubleButton {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 1rem;
  margin-top: var(--XXLFontSize);
}

.doubleButton a {
  flex-shrink: 0;
  flex-grow: 1;
  display: block;
}

/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
/* Structure des pages */
/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
body {
  scrollbar-gutter: stable both-edges;
}

#pageWrapper {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  justify-content: center;
  -ms-align-items: stretch;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: var(--LFontSize) var(--LFontSize) calc(var(--mainMenuThickness) + var(--LFontSize)) var(--LFontSize);
  overflow: hidden;
}

main {
  z-index: 1;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-align-items: center;
  align-items: center;
  width: 100%;
  max-width: 1024px;
}

body:not(#indexContent) main {
  padding-bottom: 25vh;
}

main::after {
  content: '';
  position: fixed;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: calc(var(--mainMenuThickness) + var(--LFontSize));
}

main .SContentWrapper,
main .LContentWrapper {
  width: 100%;
  min-height: 100%;
  margin-top: var(--LFontSize);
}

.SContentWrapper {
  max-width: 680px;
}

main>article>*+* {
  margin-top: var(--XXLFontSize);
}

h1,
h2 {
  text-align: center;
  line-height: 1.25em;
  padding-left: calc(1em / 16);
}

main>header h1+*:not(#logoWrapper),
article>header h1+*:not(#logoWrapper) {
  margin-top: var(--LFontSize);
}

p {
  line-height: var(--LFontSize);
}

p+p {
  margin-top: var(--LFontSize);
}

article>ul {
  margin-top: var(--LFontSize);
  margin-bottom: var(--XXLFontSize);
  line-height: var(--LFontSize);
  list-style: disc;
}

article>ul>li {
  margin-top: var(--SFontSize);
}

article header>strong {
  display: block;
  margin-top: var(--XXLFontSize);
  line-height: var(--LFontSize);
}

/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
/* Menu de navigation */
/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
#mainMenu {
  z-index: 2;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  justify-content: center;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
}

#mainMenu ul {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 4vmin, 1.33rem);
  height: var(--mainMenuThickness);
}

#mainMenu li {
  position: relative;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}

#mainMenu a {
  display: flex;
  justify-content: center;
  -ms-align-items: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-indent: -9999px;
}

#mainMenu li a:before {
  position: absolute;
  top: 0;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  justify-content: center;
  -ms-align-items: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-indent: initial;
}

#mainMenu li:first-child a:before {
  content: "Index";
}

#mainMenu li:nth-child(2) a:before {
  content: "Book";
}

#mainMenu li:nth-child(3) a:before {
  content: "Mail";
}

#mainMenu li:last-child a:before {
  content: "CV"
}

/* ▒▒▒▒▒▒▒▒▒▒▒▒ */
/* Arrière-plan */
/* ▒▒▒▒▒▒▒▒▒▒▒▒ */
#linesWrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--mainMenuThickness));
}

#lines {
  position: absolute;
  left: 50%;
  top: 50%;
  height: clamp(50rem, 220vmin, 67rem);
  transform: translate(-50%, -50%);
}

/* ▒▒▒▒▒▒▒▒▒▒▒ */
/* Formulaires */
/* ▒▒▒▒▒▒▒▒▒▒▒ */
input {
  border: none;
  padding: 0;
}

/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ▓▓ RESPONSIVE ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/* ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ */
/*
/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
/* Mobile horizontal */
/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
@media screen and (orientation: landscape) {

  /* ▒▒▒▒▒▒▒▒▒▒▒ */
  /* Généralités */
  /* ▒▒▒▒▒▒▒▒▒▒▒ */
  .imgWrapper img {
    max-width: 100%;
  }

  /* ░░░░░░░░░░░░░░░░░░░ */
  /* Structure des pages */
  /* ░░░░░░░░░░░░░░░░░░░ */
  #pageWrapper {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: var(--LFontSize) var(--LFontSize) var(--LFontSize) calc(var(--mainMenuThickness) + var(--LFontSize));
    overflow: hidden;
  }

  /* ░░░░░░░░░░░░░░░░░░ */
  /* Menu de navigation */
  /* ░░░░░░░░░░░░░░░░░░ */
  #mainMenu {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: initial;
    width: initial;
    height: 100%;
  }

  #mainMenu ul {
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    width: var(--mainMenuThickness);
    height: initial;
  }

  /* ░░░░░░░░░░░░ */
  /* Arrière-plan */
  /* ░░░░░░░░░░░░ */
  #linesWrapper {
    height: 100%;
  }

  #lines {
    left: calc(50% + var(--mainMenuThickness) / 2);
    height: clamp(32rem, 160vmin, 67rem);
  }
}

@media screen and (min-width: 512px) {

  /* ▒▒▒▒▒▒▒▒▒▒▒ */
  /* Généralités */
  /* ▒▒▒▒▒▒▒▒▒▒▒ */
  .doubleButton {
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .doubleButton a {
    flex: 1 1 0;
  }
}

/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
/* Tablette verticale */
/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
@media screen and (min-width: 480px) and (min-height: 640px) and (orientation: portrait) {

  /* ▒▒▒▒▒▒▒▒▒▒▒ */
  /* Généralités */
  /* ▒▒▒▒▒▒▒▒▒▒▒ */
  main>header h1+*:not(#logoWrapper),
  article>header h1+*:not(#logoWrapper) {
    margin-top: var(--XXLFontSize);
  }

  /* ░░░░░░░░░░░░░░░░░░░ */
  /* Structure des pages */
  /* ░░░░░░░░░░░░░░░░░░░ */
  #pageWrapper {
    padding: var(--XXLFontSize) var(--XXLFontSize) calc(var(--mainMenuThickness) + var(--XXLFontSize)) var(--XXLFontSize);
  }

  main .SContentWrapper,
  main .LContentWrapper {
    margin-top: var(--XXLFontSize);
  }

  main::after {
    height: calc(var(--mainMenuThickness) + var(--XXLFontSize));
  }
}

/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
/* Tablette horizontale */
/* ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ */
@media screen and (min-width: 640px) and (min-height: 480px) and (orientation: landscape) {

  /* ▒▒▒▒▒▒▒▒▒▒▒ */
  /* Généralités */
  /* ▒▒▒▒▒▒▒▒▒▒▒ */
  main>header h1+*:not(#logoWrapper),
  article>header h1+*:not(#logoWrapper) {
    margin-top: var(--XXLFontSize);
  }

  .imgWrapper img {
    max-width: calc(100vw - (var(--mainMenuThickness) + var(--XXLFontSize) * 2));
  }

  /* ░░░░░░░░░░░░░░░░░░░ */
  /* Structure des pages */
  /* ░░░░░░░░░░░░░░░░░░░ */
  #pageWrapper {
    padding: var(--XXLFontSize) var(--XXLFontSize) var(--XXLFontSize) calc(var(--mainMenuThickness) + var(--XXLFontSize));
  }
}