/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Space+Grotesk:wght@300..700&display=swap');

/* base & Reset */
:root{
      --c-brand:#2e87da;
      --c-dark:#333;
      --c-body:#666;
      --c-light:#f8f8f8;
      --f-base:'plus-jakarta-sans', sans-serif;
      --f-space-grotesk: 'Space Grotesk', sans-serif;
      --n-height: 100px;

}



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

html{
     scroll-behavior: smooth; 
}

body{
      font-family: var(--f-base);
      color: var(--c-body);
      line-height: 1.8;
      font-weight: 400;
}

h1,h2,h3,h4,h5,h6{
      margin-bottom: 10px;
      color: var(--c-dark);
      line-height: 1.2;
      font-weight: 400;
}

/* Space Grotesk Font */
.space-grotesk {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500; /* ou 300, 500, 700 selon ton besoin */
  font-style: normal;
}

/* Space Grotesk Font Intro */
.space-grotesk1 {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600; /* ou 300, 500, 700 selon ton besoin */
  font-style: normal;
  font-size: 80px;
}

/* Space Grotesk Font Title */
.space-grotesk2 {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* ou 300, 500, 700 selon ton besoin */
  font-style: normal;
  font-size: 40px;
}

/* Space Grotesk Font Hero*/
.space-grotesk3 {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* ou 300, 500, 700 selon ton besoin */
  font-style: normal;
  font-size: 130px;
}


a{
      color: var(--c-dark);
      text-decoration: none;
      transition: all 0.4s ease-in-out;
}

a:hover{
      color: var(--c-brand);
}

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

ul{
      list-style: none;
}
section{
      padding: 70px;
}

.container{
      max-width: 1140px;
      margin: 0 auto;
      width: 100%;
      padding-left: 24px;
      padding-right: 20px;
}

.btn{
      display: inline-block;
      padding: 16px 34px;
      background-color: transparent;
      font-size: 14px;
      transition: all 0.4s ease-in-out;
      border: 1px solid var(--c-brand);
      font-family: var(--f-base);
      cursor: pointer;
}

.btn:hover{
      background-color: var(--c-brand);
      color: #fff;
}


/* Navbar */
.navbar{
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: var(--n-height);
     display: flex;
     z-index: 999;
}

.navbar .container{
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: var(--n-height);
}

.brand {
      color: white;
      font-size: 28px;
}

.nav-links {
      display: flex;
}

.nav-links li:not(:last-child) {
      margin-right: 44px;
}

.nav-links li.active a {
      box-shadow: 0 2px var(--c-brand);
}
.nav-links a {
      color: white;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 1px;
}

.nav-links a:hover {
      color: var(--c-brand);
}

.hamburger {
      display: block;
      cursor: pointer;
      display: none;
}

.hamburger span{
      display: block;
      width: 34px;
      height: 2px;
      background-color: white;
      margin: 8px auto;
      transition: all 0.4s ease;
}

.hamburger.active span:nth-child(1) {
      transform:  translateY(5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
      transform: translateY(-5px) rotate(-45deg);
}

.scrolled {
      background-color:white;
}

.scrolled .brand {
      color: var(--c-dark);
}

.scrolled .nav-links a {
      color: var(--c-dark);
}
.scrolled .nav-links a:hover {
      color: var(--c-brand);
}

.scrolled .hamburger span {
      background-color: var(--c-dark);
}

@media (max-width: 768px) {
      .nav-links {
            position: fixed;
            top: var(--n-height);
            width: 100%;
            flex-direction: column;
            left: 0;
            padding: 0 24px;
            transition: all 0.4s ease-in-out;
            height: 0;
            overflow: hidden;
            background-color: white;
            justify-content: center;
            
      }

      .nav-links li a {
            color: var(--c-dark);

      }

      .nav-links.active {
            height: 200px;
      }
      .nav-links li {
            padding: 6px 0;
      }
      .hamburger {
            display: block;
      }
      section {
        padding: 40px 10px;
    }
    .grid {
        gap: 20px;
    }
    .two-col-grid {
        grid-template-columns: 1fr;
    }
    .three-col-grid {
        grid-template-columns: 1fr;
    }
    #hero h1 {
        font-size: 65px;
    }
    footer {
        padding: 32px 0;
    }
    footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
        padding: 0 10px;
    }
    footer p,
    footer a {
        font-size: 15px;
        line-height: 1.6;
    }
    footer .social-icons {
        margin-top: 16px;
        justify-content: center;
    }
    footer .social-icons a {
        font-size: 24px;
        width: 38px;
        height: 38px;
    }
}

/* Hero Section */
#hero {
      min-height: 100vh;
      background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(../images/Hero-banner-03\ \(1\).jpg);
      background-size: cover;
      background-position: center;
      display: grid;
      place-content: center;
      text-align: center;

}

#hero h1 {
      color: white;
}

@keyframes scrolltodown{
      0%{
            transform: translateY(50%);
            opacity: 0;
      }
      50%{
            transform: translateY(-30%);
            opacity: 1;
      }
     
      100%{
            transform: translateY(60%);
            opacity: 0;
      }
}
.scroll-to-down {
      width: 30px;
      height: 60px;
      display: grid;
      place-content: center;
      font-size: 24px;
      color: white;
      border: 2px solid rgba(255, 255, 255, 0.2);
      border-radius: 10px;
      position: absolute;
      bottom: 48px;
      left: 50%;
}

.scroll-to-down .las {
      animation: scrolltodown 2s ease infinite;
}

/* Section title */
.section-intro {
      margin-bottom: 44px;
}   

/* Grid */
.grid {
      display: grid;
      gap: 44px;
}

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


.three-col-grid {
      grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
      .two-col-grid {
      grid-template-columns: repeat(1, 1fr);
}

.three-col-grid {
      grid-template-columns: repeat(1, 1fr);
}
      
}

/* Service */
#services {
      gap: 0;
}
.service:nth-child(odd) {
      background-color: var(--c-light);
      border-radius: 10px;
}

.service {
      padding: 44px;
}
.service p{
      font-size: 14px;
}
.service .icon {
     font-size: 38px; 
     color: var(--c-brand);
}

/* Project */
.project {
      position: relative;
      overflow: hidden;
}

.project img {
      width: 100%;
      object-fit: cover;
      transition: all 0.4s ease-in-out;
}
.project .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      padding: 44px;
      border-radius: 10px;
      display: flex;
      align-items: flex-end;
      transition: all 0.4s ease-in-out;
      opacity: 0;

}
.project .overlay h2 {
      color: white;
}

.project .overlay p {
      color: rgba(255, 255, 255, 0.6);
}

.project:hover .overlay {
      opacity: 1;
      display: flex;
}

.project:hover img {
      transform: rotate(15deg) scale(1.5);
}

@media (max-width: 768px) {
    .project .overlay div {
        padding: 24px 18px;
        margin: 0 4px;
        background: rgba(0,0,0,0.7);
        border-radius: 10px;
        max-width: 95vw;
        box-sizing: border-box;
        text-align: left;
    }
    .project .overlay h2 {
        font-size: 25px;
        margin-bottom: 12px;
        text-align: left;
        word-break: break-word;
    }
    .project .overlay p {
        font-size: 10px;
        line-height: 1.7;
        text-align: left;
        word-break: break-word;
    }
}

/* Contact */
#contact .grid {
    grid-template-columns: 1fr 2.5fr;
    gap: 44px;
    align-items: flex-start;
}

.contact-widget {
    margin-bottom: 44px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 32px 24px;
}

form {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 32px 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group .form-imput {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-radius: 2px;
    border: none;
    font-family: var(--f-space-grotesk);
    border-bottom:  1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
    font-size: 16px;
}

.form-group .form-imput:focus {
    outline: none;
    border-bottom: 2px solid var(--c-brand);
    background: #f8f8f8;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--c-dark);
    font-weight: 500;
}

.btn {
    width: 100%;
    border-radius: 6px;
    font-size: 16px;
    padding: 14px 0;
}

@media (max-width: 900px) {
    #contact .grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-widget,
    form {
        padding: 24px 10px;
        box-shadow: 0 1px 8px rgba(0,0,0,0.04);
    }
}

@media (max-width: 600px) {
    .contact-widget,
    form {
        padding: 16px 4px;
    }
    .form-group .form-imput {
        font-size: 15px;
        padding: 12px 0;
    }
    .btn {
        font-size: 15px;
        padding: 12px 0;
    }
}

/* Footer */
footer {
      padding: 60px 0;
      background: linear-gradient(135deg, black 80%, var(--c-brand) 100%);
}

footer .container {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 32px;
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 20px;
}
footer p,
footer a {
      color: #fff;
      font-size: 16px;
      opacity: 0.92;
      transition: color 0.3s;
}

footer a:hover {
      color: var(--c-brand);
}

footer .social-icons {
      margin-top: 18px;
      display: flex;
      gap: 18px;
}

footer .social-icons a {
      font-size: 28px;
      color: #fff;
      background: var();
      border-radius: 50%;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.3s, color 0.3s;
}

footer .social-icons a:hover {
      background: var(--c-brand);
      color: #fff;
}

@media (max-width: 768px) {
    footer {
        padding: 32px 0;
    }
    footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
        padding: 0 10px;
    }
    footer p,
    footer a {
        font-size: 15px;
        line-height: 1.6;
    }
    footer .social-icons {
        margin-top: 16px;
        justify-content: center;
    }
    footer .social-icons a {
        font-size: 24px;
        width: 38px;
        height: 38px;
    }
}

.logo-dark { display: inline; }
.logo-light { display: none; }

.navbar.scrolled .logo-dark { display: none; }
.navbar.scrolled .logo-light { display: inline; }

.logo-img {
    height: 288px;
    max-width: 370px;
    transition: height 0.3s, max-width 0.3s;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .logo-img {
        height: 62px;
        max-width: 120px;
    }
}

@media (max-width: 600px) {
    .logo-img {
        height: 202px;
        max-width: 250px;
    }
}

/* Carousel partenaires */
.carousel {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 32px 0;
  background: #f8f8f8;
  border-radius: 12px;
}
.carousel-track {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: scroll-partners 25s linear infinite;
  will-change: transform;
}
.carousel-logo {
  height: 60px;
  width: auto;
  filter: grayscale(1) brightness(0.8);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
  padding: 0 12px;
}
.carousel-logo:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.08);
}
@keyframes scroll-partners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .carousel-logo {
    height: 38px;
    padding: 0 6px;
  }
  .carousel-track {
    gap: 24px;
  }
}
