:root {
  --background-color-white: #eff3f4;
  --color-primary: #01626c;
  --color-secondary: #f6a500;
  --font-color-black: #004850;
  --font-color-white: #ffffff;
}

h1 {
  font-family: "Inter", Courier, monospace;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-align: center;
}

h2 {
  font-family: "Inter", Courier, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--font-color-black);
  text-align: center;
  margin-bottom: 1rem;
}

h3 {
  font-family: "Inter", Courier, monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--font-color-black);
  margin-bottom: 0.4rem;
}

p,
li,
a {
  font-family: "Inter", Courier, monospace;
  font-size: 1rem;
  color: var(--font-color-black);
  height: fit-content;
}

li {
  margin-bottom: 1rem;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  min-height: 100svh;
  gap: 3rem;
}

/* ================================================================== Header ===== */

header {
  width: 100%;
  height: 15rem;
  background-color: var(--color-primary);
  display: flex;
  overflow: hidden;
  justify-content: center;
}

.placement-layout {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 60rem;
  max-width: 90svw;
  gap: 1rem;
}

header .placement-layout::after {
  content: "";
  position: absolute;
  display: none;
  top: 50%;
  left: 5%;
  rotate: 180deg;
  height: 75%;
  aspect-ratio: 600 / 467;
  background-image: url("../src/images/pattern-bigjim.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
}

header .placement-layout::before {
  content: "";
  position: absolute;
  display: none;
  top: -50%;
  right: 5%;
  height: 75%;
  aspect-ratio: 600 / 467;
  background-image: url("../src/images/pattern-bigjim.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
}

header .placement-header-img {
  height: 60%;
  /* background-color: var(--color-primary); */
  align-self: center;
  margin: auto;
  z-index: 10;
  padding: 1.5rem;
  border-radius: 2rem;
}

header img {
  height: 100%;
}

/* ================================================================== Footer ===== */

footer {
  width: 100%;
  padding: 3rem 0;
  background-color: var(--color-primary);
  display: flex;
  overflow: hidden;
  justify-content: center;
}

footer img {
  color: red;
  width: 1.2rem;
}

footer .placement-layout > div {
  display: flex;
  flex-direction: column;
}

.footer-titre {
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  align-items: center;
}

.footer-titre h2 {
  color: #f6a500;
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.footer-jobs {
  font-size: 1rem;
  background-color: #f6a500;
  padding: 0.8rem;
  border-radius: 0.7rem;
  height: fit-content;
}

.footer-jobs strong {
  margin: 0;
  font-family: "Inter", Courier, monospace;
  color: var(--font-color-black);
}

.picture_text {
  gap: 0.8rem;
  display: flex;
}

.footer-adress {
  padding: 0 2rem;
}

.footer-adress p {
  color: var(--font-color-white);
  height: fit-content;
}

.footer-contact {
  justify-content: center;
  gap: 2rem;
  padding: 0 2rem;
  align-items: baseline;
}

.images-reseaux img {
  height: 1.5rem;
  width: 1.5rem;
}

.footer-contact a {
  color: var(--font-color-white);
}

/* ================================================================== Main ===== */

main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  position: relative;
}

main::after {
  content: "";
  height: 40svh;
  max-height: 30rem;
  rotate: -18deg;
  aspect-ratio: 1/1;
  bottom: 10%;
  right: -20%;
  background-image: url("../src/images/logo_carre.svg");
  background-repeat: no-repeat;
  opacity: 0.1;
  position: absolute;
}

section {
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 60em) {
  section {
    width: 60rem;
  }

  header {
    height: 20rem;
  }

  footer .placement-layout > div {
    flex-direction: row;
  }

  .footer-adress {
    justify-content: center;
  }

  .footer-contact {
    align-items: center;
  }

  header .placement-layout::after {
    height: 100%;
    display: block;
  }

  header .placement-layout::before {
    height: 100%;
    display: block;
  }
}
