/* cette CSS provient dans sa majeure partie du francum originel 
disponible à https://git.unistra.fr/arthur.pons/francium
et a été écrite par PikselKraft https://www.pikselkraft.com/*/

:root { 

    /* Fonts */
    --font-system: Arial, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

     /* 
        @TODO font base 18px
        ** Typo scale base 16px
        * Ratio = Quinte (1.5)
    */
    --ratio: 1.2;
    --space-xs:   calc(var(--space-base) / var(--ratio)); /* 7.111px */
    --space-sm:   calc(var(--space-base) / var(--ratio));          /* 10.667px */
    --space-base: 1.7rem;                                   /* 16px */
    --space-lg:   calc(var(--space-base) * var(--ratio)); /* 24px */
    --space-xl:   calc(var(--space-lg)   * var(--ratio)); /* 36px */
    --space-2xl:  calc(var(--space-xl)   * var(--ratio)); /* 54px */
    --space-3xl:  calc(var(--space-2xl)  * var(--ratio)); /* 81px */
    --space-4xl:  calc(var(--space-3xl)  * var(--ratio)); /* 121.5px */
    --space-5xl:  calc(var(--space-4xl)  * var(--ratio)); /* 121.5px */

    /* COLORS */
    --text-primary: #000000;
    --text-dark: #666666;
    --text-medium: #edead5;
    --text-light: #fefffe;

    --link-primary: #68715E;
    --link-secondary: #2F7598;

    --background-primary: #fdf6e3;
    --background-dark: #2f383e;
    --background-medium: #edead5;
    --background-light: #fefffe;
}

html, body, main{
  height: 100%;
  width: 100%;
  padding:0;
  margin:0;
}

html {
  -webkit-font-smoothing: antialiased; 
  --moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 100%; /* 16 pixels par défaut en moyenne */
}

body {
  font-family: var(--font-system); /* Utilisation d'une font système */
  font-weight: 400;
  line-height: 1.56;
  text-rendering: optimizeSpeed;
  background-color: var(--background-primary);
  font-size: var(--space-lg);
}

/* LAYOUT */
section, .hidden {
  display: none;
  height: 100%;
}

.visible {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}

.container {
  flex:1 1 0;
  padding:var(--space-xl);
}


/*TYPO*/

a { color: var(--link-primary); }
a:hover { color: var(--link-secondary); }

/*TITLES*/

h1, h2, h3, h4, h5 {
  position: relative;
  font-weight: bold;
}

h1, h2, h3 {
  padding: 0 0.75rem;
  background-color: var(--background-medium);
  max-width: max-content;
}

h1, .h1-like {
  font-size: var(--space-2xl);
  line-height: 1.44;
}

h2, .h2-like {
  font-size: var(--space-xl);
  line-height: 1.54;
  letter-spacing: 0.13px;
}

h3, .h3-like {
  font-size: var(--space-lg);
  line-height: 1.3333;
  letter-spacing: 0.1px;
}

/*Selection*/

::selection {
  color: var(--text-medium);
  background-color: var(--text-light);
}

/*TABLE*/

tbody tr:nth-child(even), th {
  background-color: var(--background-medium);
}

/*BODY*/

/*@TODO un pattern + interaction design -> univers Katzele*/

blockquote {
  border-left: solid 4px var(--background-medium);
  padding-left: 28px;
  color: var(--text-dark);
}

/*PRE*/

pre, code {
  padding: 1rem;
  width: max-content;
  max-width: 95%;
  tab-size: 2;
  white-space: pre-wrap;
  background: var(--background-dark);
  color: var(--text-light);
}

/* IMAGES  */


.container img {
  display:block;
  max-height: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

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

/* LICENCE BLOCK */

.licence {
  font-size: 1rem;
  font-weight: bold;
  position: fixed;
  bottom: 1%;
  right: 1%;
}

/* SLIDES NAV  */

.nav-left,
.nav-right {
  appearance: none;
  border: unset;
  background-color: transparent;
  width: 50px;
  height: 100%;
  position: fixed;
  top: 0;
  display: none;
}

.nav-left {
  left: 0;
}
.nav-right {
  right: 0;
}

.nav-left span, 
.nav-right span {
  display: none;
  font-size: var(--space-2xl);
}

.nav-left:hover span, 
.nav-right:hover span {
  display: flex;
  text-align: center;
  padding: 10px;
  height: 100%;
  justify-content: center;
  align-items: safe center;
  background-color: var(--background-medium);
  color: #444;
}
