@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Jomolhari&family=Montserrat:wght@900&display=swap");
/* ==========================================================================
   cover / tools
   ========================================================================== */
/* ==========================================================================
   COLORS / SETTINGS
   ========================================================================== */
:root {
  --color-white: #fff;
  --color-black: #000;
  --color-primary: #6aa84f;
  --color-bg-primary: #212121;
  --color-bg-secondary: #3e92cc;
}

/* ==========================================================================
   FONTS / SETTINGS
   ========================================================================== */
:root {
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Fira Code', monospace;
  --font-size-content: 1.2rem;
  --font-size-h1: 4rem;
  --font-size-h2: 1.5rem;
}

/* ==========================================================================
   DIMENSIONS / SETTINGS
   ========================================================================== */
:root {
  --spacing-xs: 5px;
  --spacing-sm: 15px;
  --spacing-md: 30px;
  --spacing-lg: 50px;
  --spacing-xl: 105px;
  --grid-gap: var(--spacing-md);
}

/* ==========================================================================
   easing / settings
   ========================================================================== */
/*! 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 */
  -webkit-text-decoration: underline dotted;
          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;
}

/* ==========================================================================
   RESET / GENERIC
   ========================================================================== */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

img {
  max-width: 100%;
}

/* ==========================================================================
   BODY / ELEMENT
   Le body permet d'initialiser les propriétés générales de la page.
   Les éléments de la page vont hérités des propriétés inscrite dans body
   ========================================================================== */
body {
  background: var(--color-bg-primary);
  color: var(--color-white);
  font-family: var(--font-secondary);
  font-size: var(--font-size-content);
  line-height: 1.6;
}

/* ==========================================================================
   TYPOGRAPHY / ELEMENT
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  line-height: 1;
  font-weight: bold;
}

h1 {
  font-size: var(--font-size-h1);
  margin: 0;
  color: var(--color-primary);
}

h2 {
  font-size: var(--font-size-h2);
  font-family: var(--font-secondary);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

/* ==========================================================================
   LINKS / ELEMENTS
   Style de base de tous les liens et bouton du site
   ========================================================================== */
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==========================================================================
   WRAPPER / ELEMENT
   ========================================================================== */
.wrapper {
  max-width: 1440px;
  width: calc(100% - var(--spacing-md));
  margin: 0 auto;
}

/* ==========================================================================
   articles / component
   ========================================================================== */
.article {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
}
.article + .article {
  margin-top: var(--grid-gap);
}

/* ==========================================================================
   BUTTONS / COMPONENTS
   ========================================================================== */
.btn {
  background: none;
  border: none;
  outline: 5px var(--color-primary) solid;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-top: 40px;
  padding: 10px 40px;
  text-transform: uppercase;
  transition: all 0.2s ease-out;
}
.btn:hover {
  background: var(--color-primary);
  outline-width: 2px;
  color: var(--color-bg-primary);
}

.section .header .button {
  background: blue;
}
.nav-is-active .section .header .button {
  background: tomato;
}
.section .header .button .red {
  background: tomato;
}

/* ==========================================================================
   card / component
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
  justify-content: center;
  margin: 0 auto;
  width: 83.333%;
}
@media screen and (min-width: 768px) {
  .cards {
    display: grid;
    gap: var(--grid-gap);
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
  }
  .cards .card:nth-child(1) {
    grid-row: span 2;
  }
  .cards .card:nth-child(5) {
    grid-column: span 2;
  }
  .cards .card:nth-child(6) {
    grid-column: span 2;
  }
  .cards .card:nth-child(8) {
    grid-row: span 2;
  }
}

.card {
  align-items: center;
  color: var(--color-primary);
  display: flex;
  font: 3rem var(--font-primary);
  justify-content: center;
  min-height: 200px;
  position: relative;
  transition: color 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  width: 100%;
  z-index: 1;
}
.card::before {
  background-color: var(--color-white);
  border-radius: 10px;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  transition-property: background, transform;
  z-index: -1;
}
a:hover .card {
  color: var(--color-white);
  text-decoration: none;
}
a:hover .card::before {
  background-color: var(--color-primary);
  transform: scale(1.05);
}

/* ==========================================================================
   header / component
   ========================================================================== */
.header {
  --header-height: 100px;
  background-color: var(--color-bg-secondary);
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-sm);
  position: sticky;
  top: 0px;
  z-index: 5;
  height: var(--header-height);
  transition: transform 0.4s ease-out;
}
.header::before {
  background-color: var(--color-bg-secondary);
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
@media screen and (min-width: 1440px) {
  .header {
    padding: 0 var(--spacing-lg);
  }
}
.header-is-hidden.is-scrolling-down:not(.nav-is-active) .header {
  transform: translateY(-100%) translateY(4px);
}

.header__brand {
  max-width: 200px;
  position: relative;
  z-index: 10;
}

.header__toggle {
  --bar-height: 8px;
  --bar-spacer: 6px;
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  width: 50px;
  height: 50px;
  z-index: 10;
}
.header__toggle span {
  background-color: var(--color-white);
  border-radius: 3px;
  height: var(--bar-height);
  width: 100%;
  position: absolute;
  top: calc(50% - var(--bar-height) / 2);
  left: 0;
  transition: 0.3s all ease-out;
}
.header__toggle span:nth-child(1) {
  top: calc(50% - var(--bar-height) / 2 - var(--bar-height) - var(--bar-spacer));
}
.header__toggle span:nth-child(3) {
  top: calc(50% - var(--bar-height) / 2 + var(--bar-height) + var(--bar-spacer));
}
.nav-is-active .header__toggle span {
  top: calc(50% - var(--bar-height) / 2);
}
.nav-is-active .header__toggle span:nth-child(1) {
  transform: rotate(45deg);
}
.nav-is-active .header__toggle span:nth-child(2) {
  transform: scaleX(0);
}
.nav-is-active .header__toggle span:nth-child(3) {
  transform: rotate(-45deg);
}
@media screen and (min-width: 1024px) {
  .header__toggle {
    display: none;
  }
}

.nav-primary {
  background: var(--color-bg-secondary);
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: 0.3s all ease-in;
}
.nav-is-active .nav-primary {
  transform: translateX(0%);
}
.nav-primary ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  transform: translateX(-70%);
  transition: transform 0.4s ease-out;
}
.nav-is-active .nav-primary ul {
  transform: translateX(0%);
}
.nav-primary ul a {
  display: block;
  align-items: center;
}
@media screen and (min-width: 1024px) {
  .nav-primary {
    display: block;
    background: unset;
    position: relative;
    height: auto;
    width: auto;
    overflow-y: visible;
    padding-top: 0;
    z-index: 2;
    transform: translateY(0);
  }
  .nav-primary ul {
    flex-direction: row;
    transform: translateY(0);
  }
}

.nav-primary__item {
  font-size: var(--font-size-h1);
  color: var(--color-white);
  text-transform: uppercase;
  position: relative;
}
.nav-primary__item:hover {
  color: inherit;
}
@media screen and (min-width: 1024px) {
  .nav-primary__item {
    font-size: var(--font-size-h2);
    color: var(--color-white);
    position: relative;
    text-transform: none;
  }
  .nav-primary__item::before {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    height: 2px;
    width: 100%;
    content: "";
    background-color: white;
    transform: scaleX(0);
    transition: 0.3s all;
  }
  .nav-primary__item:hover {
    text-decoration: none;
    color: inherit;
  }
  .nav-primary__item:hover::before {
    transform: scaleX(1);
  }
}

.nav-is-active body {
  overflow: hidden;
}
@media screen and (min-width: 1440px) {
  .nav-is-active body {
    overflow: auto;
  }
}

/* ==========================================================================
   hero / component
   ========================================================================== */
.hero__title {
  grid-column: 2/-2;
  position: relative;
  z-index: 2;
}

.hero__content {
  grid-column: 1/-1;
  height: 300px;
}

/* ==========================================================================
   grid / component
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-md);
}

/* ==========================================================================
   SECTION / COMPONENTS
   ========================================================================== */
.section {
  padding: var(--spacing-md) calc(var(--spacing-md) / 2);
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  overflow: hidden;
}

.section__title {
  grid-template: 2/-2;
  text-align: center;
}

/* ==========================================================================
    ACCESSIBILITY / UTILITIES
   ========================================================================== */
.u-hidden-visually {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.u-hidden {
  display: none !important;
}

/* ==========================================================================
   spacing / utilities
   ========================================================================== */
.u-mb-4 {
  margin-bottom: 4rem !important;
}

.u-mbn-4 {
  margin-bottom: -4rem !important;
}
/*# sourceMappingURL=main.css.map */
