@import url('https://fonts.googleapis.com/css2?family=Lora&family=Noto+Serif+JP:wght@400;500&family=Pinyon+Script&display=swap');

@font-face {
  font-family: "MyNewYork";
  src: url("../fonts/NewYork.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

:root{
  scroll-behavior: smooth;
  --greenbg: #2a453a;
  --greentxt: #006139;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 2.2rem;
  line-height: 140%;
  color: var(--greentxt);
  font-family: 'Lora', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.jp{
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
}

.maj{
  font-family: 'Pinyon Script', 'Lora', serif;
  font-size: 1.5em;
  letter-spacing: -2px;
}

.fine.avant {
  margin-left: .14em;
}

.fine.apres {
  margin-right: .075em;
}

body{
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.app{
  position: relative;
  z-index: 9999;
  background-image: url("../img/blanctransparent.png");
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.montagnes {
  position: absolute;
  z-index: -8888;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: white;
  background-image: url('../img/Diablerets.svg'), url('../img/Fuji.svg');
  background-size: 100% auto, 100% auto;
  background-position: center top, center bottom;
  background-repeat: no-repeat;
  background-blend-mode: difference;
  mix-blend-mode: difference;
}

.ondes{
  position: fixed;
  z-index: -9999;
  top: 0;
  right: 0;
  left: 0;
  height: 100vh;
  background-image: url('../img/Ondes.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: difference;
}

h1, h2 {
  font-size: 2.4em;
  line-height: 110%;
  padding: .2em 0 .1em;
  margin: 0;
  font-family: 'MyNewYork', 'Lora', serif;
  font-weight: 400 !important;
}

h3{
  font-size: 1.6em;
  line-height: 125%;
  margin: 0 0 .32em;
  font-family: 'MyNewYork', 'Lora', serif;
  font-weight: 400 !important;
}

h4 {
  font-size: 1.1em;
  line-height: 120%;
  letter-spacing: -.5px;
  font-weight: 100;
  margin: 0;
}

h4.jp{
  margin-bottom: .32em;
  font-weight: 500 !important;
}

img{
  max-width: 100%;
  display: block;
  object-fit: contain;
}

a{
  color: currentColor;
  font-weight: inherit;
  text-decoration: none;
}

a{
  border-bottom: double 4px currentColor;
}

a:hover{
  border-bottom: solid 3px currentColor;
}

strong {
  font-weight: inherit;
  position: relative;
}

strong::after{
  content: "";
  position: absolute;
  display: block;
  background-color: currentColor;
  left:0;
  right: 0;
  bottom: .1em;
  height: 1px;
}

p {
  line-height: 135%;
  margin: .8rem 0;
}

p.jp,
p span.jp {
  font-weight: 500 !important;
}

ul li {
  text-align: left;
}

li {
  line-height: 3.2rem;
  margin-bottom: 1.6rem;
}

small{
  font-size: .4em;
}


/*---ALIGNEMENTS---*/

/* Largeurs */

.align {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.align.full {
  width: 100vw;
  border-radius: 0;
}

.align.wide {
  width: 1280px;
}

.align.normal {
  width: 720px;
}

.align.narrow {
  width: 480px;
  
}

/* Alignements */

.align.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

.align.center .sep {
  margin-left: auto;
  margin-right: auto;
}

.align.right {
  align-self: flex-end;
}


/* CONTENT */

.app > section{
  padding-left: 3.2rem;
  padding-right: 3.2rem;  margin-bottom: 3.2rem;
  margin-top: 3.2rem;
}

header{
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100vh;
}

header svg {
  width: 320px;
  height: 20vh;
  max-width: 100%;
  margin: 3.2rem auto;
}

header p{
	height: 1.6rem;
	line-height: 1.6rem;
	padding: 0;
	margin: 0;
}

header a{
	border: none;
	text-align: center;
}

.language{
	display: inline-block;
	width:2.4rem;
	height: 2.4rem;
	background-position: center;
	background-size: contain;
	border-radius: 2px;
	border: solid 2px white;
	box-sizing: content-box;
	box-shadow: 0 0 10px #aaa;
	transition: border-color .2s ease-out;
}

.language.current,
.language:hover,
.language:active{
	border: solid 2px #006139;
}

.language span{
	display: none;
}

.language.french{
	background-image: url(../img/ch.png);
}

.language.japanese{
	background-image: url(../img/jp.png);
	margin-left: 1.6rem;
}

section{
  min-height: 70vh;
  justify-content: center;
  padding-top: 12.8rem;
  padding-bottom: 12.8rem;
}

section.fond{
  background-position: center;
  background-size: cover;
  margin: 0;
}

.fond.sombre {
  color: white;
  background-color: var(--greenbg);
  mix-blend-mode: multiply;
}

section.content > *, header {
  padding: 3.2rem;
}

.sep{
  margin-top: 4.8rem;
  margin-bottom: 4.8rem;
  width: 60px;
}

footer{
  padding: 50vh 3.2rem 1.6rem;
  text-align: center;
}

/* MOBILE */
@media screen and (max-width:720px) {
  .montagnes {
    background-size: 250% auto;
  }

  header:after{
    width: 2px;
  }
}

@media screen and (max-width:720px) {
  h1, h2{
    font-size: 1.8em;
  }

  h3 {
    font-size: 1.2em;
  }

  h4 {
    font-size: .9em;
  }

  p{
    font-size: .8em;
  }
}