/*! === FONTS === */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;700&display=swap");

/*! === VARIABLES === */
:root {
  --light-clr: #fff;
  --light-clr-2: #BED2C9;
  --light-clr-3: #E1E7DD;
  --dark-clr: #2e2e2e;
  --body-font-clr: #bdbdbd;
  --body-bg-clr: #222222;
  --title-font: "Bebas Neue", cursive;
  --body-font: "Poppins", sans-serif;
}

/*! === BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

/* */
body {
  font-family: var(--body-font);
  font-size: 1.4rem;
  line-height: 1.5;
  background-color: var(--body-bg-clr);
  color: var(--body-font-clr);
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

img,
picture {
  display: block;
  max-width: 100%;
}

input,
button {
  font: inherit;
  background-color: transparent;
  border: none;
}

/*! === SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-clr-2);
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/*! === COMPONENTS === */

.container {
  margin-inline: auto;
  padding-inline: 1.8rem;
}

.btn{
  display: inline-block;
  cursor: pointer;
  transition: opacity .25s;
}

.btn:is(:hover, :focus){
  opacity: .8;
}

.btn--action {
  font-size: 1.8rem;
  color: var(--light-clr);
  line-height: 0;
}

.btn--text {
  font-family: var(--title-font);
  letter-spacing: 1px;
  font-size: 2rem;
  padding: 1rem 3rem;
}

.btn--transparent {
  color: var(--light-clr-2);
  border-bottom: 2px solid var(--light-clr-2);
  padding: 0;
}

.title {
  font-family: var(--title-font);
  color: var(--light-clr-3);
  letter-spacing: 1px;
  font-size: 3.6rem;
}

.tittle--main {
  font-size: clamp(4.2rem, 8vw, 10rem);
  line-height: 1.2;
  background: url(../images/Logo_Kris_white.png) center 37% no-repeat;
  background-size: cover;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  z-index: 10;
}

.section-metadata{
  padding-bottom: 6rem;
  text-align: center;
}

.section-metadata__desription{
  margin-top: 1.3rem;
}

.btn-green{
  background-color: var(--light-clr-2);
  color : var(--dark-clr);
}

/*! === HEADER === */

.header {
  position: fixed;
  z-index: 999;
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 1rem;
  background-color: var(--body-bg-clr);
  transition: padding .25s;
}

.header.active {
  padding-top: 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
}

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

.navbar__logo {
  margin-right: 2.5rem;
}

.navbar__logo-image {
  min-width: 10.2rem;
}

.navbar__menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 25rem;
  height: 100vh;
  background-color: var(--dark-clr);
  transform: translateX(-26rem);
  z-index: -999;
  transition: transform .5s ease-in;
}

.navbar__menu.active {
  transform: translateX(0);
}

.navbar__list {
  display: flex;
  flex-direction: column;
}

.navbar__list-item {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar__list-item:last-of-type {
  border-bottom: none;
}

.navbar__list-link {
  display: block;
  font-size: 2rem;
  color: var(--light-clr);
  padding: 1rem;
  transition: opacity .25s;
}

.navbar__list-link:is(:hover, :focus) {
  opacity: .5;
}

.navbar__btn-group {
display: flex;
column-gap: 4rem;
}
/*! === MAIN === */

main {
  overflow-x: hidden;
}

/*! === SHOWCASE === */

.showcase{
  padding-top: 14.5rem;
}

.showcase__container {
  text-align: center;
}

.showcase__image{
  display: inline-block;
  transform: translateY(-3rem);
}

/*! === PROJETS === */

.portfolio{
  padding-top: 7.4rem;
  padding-bottom: 12rem;
}

.portfolio__metadata{
  padding-bottom: 4rem;
  text-align: left;
}

/* --- SWIPER --- */

.swiper-slide{
  width: 30rem;
  height: 30rem;
}

.swiper-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination-bullet{
  background-color: var(--light-clr-2);
}

/*! === MES STACKS === */

.services {
  background-color: var(--dark-clr);
  padding-block: 7.4rem;
}

.services__container{
  display: grid;
}

.services__image-wrapper{
  margin-bottom: 6rem;
}

.services__image-wrapper img{
  margin-inline: auto;
  border-radius: 8px;
}

.services__list,
.services__list-divider{
  display: grid;
  /* modif gap 5rem*/
  gap: 15rem;
}

.services__list-icon{
  display: inline-block;
  font-size: 3.6rem;
  line-height: 3rem;
  margin-bottom: 3rem;
}

.services__list-title{
  margin-bottom: 1rem;
}


.services__list-description {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.services__list-description .top-icons,
.services__list-description .bottom-icons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.services__list-description img {
  width: 50px;
  height: 50px;
  margin: 10px;
}


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

.about{
  padding-top: 12rem;
  padding-bottom: 6rem;
}

.about__container{
  display: grid;
  gap: 8rem;
}

.about__information-title{
  margin-bottom: 2rem;
}

.about__information-description:first-of-type{
  margin-bottom: 1.5rem;
}

.about__information-description:last-of-type{
  margin-bottom: 4rem;
}

.about__images{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-inline: auto;
}

.about__images-image--top{
grid-column: 4/-1;
grid-row: 1/span 4;
}

.about__images-image--bottom{
  grid-column: 1/7;
  grid-row: 4/span 6;
  z-index: 5;
}

/*! === FOOTER === */

.footer{
  background-color: var(--dark-clr);
  padding-top: 10rem;
  padding-bottom: 3rem;
}

.footer__group{
  text-align: center;
}

.footer__title{
  margin-bottom: 3rem;
}

.footer__separator{
  display: block;
  height: 1px;
  background-color: var(--light-clr);
  margin-top: 10rem;
  margin-bottom: 8rem;
}

.footer__logo{
  display: inline-block;
}

.footer__description{
  margin-block: 3rem;
}

.available {
  font-size: 2rem;
  margin-block: 3rem;
  color: rgb(94, 215, 23);
  animation: neon 3s infinite;
}

@keyframes neon {
  0%, 39%, 41%, 59%, 61%, 100% {
    text-shadow:
    white 0 0 10px,
    rgb(0, 206, 0) 0 0 12px,
    rgb(0, 206, 0) 0 0 18px;
  }
  20%, 40% {
    text-shadow: none;
  }
}

.footer__list{
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.footer__list-link{
  color: var(--light-clr-2);
  font-size: 1.8rem;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s;
}

.footer__list-link:hover{
  background-color: var(--light-clr-2);
  color: var(--dark-clr);
}

.footer__copyright{
  display: inline-block;
  margin-top: 5rem;
}


/* Code rajouté */
.footer__telephone {
  font-size: 1.8rem;
  margin-block: 3rem;
}

.footer__telephone i{
  margin-right: 1.5rem;
}

/*! === MODAL === */

.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9); 
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #820000;
  text-decoration: none;
  cursor: pointer;
}

.modal-text {
  color: #fff;
  text-align: center;
  margin: 60px auto;
}

.modal-text h3 {
  text-decoration: underline;
  font-size: 2.4rem;
  color:var(--title-font);
  margin-bottom: 2rem;
}

.modal-text span {
  color: #cf0000;
}

.modal-button {
  width: 20rem;
  display: flex;
  justify-content: center;
  margin: 20px auto;
}

.blur-background {
  filter: blur(5px);
  transition: filter 0.3s;
}


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

/* --- Phones --- */
@media (max-width: 767px) {
  .container{
    max-width: 50rem;
  }


/* Modal */
  .modal-text {
    max-width: 45rem;
  }

  /* code rajouté */
  #menu-toggler {
    display: block; 
  }

  .navbar__menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .navbar__list {
    flex-direction: column;
    gap: 0;
  }

  .navbar__list-item {
    border-bottom: 1px solid #ccc;
    padding: 1rem;
  }

  .services__container {
    display: grid;
  }

}

/* --- Tablets --- */
@media (min-width: 768px) and (max-width: 1023px) {
  body{
    font-size: 1.6rem;
  }

  .container{
    max-width: 76.8rem;
  }

  /* Modal */
  .modal-text {
    max-width: 70rem;
    font-size: 1.6rem;
  }

  .showcase__image{
    transform: translateY(-5rem);
  }

  .section-metadata{
    grid-column: 1/-1;
  }

  .section-metadata__desription{
    max-width: 70rem;
    margin-inline: auto;
  }

  .footer__description{
    max-width: 50rem;
    margin-inline: auto;
  }

}

/* --- Laptops/Desktops --- */
@media (min-width: 1024px) {

  .container{
    max-width: 120rem;
  }

  .tittle--main{
    background-position: center 48%;
  }

  #menu-toggler {
    display: none;
  }

  .navbar__menu {
    position: initial;
    width: initial;
    height: initial;
    background-color: transparent;
    transform: initial;
    transition: none;
  }

  .navbar__list {
    flex-direction: row;
    gap: 1rem;
  }

  .navbar__list-item {
    border-bottom: none;
  }

  .showcase__image{
    transform: translateY(-8rem);
  }

  .section-metadata {
    grid-column: 1 / -1;
  }

  .services__image-wrapper {
    margin-bottom: 0;
  }

  .services__image-wrapper img{
    margin-inline: 0;
  }

  .services__list{
    grid-template-columns: repeat(2, 1fr);
  }

  .services__list-item {
    align-self: center;
  }

  .services__list-description {
    display: flex;
    flex-direction: row;
  }

  .about__container,
  .services__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 3rem;
  }

  /**** Code rajouté ****/ 

  .navbar__menu {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background-color: transparent;
    display: flex;
    z-index: auto;
  }

  .navbar__list {
    flex-direction: row;
  }

  .navbar__list-item {
    border: none;
  }

  .navbar__list-link {
    padding: 0.5rem 1rem;
  }

  #menu-toggler {
    display: none;
  }

   /* Modal */
  .modal-text {
    max-width: 100rem;
    font-size: 1.8rem;
  }

}