:root {
  --primary-color: #ffb52c;
  --secondary-color: #ffefd3;
  --black: #0A0A0A;
  --white: #F5F5F5;
  font-size: 16px;
  background-color: var(--secondary-color);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  overflow-x: hidden;
}

body, body > * {
  background-color: var(--secondary-color);
}

.unstyled-button {
  border: none;
  background: none;
}

.button {
  display: block;
  padding: .5em .8em;
  width: max-content;
  border: var(--primary-color) 1px solid;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: bold;
  min-width: 110px;
  border-radius: 40px;
  transition: .5s;
  text-decoration: none;
}
.button:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

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

header {
  z-index: 5;
  padding: 1rem;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  box-shadow: 0px 4px 4px #00000040;
  height: 150px;
}

header > .ctn {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

header > .ctn > .ct {
  width: calc(7 * 25px);
  height: calc(3 * 25px);
  display: grid;
  grid-template-columns: 25px 25px 25px 25px 25px 25px 25px;
  grid-template-rows: 25px 25px 25px;
}
.square:nth-child(2), .square:nth-child(3), .square:nth-child(6) {
  background-color: var(--black);
}
.square, .square:nth-child(4), .square:nth-child(5), .square:nth-child(7) {
  background-color: var(--white);
}
.square:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.square:nth-child(2) {
  grid-column: 2;
  grid-row: 2;
}
.square:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}
.square:nth-child(4) {
  grid-column: 4;
  grid-row: 2;
}
.square:nth-child(5) {
  grid-column: 5;
  grid-row: 1;
}
.square:nth-child(6) {
  grid-column: 6;
  grid-row: 2;
}
.square:nth-child(7) {
  grid-column: 7;
  grid-row: 3;
}

/* ============= navbar =============*/

.navbar {
  position: absolute;
  top: 150px;
  width: 100%;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0px 4px 4px #00000040;
  transition: .5s;
}
.navbar.active {
  display: flex; 
}

.navbar__list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  justify-content: center;
  text-decoration: underline;
}
.navbar__list a, .navbar__list span {
  border-radius: 1rem;
  display: block;
  padding: .5rem;
  cursor: pointer;
  transition: .5;
  color: var(--white);
}
.navbar__button {
  position: relative;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.navbar__button > .bar {
  width: 100%;
  height: 4px;
  background: var(--black);
  border-radius: 4px;
  transition: .5s;
}
.navbar__button.close > .bar:nth-child(2) {
  opacity: 0;
}
.navbar__button.close > .bar:nth-child(1) {
  transform: rotate(45deg);
}
.navbar__button.close > .bar:nth-child(3) {
  transform: rotate(-45deg);
}
.navbar__button.close > .bar {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

@media screen and (min-width: 800px) {
  .navbar__button {
    display: none;
  }
  .navbar {
    display: flex;
    top: 2.5rem;
    right: 3rem;
    width: max-content;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .navbar__list{
    flex-direction: row;
    gap: 2rem;
  }
  .navbar__list a, .navbar__list span {
    padding: 1rem;
    font-size: minmax(1.15em,1.5rem);
  }
}


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

main {
  flex-grow: 1;
}
.main-title {
  padding: 1.5rem;
}


/* ================= Formulaires & inputs ================= */

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.formulaire__item {
  display: flex;
  flex-direction: column;
  width: clamp(50vw, 80vw, 500px);
}
.formulaire__label {
  font-weight: bold;
}
.formulaire__input {
  all: unset;
  background-color: white;
  border: var(--primary-color) 1px solid;
  border-radius: 20px;
  padding: .4rem;
}
.formulaire__radio {
  display: flex;
  padding-left: 1rem;
}
.formulaire__radio > label {
  font-weight: normal;
  padding-left: 1rem;
}
textarea {
  display: block;
  height: 100px;
}

/* ================== Connexion =============== */

.connexion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  display: none;
  background-color: #00000050;
}
.connexion-overlay.open {
  display: block;
}
.connexion-modale {
  padding: 1.2rem;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 1rem;
  width: clamp(350px, 30vw, 80%);
  height: 60vh;
}
.connexion-modale .formulaire {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1.5rem;
}
.connexion-modale .formulaire__item {
  width: 80%;
}
.modale-title {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
}
.modale-title .close {
  padding: 1rem;
  font-size: 2rem;
  cursor: pointer;
}

/* ================ Paragraphe ================ */

.paragraph {
  width: clamp(50vw, 80vw, 600px);
  margin: 2rem auto;
  font-size: 1.25rem;
}
.paragraph__title {
  font-weight: bold;
  text-decoration: underline;
}
.paragraph__list-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ============= Container avec deux barres =============*/

.styled-container {
  background-color: #fff;
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.5rem;
}

@media screen and (min-width: 800px) {
  .styled-container {
    width: 65%;
    margin: 0 auto 2.5rem;
  }
}

.styled-container::before, .styled-container::after {
  content: "";
  display: block;
  height: 5px;
  width: 50%;
  border-radius: 5px;
  background: var(--primary-color);
}
.styled-container::before {
  margin: 0 auto 1.5rem;
}
.styled-container::after { 
  margin: 1.5rem auto;
}
.styled-container > p {
  width: clamp(50vw, 80vw, 500px);
  text-align: center;
}

/* ============= Footer =============*/
footer {
  font-size: 1.2rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary-color);
  box-shadow: 0px -5px 4px #b98f41;
  border-radius: 20% 20% 0 0;
  padding: 2rem ;
}
footer > * {
  margin: .5rem;
}
footer ul {
  list-style-type: none;
}
footer li {
  text-align: center;
}
.footer__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .damier {
  --square-size: 15px;
  width: calc(5 * var(--square-size));
  height: calc(5 * var(--square-size));
  display: grid;
  grid-template-columns: var(--square-size) var(--square-size) var(--square-size) var(--square-size) var(--square-size);
  grid-template-rows: var(--square-size) var(--square-size) var(--square-size) var(--square-size) var(--square-size);
}
footer .damier:nth-child(1) {
  display: none;
}
.damier__square {
  background-color: var(--black);
}
.damier__square:nth-child(1) {
  grid-column: 2;
  grid-row: 1;
}
.damier__square:nth-child(2) {
  grid-column: 4;
  grid-row: 1;
}
.damier__square:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}
.damier__square:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}
.damier__square:nth-child(5) {
  grid-column: 5;
  grid-row: 2;
}
.damier__square:nth-child(6) {
  grid-column: 2;
  grid-row: 3;
}
.damier__square:nth-child(7) {
  grid-column: 4;
  grid-row: 3;
}
.damier__square:nth-child(8) {
  grid-column: 1;
  grid-row: 4;
}
.damier__square:nth-child(9) {
  grid-column: 3;
  grid-row: 4;
}
.damier__square:nth-child(10) {
  grid-column: 5;
  grid-row: 4;
}
.damier__square:nth-child(11) {
  grid-column: 2;
  grid-row: 5;
}
.damier__square:nth-child(12) {
  grid-column: 4;
  grid-row: 5;
}

.copy-clipboard {
  cursor: pointer;
}

@media screen and (min-width: 800px) {
  footer {
    flex-direction: row;
    justify-content: space-around;
    border-radius: 40% 40% 0 0;
  }
  footer ul {
    list-style-type: circle;
  }
  footer li {
    text-align: initial;
  }
  footer .damier:nth-child(1) {
    display: grid;
  }
  .footer__informations {
    display: flex;
    justify-content: space-around;
    width: 80%;
  }
}