/* initialisation of padding and margin */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* base colors to use in the project */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #f56357;
  --white-color: #fff;
  --overlay-color: rgba(44, 62, 80, 0.6);
  --input-color: #e6e6e6;
}

/* initialization of titles and paragraph styling */
h1,
h2,
h3,
h4,
h5,
a,
button,
label {
  font-family: "Comfortaa", cursive;
}
h1 {
  font-size: 3.75rem;
  font-weight: 700;
}
h2 {
  font-size: 1.75rem;
  text-align: center;
}

p {
  font-family: "Poppins", sans-serif;
}

/* ------------------------ menu styling  ------------------------ */

.header .navList .hamburger {
  position: relative;
  width: 30px;
  height: 4px;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  z-index: 2;
  transition: 0.3s;
  margin-top: 15px;
}

.header .navList .hamburger:before,
.header .navList .hamburger:after {
  content: "";
  position: absolute;
  height: 4px;
  right: 0;

  background: var(--secondary-color);
  border-radius: 10px;
  transition: 0.3s;
}

.header .navList {
  position: relative;
}

.header .navList .toggle-menu {
  position: fixed;
  top: 0;
  width: 25px;
  height: 25px;
  z-index: 5;
  cursor: pointer;
  opacity: 0;
  margin-top: 30px;
}

.header .navList .hamburger,
.toggle-menu {
  display: none;
}

.header .navList input:checked ~ .hamburger {
  background: transparent;
}

.header .navBar .navList input:checked ~ .hamburger:before {
  top: 0;
  transform: rotate(-45deg);
  width: 30px;
}

.header .navList input:checked ~ .hamburger:after {
  top: 0;
  transform: rotate(45deg);
  width: 30px;
}

.header .navList input:checked ~ .alist {
  inset: 0 0 0 30%;
}

.header .navList .hamburger:before {
  top: -10px;
  width: 20px;
}

.header .navList .hamburger:after {
  top: 10px;
  width: 25px;
}

.header .navbar .navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .navBar ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding-top: 1rem;
}

.header .navBar ul li {
  text-decoration: none;
  align-items: center;
  padding: 1rem;
  margin: 0 0.5rem;
}

.header .navBar ul li a {
  font-size: 19px;
  font-weight: 400;
  text-decoration: none;
  color: var(--white-color);
  letter-spacing: 0.15em;
}

.header ul li a:hover {
  color: var(--secondary-color);
  transition: color 0.4s ease;
}

/* ------------------------ Bannière de la page web styling  ------------------------ */

.header {
  background-color: var(--overlay-color);
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.header:after {
  content: "";
  position: absolute;
  background: url(./Assets/background.jpg);
  background-size: cover;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  z-index: -2;
}

/* -- Homepage styling -- */
.header .main {
  margin: 9rem 1rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  color: var(--white-color);
}

.header .main h1 span {
  color: var(--secondary-color);
}

.header .main p {
  width: 100%;
  max-width: 520px;
  margin-top: 1rem;
  font-size: 1.375rem;
  text-align: justify;
}

.header .main .btn {
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  background-color: var(--secondary-color);
  border: none;
  color: var(--white-color);
  text-align: center;
  font-size: 17px;
  padding: 16px;
  width: 152px;
  margin-top: 20px;
  cursor: pointer;
}

.header .main .btn:hover {
  color: var(--secondary-color);
  background: var(--white-color);
  transition: all 0.5s ease;
}

/* ------------------------ Compétences visées styling  ------------------------ */

.section-1 {
  margin: 3rem 0;
}

.section-1 h2 {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.section-1 .skills {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.section-1 .skills .skill {
  padding: 1rem;
}

.section-1 .skills .skill img {
  height: 150px;
  width: 150px;
}

.section-1 .skills .skill h3 {
  text-align: center;
  padding-top: 0.5rem;
  color: var(--primary-color);
}

/* ------------------------ équipe de formation styling  ------------------------ */

.section-2 {
  background-color: var(--overlay-color);
  position: relative;
}
.section-2:after {
  content: "";
  position: absolute;
  background: url(./Assets/hero.jpg) no-repeat;
  background-size: cover;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  z-index: -2;
}

.section-2 h2 {
  padding: 2rem 0;
  color: var(--white-color);
  letter-spacing: 0.3rem;
}

.section-2 h2 span {
  color: var(--secondary-color);
}

.section-2 .team {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}

.section-2 .team .instructor {
  text-align: center;
  margin: 1rem;
}

.section-2 .team .instructor img {
  height: 260px;
  width: 260px;
  border-radius: 50%;
}

.section-2 .team .instructor h4,
h5 {
  color: var(--white-color);
  padding: 0.1rem 0;
}

/* ------------------------ plan de la formation styling  ------------------------ */

.section-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 1rem 3rem 1rem;
}

.section-3 h2 {
  padding: 2rem 0;
  color: var(--primary-color);
  letter-spacing: 0.3rem;
}

.section-3 .course-list {
  width: 100%;
  max-width: 700px;
  border-radius: 5px;
  font-family: "Quicksand", sans-serif;
  background: var(--primary-color);
  margin-bottom: 2rem;
}

.section-3 .course-list .list__label,
.section-3 .course-list .list__content {
  padding: 14px 20px;
}

.section-3 .course-list .list__content {
  border-style: solid;
  border-color: var(--primary-color);
}

.section-3 .course-list .list__label {
  display: block;
  color: var(--white-color);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: background 0.1s;
}

.section-3 .course-list .list__label:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--secondary-color);
}

.section-3 .course-list .list__label::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
  width: 12px;
  height: 6px;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 100,0 50,50" style="fill:%23FFFFFF99;" /></svg>');
  background-size: contain;
  transition: transform 0.4s;
}

.section-3 .course-list .list__content p:first-child {
  font-weight: 700;
  font-size: 1rem;
}

.section-3 .course-list .list__content {
  background: var(--white-color);
  line-height: 1.6;
  font-size: 0.9rem;
  display: none;
}

.section-3 .course-list .list__input {
  display: none;
}

.section-3 .course-list .list__input:checked ~ .list__content {
  display: block;
}

.section-3 .course-list .list__input:checked ~ .list__label::after {
  transform: translateY(-50%) rotate(0.5turn);
}

/* ------------------------ Témoignage des personnes styling  ------------------------ */

.section-4 {
  background-color: var(--primary-color);
  padding: 2rem 0;
}

.section-4 h2 {
  color: var(--white-color);
  letter-spacing: 0.3rem;
}

.section-4 h2 span {
  color: var(--secondary-color);
}

.section-4 .testimony-list {
  display: flex;
  padding: 0rem 1rem 0 1rem;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
}

.section-4 .testimony-list .testimony {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--white-color);
  padding: 4rem 0;
  border-radius: 15px;
  text-align: center;
  margin: 1rem;
}

.section-4 .testimony-list .testimony img {
  height: 200px;
  width: 260px;
  border-radius: 50%;
  border-style: solid;
  border-color: var(--secondary-color);
}

.section-4 .testimony-list .testimony p {
  font-size: 0.8rem;
  padding: 1rem;
  width: 100%;
  max-width: 400px;
}

.section-4 .testimony-list .testimony h4 {
  padding-top: 0.2rem;
}

/* ------------------------ Contact us styling  ------------------------ */

.section-5 h2 {
  padding: 2rem 0 1rem 0;
  color: var(--primary-color);
  letter-spacing: 0.3rem;
}

.section-5 .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap-reverse;
  margin: 0 1rem;
}

.section-5 .container img {
  width: 100%;
  max-width: 350px;
}

.section-5 .container .form {
  width: 100%;
  max-width: 450px;
}

.section-5 .container .form p {
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.section-5 .container .form .input-groupe {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.section-5 .container .form .input-groupe:nth-child(4) {
  margin: 0;
}

.section-5 .container .form .input-groupe label {
  height: 100%;
  font-size: 0.8rem;
  position: absolute;
  left: 0;
  top: 8px;
  padding: 10px;
  cursor: text;
  transition: 0.2s;
  color: var(--primary-color);
}

.section-5 .container .form .input-groupe label i {
  color: var(--secondary-color);
}

.section-5 .container .form .input-groupe input {
  height: 50px;
}

.section-5 .container .form .input-groupe input:focus ~ #lab,
.section-5 .container .form .input-groupe input:valid ~ #lab,
.section-5 .container .form .input-groupe textarea:focus ~ #lab,
.section-5 .container .form .input-groupe textarea:valid ~ #lab {
  top: -26px;
  font-size: 0.7rem;
}

.section-5 .container .form .input-groupe input,
textarea {
  outline: none;
  background: none;
  border: none;
  background: var(--input-color);
  padding: 0.5em;
  color: inherit;
  border-radius: 25px;
}

.section-5 .container .form .input-btn .btn {
  display: inline-block;
  border-radius: 25px;
  background-color: var(--secondary-color);
  border: none;
  color: var(--white-color);
  text-align: center;
  font-size: 1rem;
  padding: 11px;
  width: 102px;
  cursor: pointer;
  margin: 1rem;
}

.footer {
  display: block;
  background-color: var(--primary-color);
  text-align: center;
}

.footer .alink {
  display: inline-block;
  letter-spacing: 0.3rem;
  color: var(--white-color);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.5rem;

  text-decoration: none;
}

@media screen and (max-width: 800px) {
  .section-5 .container img {
    display: none;
  }
}

@media screen and (max-width: 570px) {
  .header .navBar ul li a {
    font-size: 0.938rem;
  }

  h1 {
    font-size: 2.813rem;
  }

  .header .main p {
    max-width: 380px;
    font-size: 1.063rem;
  }

  .header .main .btn {
    border-radius: 4px;
    font-size: 15px;
    padding: 13px;
    width: 133px;
    margin-top: 47px;
    cursor: pointer;
  }
}

@media screen and (max-width: 570px) {
  .header .navBar ul {
    position: fixed;

    inset: 0 0 0 100%;
    background: hsl(0, 0%, 100%, 0.1);
    backdrop-filter: blur(1rem);
    flex-direction: column;

    justify-content: start;
    padding-top: 13rem;
  }

  .header .navBar ul li a {
    color: var(--secondary-color);
  }

  header .navList {
    position: relative;
  }

  .header .navList .hamburger,
  .toggle-menu {
    display: block;
    position: fixed;
    right: 15px;
    top: 25px;
  }
}
