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

	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: "Courgette";
  src: url("fonts/courgette/Courgette-Regular.woff2") format("woff2"),
    url("fonts/courgette/Courgette-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "CherrySwash";
  src: url("fonts/cherry-swash/CherrySwash-Bold.woff2") format("woff2"),
    url("fonts/cherry-swash/CherrySwash-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HKGrotesk";
  src: url("fonts/hk-grotesk/HKGrotesk-Medium.woff2") format("woff2"),
    url("fonts/hk-grotesk/HKGrotesk-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

	Global vars

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

  --grey90: rgb(242, 242, 238);

  --kaki: rgb(98, 115, 34);
  --sky: rgb(146, 161, 209);
  --maroon: rgb(111, 18, 40);
  --cream: rgb(253, 246, 222);
  --sand: rgb(202, 188, 128);
  --ocre: rgb(139, 116, 17);

  --background: var(--grey90);
  /* --contrast: rgb(255, 255, 0); */
  --text: 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;

  font-size: 16px;
  --title: 1.4em;
  --subtitle: calc(1rem + 1.1vw);
  --base-font-size: calc(1rem + 0.865vw);
  --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(--cream);
  color: var(--text);
  font-family: "HKGrotesk";
  font-weight: 500;
  font-size: 1.1rem;
  font-feature-settings: "ss01";
  text-rendering: geometricPrecision;
  quotes: "Â«\0000A0""\0000A0Â»""â€¹" "â€º";
}

::selection {
  background-color: var(--ocre);
  color: var(--cream);
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "CherrySwash";
  font-weight: 700;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 500;
}

p {
  line-height: 1.27;
}

p > span {
  color: var(--ocre);
}

a {
  text-decoration: none;
  color: currentColor;
}

u {
  text-decoration: none;
  border-bottom: 0.1em solid currentColor;
}

ul {
  padding-left: 1em;
}

li {
  line-height: 1.5;
}

figure {
  display: flex;
}

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

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

	Main navigation menu

***********************/
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  display: flex;
  align-items: center;
  background-color: var(--cream);
  padding-top: 1rem;
  padding-left: var(--padding);
  padding-bottom: 1rem;
  /* border-bottom: 1px solid var(--sand); */
  z-index: 1001;
}

#navbar > #logo {
  height: 3rem;
  display: inline-block;
}

#navbar > #logo > svg {
  height: 100%;
  width: auto;
}

#burger-icon {
  position: absolute;
  top: 1.75rem;
  right: var(--padding);
  height: 1.5rem;
  min-width: 2.25rem;
  display: flex;
  align-items: center;
  background-color: var(--cream);
  color: var(--ocre);
  font-family: "Courgette";
  font-size: var(--title);
  padding: 0;
  border-width: 0;
  cursor: pointer;
}

#burger-icon div {
  position: absolute;
  left: 0;
  width: 2.25rem;
  height: 2px;
  background-color: var(--ocre);
  transition: top 0.3s ease-in-out, bottom 0.3s ease-in-out, opacity 0.3s linear,
    transform 0.3s ease-in-out;
}

#burger-icon div:nth-child(1) {
  top: 0;
  transform-origin: top left;
}

#burger-icon div:nth-child(3) {
  bottom: 0;
  transform-origin: bottom left;
}

#burger-icon > span {
  display: none;
  font-family: "HKGrotesk";
  font-size: var(--subtitle);
  margin-left: 3.25rem;
}
/* 
#burger-icon:hover div:nth-child(1) {
  top: 3px;
}

#burger-icon:hover div:nth-child(3) {
  bottom: 3px;
} */

#burger-icon.active div:nth-child(1) {
  transform: rotate(45deg);
}

#burger-icon.active div:nth-child(2) {
  opacity: 0;
}

#burger-icon.active div:nth-child(3) {
  transform: rotate(-45deg);
  bottom: -3px;
}

/**********/
#menu-bar {
  position: fixed;
  top: 5rem;
  left: -5rem;
  right: 0;
  bottom: 0;
  height: calc(100% - 5rem);
  width: 100%;
  background-color: var(--cream);
  border-top: 1px solid var(--sand);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 995;
  transition: opacity 0.3s ease-in-out, left 0.3s ease-in-out;
}

#menu-bar.displayed {
  left: 0;
  opacity: 1;
  pointer-events: initial;
}

#menu-bar > figure {
  display: none;
  padding: var(--padding);
}

#menu-bar > figure > img {
  border-radius: var(--radius);
  mix-blend-mode: normal;
}

#menu-bar > ul {
  padding: var(--small-margin) var(--padding) 0;
  /* display: none; */
}

#menu-bar ul,
#menu-bar li {
  list-style: none;
}

#menu-bar > ul button {
  /* width: 100%; */
  display: flex;
  background-color: var(--sand);
  font-size: var(--title);
  font-family: "CherrySwash";
  text-align: left;
  padding: 0;
  border-width: 0;
  border-radius: 0.1em;
  transition: transform 0.3s ease-in-out;
}

#menu-bar > ul button:hover {
  outline: 1px solid currentColor;
  background-color: var(--base100);
  /* transform: scale(102%); */
}

#menu-bar > ul button > a {
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: 0.3875rem;
  padding-left: var(--small-margin);
  padding-right: var(--small-margin);
  padding-bottom: 0.6125rem;
}

#menu-bar > ul button > a:hover > svg {
  transition: margin 0.3s linear;
}

#menu-bar > ul button > a:hover > svg {
  margin-left: 0.2em;
}

#menu-bar > ul button > a > svg {
  position: relative;
  top: 0.05em;
}

#menu-bar > ul > li {
  display: flex;
  align-items: center;
  padding: var(--small-margin) 0;
}

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

	Main content rules

***********************/
.header {
  position: relative;
  width: 100%;
  min-height: 50vh;
  margin-top: 5rem;
  padding-bottom: 8.25rem;
}

.header > figure {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* min-height: 50vh; */
  width: 100%;
  height: 100vw;
  padding: var(--padding);
  z-index: -1;
}

.header > figure img {
  border-radius: var(--radius);
}

.header > article,
.header > section {
  padding: 5.25rem var(--padding) 2.25rem;
}

.header > article > h1 {
  display: inline;
  color: var(--cream);
  font-size: var(--title);
  font-weight: 500;
  line-height: 1.8;
  padding: 0.3em 0;
}

.header > article > h1 > span {
  background-color: var(--cream);
  padding: 0.3em 0.3em 0.45em;
  color: var(--maroon);
  border-radius: 0.1em;
  box-decoration-break: clone;
}

.main {
  /* padding-top: calc(5rem + var(--small-margin)); */
  padding-top: 5rem;
}

.main > section {
  width: 100%;
  display: inline-block;
  padding-bottom: 6.25rem;
}

.main > section > header,
.main > section > article,
.main > section#products > ul {
  padding-left: var(--padding);
  padding-right: var(--padding);
}

.main > section > header {
  position: sticky;
  top: 5rem;
  background-color: var(--cream);
  padding-bottom: 1rem;
  z-index: 995;
}

.main > section > header > h1 {
  display: flex;
  align-items: center;
  font-size: var(--title);
  padding: var(--padding) 0;
  border-bottom: 1px solid var(--sand);
}

.main > section > header > h1::before {
  content: "";
  display: inline-block;
  height: 1em;
  width: 1em;
  background-color: var(--ocre);
  margin-right: 1rem;
  border-radius: 50%;
}

section.kaki > header > h1::before {
  background-color: var(--cream);
}

.main > section h2 {
  display: inline-block;
  color: var(--ocre);
  font-size: var(--subtitle);
  /* padding-bottom: 0.25em; */
  margin-top: 2.25rem;
  margin-bottom: 0.33em;
  /* border-bottom: 4px solid var(--sand); */
}

section.kaki h2 {
  color: var(--cream);
}

.main > section p + h2 {
  margin-top: 2em;
}

.main > section article {
  width: 100%;
  display: inline-block;
  margin: 2.25rem 0;
}

.main > section > article.larger {
  padding: 0;
  margin: 4.25rem 0;
}

.main > section article > p + p {
  margin-top: 1em;
}

.main > section article > figure {
  margin: 2.25rem 0;
  border: 1px solid var(--ocre);
}

.main > div.poster {
  position: relative;
  /* height: 40vw; */
  /* margin: 4.25rem var(--padding) 2.25rem; */
  border-width: 0;
}

.main > section > article.larger.split-2 > div > p {
  display: flex;
  align-items: center;
  /* font-family: "Courgette"; */
  font-size: var(--subtitle);
  text-align: center;
  padding: 3.25em var(--padding);
}

.main > section#command {
  margin-bottom: 0;
  padding-bottom: 6.25rem;
}

.main > section#command > header {
  position: static;
  background-color: transparent;
}

.main > section#command > header > svg {
  display: none;
}

.main > section#command > header > svg > path {
  stroke: var(--cream);
}

.footer {
  /* background-color: var(--sand); */
  padding: 9.25rem var(--padding);
  /* margin-top: 4.25rem; */
}

.footer > section {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
}

.footer > section > p {
  width: 100%;
  font-family: "CherrySwash";
  font-weight: 500;
  font-size: var(--subtitle);
  text-align: center;

  padding: var(--small-margin) 0;
}

.footer > section > p.tel {
  border-top: 0.3em dotted currentColor;
}

.footer > section > a {
  display: inline-block;
  background-color: var(--cream);
  color: var(--base0);
  font-size: var(--subtitle);
  padding-top: 0.1875rem;
  padding-left: 0.725rem;
  padding-right: 0.725rem;
  padding-bottom: 0.3125rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--small-margin);
  border-radius: 0.1em;
  outline: 1px solid currentColor;
  transition: border-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.footer > section > a:hover {
  outline: 1px solid currentColor;
  transform: scale(102%);
}

.footer > section > #footer-logo {
  width: 100%;
  margin-top: 2.25rem;
  padding: 0 var(--small-margin);
}

.footer > section > #footer-logo > svg {
  width: 100%;
}

.footer > section > #footer-logo > svg > * {
  fill: var(--cream);
}

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

	Sections styles

***********************/
.kaki {
  background-color: var(--maroon);
  color: var(--cream);
}

.kaki p > span {
  color: var(--grey90);
}

.sky {
  background-color: var(--sky);
  color: var(--base0);
}

.maroon {
  background-color: var(--maroon);
  color: var(--cream);
}

.ocre {
  background-color: var(--ocre);
  color: var(--cream);
}

.sand {
  background-color: var(--sand);
  color: var(--maroon);
}

.sandAlt {
  background-color: var(--sand);
  color: var(--ocre);
}

.cream {
  background-color: var(--cream);
  color: var(--maroon);
}

.creamAlt {
  background-color: var(--cream);
  color: var(--ocre);
}

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

	Typography styles

***********************/
.emphasis {
  font-family: "Courgette";
  font-size: var(--subtitle);
  text-align: center;
  margin: 2.25rem var(--padding) 1.75rem;
  padding: 0;
  padding-bottom: 1em;
  border-bottom: 4px dotted var(--ocre);
}

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

	Componetns styles

***********************/
.box {
  background-color: var(--kaki);
  color: var(--cream);
  font-size: var(--subtitle);
  padding: 1em;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  border-bottom: 0.3em solid var(--base0);
}

.a-btn {
  display: inline-block;
  background-color: var(--cream);
  color: var(--base0);
  /* font-family: "CherrySwash"; */
  font-size: var(--base-font-size);
  padding-top: 0.1875rem;
  padding-left: 0.725rem;
  padding-right: 0.725rem;
  padding-bottom: 0.3125rem;
  margin-top: 2em;
  border-radius: var(--radius);
  border-bottom: 4px solid var(--sand);
  outline: 1px solid currentColor;
  transition: transform 0.3s ease-in-out, backgounr-color 0.3s ease-in-out;
}

.a-btn:hover {
  background-color: var(--base100);
  border-color: var(--grey90);
  transform: scale(102%);
}

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

  RESPONSIVE
  
******************/
@media screen and (min-width: 480px) {
  :root {
    --title: 1.8em;
  }
}

@media screen and (min-width: 580px) {
  .footer > section {
    width: 60%;
  }

  .footer > section > #footer-logo {
    padding: 0;
  }
}

@media screen and (min-width: 768px) {
  :root {
    --title: calc(1rem + 2vw);
  }

  body {
    font-size: 1.145rem;
  }

  .header > figure {
    height: 100%;
  }
}

@media screen and (min-width: 1024px) {
  :root {
    --subtitle: calc(1rem + 1.4vw);
    --small-font-size: calc(1rem + 0.495vw);
    --tiny-font-size: calc(1rem + 0.205vw);
    --med-content-margin: calc(10vw + 1rem);
  }

  body {
    font-size: var(--small-font-size);
  }

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

  #menu-bar {
    bottom: unset;
    height: auto;
    display: flex;
    border-bottom: 1px solid var(--sand);
  }

  #menu-bar > figure {
    display: block;
    width: 35%;
    max-height: 420px;
    border-right: 1px solid var(--sand);
  }

  #menu-bar > ul {
    width: 50%;
    padding-top: 0;
    padding-left: var(--small-margin);
  }

  #menu-bar > ul > li > button {
    font-size: var(--small-font-size);
  }

  .header > section > a {
    font-size: var(--small-font-size);
  }

  .header > article {
    padding-left: var(--content-left-margin);
  }

  .main > section > header,
  .main > section article {
    padding-left: var(--content-left-margin);
    padding-right: var(--content-left-margin);
  }

  .main > section > article.larger {
    padding-left: 0;
    padding-right: 0;
  }

  .main > section > article.larger.split-2 > div > p {
    font-size: var(--base-font-size);
  }

  .main > section#command > header {
    display: flex;
    padding-left: var(--padding);
  }

  .main > section#command > header {
    display: flex;
    justify-content: space-between;
    padding-left: var(--med-content-margin);
    padding-right: var(--med-content-margin);
  }

  .main > section#command > header > h1::before {
    margin-bottom: 1rem;
  }

  .main > section#command > header > h1 {
    max-width: 12ch;
    flex-direction: column;
    align-self: end;
    text-align: center;
    border-bottom: none;
  }

  .main > section#command > header > svg {
    width: auto;
    height: 480px;
    display: block;
  }

  .main > section#command > header > svg > path {
    stroke-width: 0.5;
  }

  .main > section#command article {
    padding-left: var(--med-content-margin);
    padding-right: var(--med-content-margin);
  }

  .footer > section {
    max-width: 45%;
  }

  .footer > section > p {
    font-size: var(--small-font-size);
  }
}

@media screen and (min-width: 1215px) {
  #navbar > #burger-icon {
    right: unset;
    left: var(--content-left-margin);
  }

  #navbar > #burger-icon > span {
    display: block;
  }

  .main > section > article.larger.split-2 {
    display: flex;
    flex-wrap: wrap;
  }

  .main > section > article.larger > div {
    position: relative;
    margin-top: 0;
  }

  .main > section > article.larger.split-2 > div {
    width: 50%;
  }

  .main > section > article.larger.split-2 > div > p {
    height: 100%;
    padding: 2em 3.25em calc(2em + 5rem);
  }
}
