@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");
/* ==========================================================================
   COLORS / SETTINGS
   ========================================================================== */
:root {
  --color-white: #fff;
  --color-black: #000;
  --color-primary: tomato;
}

/* ==========================================================================
   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: 100px;
}

/*! 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;
}

/* ==========================================================================
   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 {
  color: var(--color-black);
  font-family: var(--font-primary);
  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: 1024px;
  margin: 0 auto;
  width: 100%;
}

/* ==========================================================================
   base / Components
   ===================== NE PAS MODIFIER LES STYLES ICI =====================
   ========================================================================== */
.base {
  font-family: "Montserrat", sans-serif;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.base h1 {
  font-size: 3rem;
}
.base ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.base li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.base li::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  transform: rotate(-45deg);
  transition: transform 0.3s ease-out;
}
.base li:hover:before {
  transform: rotate(0);
}
.base li:hover a {
  transform: translate3D(5px, 0, 0);
}
.base a {
  text-decoration: none;
  color: black;
  transition: all 0.3s ease-out;
}
.base a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   exercice / Components
   ===================== NE PAS MODIFIER LES STYLES ICI =====================
   ========================================================================== */
.exercice {
  padding: 75px 0;
}

.exercice {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
}
.exercice .wrapper {
  max-width: 1440px;
  margin: 0 auto;
}
.exercice .number__header {
  margin: 50px 0;
  padding: 20px 0;
  position: relative;
}
.exercice .number__header::before {
  content: "";
  background-color: var(--color-primary);
  width: 100vw;
  height: 100%;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: -1;
}
.exercice .number__header h1 {
  font-size: 3rem;
  margin: 0;
}
.exercice .number__header h2 {
  font-size: 2rem;
  margin: 0;
}
.exercice .number__header h3 {
  font-size: 1rem;
  text-transform: uppercase;
}
.exercice .number__header p {
  margin-top: 0;
}
.exercice .number__header ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.exercice .number__header li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.exercice .number__header li::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  transform: rotate(-45deg);
  transition: transform 0.3s ease-out;
}
.exercice .number__header a {
  color: var(--color-primary);
  text-decoration: none;
}
.exercice .number__header a:hover {
  color: black;
}

.ex_cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.ex_card {
  --padding: var(--spacing-sm);
  background: var(--color-primary);
  border-radius: 5px;
  padding: var(--padding);
  text-decoration: none !important;
  transition: 1s ease-out;
  position: relative;
  aspect-ratio: 16/9;
}
.ex_card h2 {
  border: none !important;
  text-decoration: inherit;
}
.ex_card span {
  position: relative;
}
.ex_card span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  height: 4px;
  background: var(--color-white);
  width: 30px;
  transition: 0.4s all ease-out, 0.4s background ease-out;
}
.ex_card:hover {
  color: var(--color-white) !important;
  transform: scale(1.05) rotate(1deg);
}
.ex_card:hover span::after {
  background: var(--color-black);
  width: 150%;
}

.box {
  width: 100%;
  border: 3px var(--color-primary) solid;
  aspect-ratio: 16/3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 30px;
}
.box h2 {
  color: var(--color-primary);
}
.box h2.active {
  color: teal;
}

/* ==========================================================================
   icons / component
   ========================================================================== */
.icon {
  fill: currentColor;
  display: inline-block;
  flex: 0 0 auto;
  height: 1em;
  vertical-align: middle;
  width: 1em;
  stroke: transparent;
}

.icon--stroke {
  fill: transparent;
  stroke: currentColor;
}

.icon--xs {
  height: 0.75em;
  width: 0.75em;
}

.icon--sm {
  height: 0.8em;
  width: 0.8em;
}

.icon--md {
  height: 1.25em;
  width: 1.25em;
}

.icon--lg {
  height: 1.75em;
  width: 1.75em;
}

.icon--xl {
  height: 7em;
  width: 7em;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-style: solid;
  border-width: 1px;
  border-color: tomato;
  padding: 30px;
}

.card__media {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.icon-container {
  color: white;
  background-color: tomato;
  border-style: solid;
  border-radius: 50%;
  border-width: 0px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards--large {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cards--large .card__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-style: solid;
  border-width: 1px;
  border-color: tomato;
  padding: 30px;
}

.cards--large .icon-container {
  width: 150px;
  height: 150px;
}
/*# sourceMappingURL=main.css.map */
