/**********************

	Reset

***********************/
/* --------------------------------------------- Settings --------------------------------------------- */

/**
* Indiquer au navigateur d'utiliser
* UTF-8 comme jeu de caractères */
@charset "utf-8";

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
}

/**********************

	Fonts

***********************/
@font-face {
  font-family: "Zarathustra";
  src: url("fonts/Zarathustra.woff2") format("woff2"),
    url("fonts/Zarathustra.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Italic.woff2") format("woff2"),
    url("fonts/Montserrat-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/**********************

	Global vars

***********************/
:root {
  --base0: rgb(10, 10, 10);
  --base100: rgb(255, 255, 255);

  --ghostwhite: rgb(248, 248, 255);

  --background: var(--ghostwhite);
  --contrast: rgb(138, 43, 226);
  --textcolor: var(--base0);

  /* --padding: 16px;
  --small-margin: 24px;
  --med-margin: calc(var(--small-margin) * 2.5);
  --tiny-left-margin: 6px;
  --indent: 90px;
  --content-left-margin: 6.81vw;
  --content-left-margin: calc(20vw + 1rem);
  --radius: 4px; */
  --content-left-margin: 28%;

  font-size: 14px;
  --title: calc(1rem + 3vw);
  --subtitle: calc(1rem + 1.1vw);
  --base-font-size: calc(1rem + 0.865vw);
  --small-font-size: 1.15rem;
  /* --small-font-size: calc(var(--base-font-size) - 0.465rem); */

  /* --small-font-size: 1.5rem; */
  --tiny-font-size: 1rem;
}

/**********************

	Global rules

***********************/
* {
  box-sizing: border-box;
  margin: 0;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

html {
  font-size: 100%;
}

body {
  background-color: var(--base100);
  color: var(--textcolor);
  font-family: "Zarathustra";
  font-weight: 500;
  font-feature-settings: "ss01";
  text-rendering: geometricPrecision;
  quotes: "«\0000A0""\0000A0»""‹" "›";
}

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

p {
  font-size: var(--small-font-size);
  line-height: 1.5;
}

p.exerg {
  font-size: var(--base-font-size);
  text-align: center;
}

p + p {
  margin-top: 1em;
}

em,
i {
  font-family: "Montserrat";
  font-style: italic;
  font-size: 0.95em;
}

a {
  color: currentColor;
  text-decoration: none;
  border-bottom: 1px solid #000;
  transition: padding 0.2s ease, color 0.2s ease;
}

a:hover {
  color: var(--contrast);
}

mark {
  background-color: rgb(204, 225, 223);
  padding-left: 0.15em;
  padding-right: 0.15em;
}

button {
  background-color: #fff;
  padding: 0;
  border-width: 0;
}

button.button {
  display: flex;
  margin-top: 24px;
}

button.button > a {
  font-size: var(--small-font-size);
  padding: 0.5em;
  border: 1px solid currentColor;
  border-radius: 1em;
}

ul,
li {
  list-style: none;
  padding: 0;
}

figure {
  background-color: var(--ghostwhite);
}

figure > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

figure > figcaption {
  font-size: var(--tiny-font-size);
  color: gray;
  padding: 6px;
}

.phantom-block {
  height: 0;
  width: 100%;
}

/**********************

	MENU - NAVIGATION

***********************/
#navbar {
  font-size: var(--base-font-size);
  line-height: 1.5;
  padding: 32px 16px;
  z-index: 1001;
}

#navbar > h1 {
  font-size: var(--subtitle);
  line-height: 1.15;
}

#navbar > h1 > span {
  color: #869bd5;
}

#pages-links > li {
  display: inline-block;
  line-height: 1.8;
  margin-right: 1em;
}

#pages-links li a {
  color: var(--base0);
  border-bottom-width: 0;
}

#pages-links > li > button > a:hover {
  padding-left: 1em;
}

#pages-links > li a.active {
  border-bottom-width: 1px;
}

/**** SUBMENU - PROJECTS NAV ****/
#toggle-projects {
  cursor: pointer;
}

#toggle-projects::after {
  content: "+";
  position: relative;
  top: 0.05em;
  display: inline-block;
  font-size: 1.3em;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.2s ease;
}

#toggle-projects:hover::after,
#toggle-projects.active::after {
  opacity: 1;
}

#toggle-projects.active::after {
  transform: rotate(45deg);
}

#projects-links {
  height: 0;
  width: 0;
  display: inline-block;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

#projects-links.visible {
  height: auto;
  width: auto;
  opacity: 1;
  pointer-events: all;
}

#projects-links > p {
  display: inline-block;
  font-size: var(--title);
  line-height: 1.8;
  margin-top: 0;
  margin-right: 1em;
}
#projects-links > p > a {
  border-bottom: 0.05em solid #000;
}

#projects-links > p > a:hover {
  color: var(--contrast);
}

/**** TOP SUBMENU - OTHER INFOS ****/
#section-infos {
  display: none;
}

/**********************

	MAIN - CONTENT

***********************/
#site-title {
  font-size: var(--subtitle);
  line-height: 1.15;
}

#site-title > p {
  /* color: #869bd5; */
  font-size: inherit;
}

.header {
  padding: 32px 16px 24px;
}

.main {
  padding: 0 16px 72px;
}

.main figure {
  margin-bottom: 24px;
}

.main section > img {
  width: 100%;
  height: auto;
}

.page-title {
  display: inline-block;
  font-size: var(--subtitle);
  line-height: 1.8;
  border-bottom: 0.05em solid #000;
  margin-bottom: 1em;
}

.main h2 {
  font-size: var(--tiny-font-size);
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  padding-left: 2em;
}

.main p + h2 {
  margin-top: 3em;
}

.main section.right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/**********************

	FOOTER

***********************/
.footer {
  padding: 0 16px 144px;
}

.footer > .infos {
  display: flex;
  gap: 2em;
}

.footer > .infos,
.footer > .infos p {
  font-size: Var(--tiny-font-size);
  text-transform: uppercase;
}

.footer > .infos .socials {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.footer > .infos .mail {
  font-size: 12px;
}

/**********************

	RESPONSIVE

***********************/
@media screen and (min-width: 375px) {
  #projects-links.visible {
    height: auto;
    width: auto;
    opacity: 1;
    padding: 16px;
    pointer-events: all;
  }
}

@media screen and (min-width: 768px) {
  .header,
  .main {
    padding-left: 32px;
    padding-right: var(--content-left-margin);
  }

  .footer {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media screen and (min-width: 1024px) {
  :root {
    --small-font-size: calc(var(--base-font-size) - 0.595rem);
  }

  #navbar {
    position: fixed;
    bottom: 0;
    left: 32px;
    top: 0;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 96px;
    padding-bottom: 96px;
    border-bottom-width: 0;
    overflow: auto;
  }

  #pages-links > li {
    display: block;
    margin-right: 0;
  }

  #projects-links {
    position: fixed;
    top: 0;
    right: 0;
    left: 22%;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    overflow: auto;
  }

  /**** TOP SUBMENU - OTHER INFOS ****/
  .footer > .infos {
    display: none;
  }

  #section-infos {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
  }

  #section-infos,
  #section-infos p {
    font-size: Var(--tiny-font-size);
    text-transform: uppercase;
  }

  #section-infos .socials {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  #section-infos .mail {
    font-size: 12px;
  }

  .header {
    display: flex;
    justify-content: center;
    padding: 32px 32px 72px;
  }

  .main {
    padding-left: var(--content-left-margin);
    padding-right: 0;
  }

  .main .c-1 > article {
    padding-right: 37%;
  }

  .main section.right .description {
    padding-right: 37%;
    margin-bottom: 42px;
  }

  .main section.right .description p:nth-child(2n) {
    padding-left: 2em;
  }

  .footer {
    padding-top: 72px;
    padding-left: var(--content-left-margin);
  }
}

@media screen and (min-width: 1366px) {
  .main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main .c-1 {
    width: 69.5%;
  }

  .main section.left {
    width: 30%;
    background-color: rgba(255, 255, 255, 0.95);
    padding-top: 24px;
    padding-right: 48px;
  }

  .main section.right {
    width: 69.5%;
    margin-top: 5em;
  }

  .footer {
    padding-right: var(--content-left-margin);
  }
}
