@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&display=swap");

/*===== VARIABLES CSS =====*/

:root {
  --header-height: 3rem;
  --font-medium: 500;
  /*communication*/
  --communication-first-color: hsl(31, 84%, 68%);
  --communication-dark-color: hsl(31, 84%, 68%);
  /*design*/
  --design-first-color: hsl(266, 36%, 72%);
  --design-dark-color: hsl(266, 36%, 72%);
  /*immobilier*/
  --immobilier-first-color: hsl(128, 52%, 68%);
  --immobilier-dark-color: hsl(128, 52%, 68%);
  /*innovation*/
  --innovation-first-color: hsl(52, 92%, 58%);
  --innovation-dark-color: hsl(52, 92%, 58%);
  /*metier*/
  --metier-first-color: hsl(214, 68%, 68%);
  --metier-dark-color: hsl(214, 68%, 68%);
  /*savoir*/
  --savoir-first-color: hsl(0, 83%, 70%);
  --savoir-dark-color: hsl(0, 83%, 70%);
  /*condition*/
  --condition-first-color: hsl(188, 17%, 63%);
  --condition-dark-color: hsl(188, 17%, 63%);
  /*partenaire*/
  --partenaire-first-color: hsl(75, 17%, 66%);
  --partenaire-dark-color: hsl(75, 17%, 66%);
  --white-color: hsl(240, 100%, 99%);
  --text-color: hsl(193, 6%, 44%);
  --body-font: "Sora", sans-serif;
  --big-font-size: 4.25rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  --z-fixed: 100;
}

@media screen and (min-width: 768px) {
  :root {
    --big-font-size: 6.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/*===== BASE =====*/

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

::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  /* margin: var(--header-height) 0 0 0; */
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

button {
  background: none;
  border: none;
  color: var(--text-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */

.section {
  padding: 3rem 0;
}

.section__title-pole {
  position: relative;
  font-size: var(--h2-font-size);
  margin: var(--mb-4) 0;
  text-align: center;
}

.section__title-pole::after {
  position: absolute;
  content: "";
  width: 32px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: 60px auto;
}
.section__title-condition {
  color: var(--condition-dark-color);
}

.section__title-condition::after {
  background-color: var(--condition-first-color);
}
.header__condition {
  background-color: var(--condition-first-color);
}


/*===== NAV =====*/

.nav__pole {
  height: var(--header-height);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

@media screen and (min-width: 919px) {
  .nav__toggle-pole {
    display: none;
  }
}

@media screen and (max-width: 918px) {
  .header__pole {
    left: 0;
  }
  .nav__menu-pole {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.5s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.nav__item-pole {
  margin-bottom: var(--mb-4);
}

.nav__link-pole,
.nav__link-poleInnovation {
  position: relative;
}


.nav__link-condition {
  color: var(--condition-dark-color);
}


.nav__logo-pole {
  display: flex;
  align-items: center;
  color: var(--white-color);
  margin: 0 0 0 2rem;
}

.nav__logo-pole img {
  width: 40px;
  margin: 0 1rem 0 0;
}


.nav__toggle-pole {
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}


.pole__paginator {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 3rem;
}
/*===== HOME =====*/

.home {
  position: relative;
  overflow: hidden;
}


.home__condition {
  background-color: var(--condition-first-color);
}


.home__title {
  align-self: center;
  font-size: var(--big-font-size);
  color: var(--white-color);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  margin: 2rem 5rem 2rem 5rem;
  text-shadow: 0 20px 25px rgb(0 0 0 / 50%);
}

/* ===== ABOUT =====*/

.about__container {
  justify-items: center;
  row-gap: 2rem;
  text-align: center;
}

.about__subtitle {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
}

.about__subtitle-condition {
  font-size: var(--h2-font-size);
  margin: 2rem 7rem;
  text-align: center;
  font-style: italic;
}

.about__subtitle-condition {
  color: var(--condition-first-color);
}


.about__text {
  margin-bottom: var(--mb-4);
}

.about__text-condition {
  margin: 0 10rem 2rem 10rem;
}

.about__text button {
  width: 100%;
}

.about__social-icon {
  font-size: 1.4rem;
  margin: 0 var(--mb-1);
}


@keyframes line-animation {
  0% {
    width: 0;
    opacity: 1;
  }
  99% {
    width: 100%;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

@keyframes open-animation {
  0% {
    height: 0;
    top: 50%;
  }
  100% {
    height: 100vh;
    top: 0;
  }
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.checkbox_social-condition {
  text-align: center;
  display: flex;
  justify-content: center;
  color: #8F9799;
  font-size: larger;
  border: solid 1px #8F9799;
  border-radius: 5px;
  width: 50%;
  margin: auto;
}

.validation_checkbox_social-condition {
  color: #8F9799;
  font-size: large;
}


.footer__condition {
  background-color: var(--condition-dark-color);
}

.footer__partenaire {
  background-color: var(--condition-dark-color);
}

.footer__container {
  row-gap: 2rem;
}

.footer__title {
  display: flex;
  align-items: center;
  font-size: var(--normal-font-size);
  color: var(--white-color);
  margin-bottom: var(--mb-2);
  text-transform: uppercase;
}

.footer__title img {
  width: 40px;
  margin: 0 1rem 0 0;
}

.footer__link {
  padding: 0.25rem 0;
}


.footer__link-condition:hover {
  color: var(--condition-first-color);
}


.footer__social {
  font-size: 1.4rem;
  margin-right: var(--mb-1);
}


.footer__social-condition:hover {
  color: var(--condition-first-color);
}


/* ===== MEDIA QUERIES =====*/

@media (max-width: 800px) {
  /* .home {
    height: 55vh;
  } */
  .home__title {
    margin: 1rem 2rem;
    font-size: 36px;
  }
  .home__container {
    /* height: calc(64vh - var(--header-height)); */
    text-align: center;
    object-fit: none;
    grid-template-rows: 10fr ;


  }
  .about__subtitle-condition{
    margin: 2rem 1rem;
  }
  .about__text-condition {
    margin: 0 2rem 2rem 2rem;
  }
  .section__title-pole::after{
    margin: 40px auto;
  }
  .checkbox_social-condition{
    width: 90%;
    font-size: 18px;
  }
  .form-check{
    padding: 0.5em 1.5em 0.5em 1.5em;
  }
}

@media screen and (min-width: 768px) {

  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
  }
  .section__title-pole {
    margin-bottom: 3rem;
  }
  .section__title-pole::after {
    width: 64px;
  }
  .nav__pole {
    height: calc(var(--header-height) + 1rem);
  }
  .nav__list-pole {
    display: flex;
  }
  .nav__item-pole {
    margin-left: var(--mb-4);
    margin-bottom: 0;
  }
  .nav__link-pole {
    color: var(--white-color);
  }
  .nav__link-pole:hover {
    color: var(--white-color);
  }
  .nav__link-poleInnovation {
    color: var(--innovation-dark-color);
  }
  .nav__link-poleInnovation:hover {
    color: var(--innovation-dark-color);
  }
  .home__container {
    /* height: 100vh; */
    grid-template-rows: 10fr 10fr;
    object-fit: cover;

    /* row-gap: 0; */
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
    padding: 4rem 0;
  }
  .contact__form {
    width: 380px;
  }
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
}


