/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  font-family: "Poppins", sans-serif;
}

:root {
  --main-color: #033a80;
  --bg-color: #fff;
  --text-color: #0f0c27;
  --hover: hsl(260, 100%, 51%);
 
  --big-font: 3.2rem;
  --medium-font: 1.8rem;
  --p-font: 0.941rem;
}

section {
  padding: 50px 10%;
}

body.active {
  --text-color: #fff;
  --bg-color: #0f0c27;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

*::selection {
  color: var(--bg-color);
  background: var(--main-color);
}

.heading {
  text-align: center;
  font-family: 'Playfair Display', serif;
}

.heading h2 {
  font-size: 30px;
}
 
.heading span {
  font-size: var(--p-font);
  color: var(--text-color);
}

header {
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-color);
}

/* SOCIAL ICON */
.topbar {
  display: flex;
  align-items: center;
  margin-right: auto;
  width: 100%;
  background-color: var(--main-color);
  padding: 5px 10%;
}

.topbar a {
  margin-right: 10px;
  font-size: 22px;
  color: #fff;
}

.topbar a:hover {
  color: var(--hover);
}

#darkmode {
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
  color: #fff;
}

.header-title {
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}

.header-title h1,
.header-title h2 {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  color: initial;
}

.header-title p {
  text-align: center;
  line-height: 2.5;
}

.header-title.mobile {
  display: none;
}

.navbar {
  display: flex;
}

.navbar a {
  font-size: 1.1rem;
  padding: 10px 20px;
  color: var(--text-color);
  font-weight: 500;
}

.navbar a:hover {
  color: var(--hover);
}

/* DROPDOWN MENU */

.dropdown:hover .dropbtn {
  background-color: var(--text-color);
  color: #fff;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #c5c5c5;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* END DROPDOWN MENU */

#menu-icon {
  font-size: 24px;
  cursor: pointer;
  z-index: 10001;
  display: none;
}

.btn {
  display: inline-block;
  background: var(--main-color);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 0.5rem;
}

.btn:hover {
  background: var(--hover);
}

/* About */

.about-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}
 
.about-img img {
  width: 90%;
  max-height: 500px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0.5rem;
  box-shadow: -13px 13px var(--main-color,#f3e49e);
  transition-duration: .3s;
  transition-property: transform;
}

.about-img img:hover {
  transform: scale(1.1);
}

.about-text h3 {
  font-size: calc(30px + 2vw);
  text-align: left;
  text-transform: uppercase;
  text-shadow: -3px 3px var(--main-color,#2e8a03);
  color: #fff;
}

.about-text p {
  font-size: var(--p-font);
  font-weight: 400;
  text-align: justify;
  line-height: 1.7;
  margin-top: 25px;
}

.about-text span {
  font-size: var(--p-font);
  font-weight: 500;
}

.about .btns {
  display: flex;
  justify-content: center;
}

.about .btn {
  margin-top: 2rem;
  margin-right: 1rem;
  cursor: pointer;
}

.about .btn.cv {
  background-color: var(--text-color);
}

.about .btn.cv:hover {
  background-color: var(--main-color);
}

.about-title {
  text-align: center;
  margin-top: 5rem;
  font-weight: 600;
  font-size: 1.5rem;
  text-transform: uppercase;
}



/* SERVICES */
.services-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, auto));
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.services-box {
  justify-self: center;
  padding: 20px;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 0.5rem;
  border-bottom: 2px solid var(--main-color);
  box-shadow: 0 2px 7px rgb(14 55 54 / 15%);
}

.services-box:hover{
  background-color: #02225a;
}

.services-box h3 {
  font-size: 1.1rem;
  margin: 0.7rem 0 0.4rem;
  font-weight: normal;
  color: var(--main-color);
}

.services-box h3 span {
  font-weight: 600;
}

.services-box p {
  font-weight: normal;
  font-size: .9rem;
  font-style: italic;
}

.services-box:hover h3 {
  color: #fff;
}

.services-box:hover {
  color: rgba(218, 218, 218, 0.925);
}

.services-box .bx {
  padding-top: 2rem;
  font-size: 54px;
  color: var(--main-color);
}

.services-box:hover .bx{
  color: #22cf91;
}

.services-box a {
  color: var(--main-color);
  font-size: var(--p-font);
  font-weight: 500;
}

.services-box:hover a{
  color: #8b8a8f;
}

/* PORTFOLIO */

.portfolio-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, auto));
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-cell {
  width: 35%;
  height: 300px;
  margin-top: 2rem;
  margin-right: 15px;
  background: gray;
  border-radius: 5px;
  /* counter-increment: carousel-cell; */
  display: flex;
  flex-direction: column;
  line-height: 2;
  text-align: center;
  justify-content: center;
  color: var(--text-color);
}

.carousel-cell img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.carousel-cell.is-selected {
  background: rgba(238, 221, 34, 0);
}

/* cell number */
.carousel-cell:before {
  display: block;
  text-align: center;
  /* content: counter(carousel-cell); */
  line-height: 200px;
  font-size: 80px;
  color: white;
}


/* CONTACT */
.contact-form {
  display: grid;
  place-items: center;
  margin-top: 2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  width: 650px;
}

form input,
textarea {
  padding: 15px;
  border-radius: 0.5rem;
  width: 100%;
  border: none;
  outline: none;
  background: hsla(260, 100%, 44%, 0.1);
  margin-bottom: 1rem;
  color: var(--text-color);
}

form input::placeholder,
textarea::placeholder {
  color: var(--text-color);
}

form textarea {
  resize: none;
  height: 200px;
}

.contact-button {
  width: 160px;
  cursor: pointer;
  background: #2768d9;
  color: #fff;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 35%;
}

.contact-button:hover {
  background: var(--hover);
}

.footer {
  display: grid;
  place-items: center;
  padding: 20px;
  background: #ebebeb;
  color: #000;
}

.footer h2 {
  font-size: 1.5rem;
  margin-bottom: 1.6rem;
}

.footer-social a i{
  color: rgb(10, 26, 208);
  font-size: 25px;
  margin-left: 10px;
  text-align: center;
  line-height: 40px;
  background-color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.copyright {
  padding: 20px;
  background: var(--main-color);
  text-align: center;
  color: #fff;
}

.copyright a {
  color: #22cf91;
}

/* PORTFOLIO PAGES - CSS */
.portfolio-title {
  margin-top: 3.125rem;
  text-align: center;
}

.portfolio-kap {
  line-height: 2;
}

.portfolio-video {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.portfolio-video p {
  margin-top: 1rem;
}

.portfolio-section {
  margin-top: 2rem;
  width: 100%;
}

.portfolio-section img {
  width: 100%;
}

.portfolio-section .portfolio-comment {
  color: var(--main-color);
  font-weight: 500;
}

.portfolio-section video {
  width: 50%;
}

.portfolio-kap .resultat {
  text-align: center;
}

.mf-title {
  text-align: center;
}

.kap-img {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  /* justify-content: space-evenly; */
}

.kap-img img {
  margin: 15px;
  max-width: 400px;
  min-width: 250px;
}

.kap-img.pub img {
  margin: 10px;
  max-width: 700px;
}

.kap-img.fb img {
  max-width: 700px;
  margin-left: 0;
}

.equipe-kap .portfolio-section img {
  width: 50%;
}

.kap-img .border, .border {
  border: 1px solid black;
}

.kap-img.eliphete-avril img {
  width: 100%;
  max-width: fit-content;
}

.kap-img.eliphete-avril .eliphete-height {
  max-width: 1000px;
}

.kap-img.google-ads {
  justify-content: center;
}

.kap-img.google-ads img {
  max-width: 700px;
}

/* IMAGES MODAL */
/* Style the Image Used to Trigger the Modal */
.img-thumbnail{
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.img-thumbnail:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1000px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

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

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
} 

/* END IMAGES MODAL */

/* MAKING RESPONSIVE */
@media (max-width: 991px) {
  section {
    padding: 50px 4%;
  }

  .kap-img {
    justify-content: center;
  }

  img.border.img-thumbnail {
    width: 100%;
  }
}

@media (max-width: 881px) {
  :root {
    --big-font: 2.7rem;
    --medium-font: 1.4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --big-font: 2.4rem;
    --medium-font: 1.2rem;
  }

  header {
    padding: 11px 4%;
  }

  #menu-icon {
    display: initial;
    color: var(--text-color);
    align-self: end;
    font-size: 2rem;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  header .navbar,
  header .topbar,
  header .header-title {
    display: none;
  }

  .navbar.active {
    display: block;
    margin-left: auto;
  }

  .navbar li {
    text-align: end;
  }

  .navbar a {
    padding: 1.5rem;
    display: block;
    background: var(--bg-color);
  }

  .about {
    padding: 0 4%;
    margin-top: -40px;
  }


  .header-title.mobile {
    display: block;
    text-align: center;
  }

  #darkmode {
    position: absolute;
    top: 1.4rem;
    right: 2rem;
  }

  .scroll-down {
    display: none;
  }

  .home {
    grid-template-columns: 0.5fr 3fr;
  }

  .home-text {
    grid-column: 1/3;
    padding-left: 1.4rem;
  }

  .home-img {
    order: initial;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-img {
    display: flex;
    justify-content: center;
  }

  .portfolio-section video {
    width: 100%;
  }

  .kap-img {
    justify-content: center;
  }

  .equipe-kap .portfolio-section img {
    width: 100%;
  }

  .contact-form form{
    width: 300px;
  }

  .contact-button{
    margin-left: 25%;
  }
}

@media (max-width: 590px) {
  .about .btns {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 340px) {
  :root {
    --big-font: 1.7rem;
    --medium-font: 1.1rem;
  }

  .home-text span {
    font-size: 1rem;
  }

  .home-text h2 {
    font-size: 0.9rem;
    font-weight: 500;
  }

  .information .info-box span {
    font-size: 1rem;
  }

  .portfolio-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
  }

  .contact-form form{
    width: 300px;
  }

  .contact-button{
    margin-left: 25%;
  }
}


