/*
Theme Name: NKC Web Child
Template: astra
*/

/*Globales*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background-color: #fff;
  padding: 0 1rem;
}


/*Menu de navigation*/

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1000;
  position: relative;
}
.burger span {
  height: 3px;
  background: #111;
  border-radius: 2px;
  transition: 0.3s ease;
}
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center;
  padding: 6rem 2rem 2rem;
  gap: 1.5rem;
  list-style: none;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
}
.nav-links.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.nav-links a {
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  width: 100%;
  text-align: center;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #5182FF;
}


/*Hero*/

.hero { text-align: center;
  padding: 4rem 1rem;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%); position: relative;
  text-align: center;
  padding: 6rem 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff; background-image: url('img/hero-mobile.png');
  height: 500px; background-image: url('img/hero-tablet.png'); background-image: url('img/hero-desktop2.png'); }
.hero {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 0;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
  color: #444;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  position: relative;
  overflow: hidden;
  line-height: 1.2;
  min-height: 3.5rem;
  z-index: 2;
}
.hero-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 14px 36px;
  border: 1px solid #111;
  border-radius: 100px;
  background-color: #fff;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.hero-btn:hover {
  background-color: #111;
  color: #fff;
  border-color: #111;
  box-shadow: none;
  transform: none;
}
.hero-btn:active {
  opacity: 0.9;
}
.animated-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (min-width: 768px) {
  .burger {
    display: none;
  }
  .navbar {
    justify-content: space-between;
    gap: 2rem;
  }
  .nav-left,
  .nav-center,
  .nav-right {
    flex: 1;
  }
  .nav-left {
    display: flex;
    justify-content: flex-start;
  }
  .nav-center {
    display: flex;
    justify-content: center;
  }
  .nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    opacity: 1;
    transform: none;
    backdrop-filter: none;
    height: auto;
  }
  .nav-links a {
    position: relative;
    text-transform: uppercase;
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
    padding-bottom: 0.25rem;
    border-bottom: none;
    width: auto;
    text-align: left;
    transition: all 0.3s ease;
  }
  .nav-links a:hover {
    color: #000;
    font-weight: 600;
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: #5182FF;
    transition: width 0.3s ease;
  }
  .nav-links a:hover::after {
    width: 100%;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.125rem;
  }
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.hero h1,
.hero p {
  position: relative;
  z-index: 2;
}
@media (min-width: 600px) {
}
@media (min-width: 1024px) {
}
@media (max-width: 767px) {
  .hero-title {
    text-shadow: 0 2px 2px rgba(255, 255, 255, 0.6);
  }
}


/*Services*/

.services {
  padding: 4rem 1rem;
  background: #f9f9f9;
  text-align: center;
}
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-bottom: 4px solid #2ba8fb;
  margin-bottom: 3rem;
}
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(-30px);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 992px) {
  .service-cards {
    flex-direction: row;
    justify-content: space-between;
  }
  .service-card {
    flex: 1;
    max-width: 30%;
  }
}


/*Carousel*/

.carousel-wrapper {
  padding: 4rem 1rem;
  background: #fff;
  text-align: center;
}
.carousel-wrapper .section-title {
  margin-bottom: 2rem;
}


/*Achievements*/

.key-metrics {
  padding: 4rem 1rem;
  background: #fff;
  text-align: center;
}
.key-metrics {
  background-image: url('img/achievements-bg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.metrics-subtitle {
  text-transform: uppercase;
  color: #2ba8fb;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.metrics-description {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 0.95rem;
}
.metrics-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}
.metric {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2ba8fb;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.metric p {
  font-size: 1rem;
  color: #333;
  font-weight: 400;
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .metrics-wrapper {
    flex-direction: row;
    justify-content: space-between;
  }

  .metric {
    flex: 1;
  }
}


/*CTA*/

.cta {
  padding: 4rem 2rem;
  background: #2ba8fb;
  color: #fff;
  text-align: center;
  background-image: radial-gradient(circle at top right, #6fc5ff 10%, #2ba8fb 90%);
}
.cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.cta {
  background-image: url('img/cta-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
  background-color: rgba(43, 168, 251, 0.15); /* bleu semi-transparent pour overlay */
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}
.cta-title,
.cta-text {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.cta-btn {
  background-color: #fff;
  color: #2ba8fb;
  border: 1px solid #fff;
}
.cta-btn:hover {
  background-color: #fff;
  color: black;
  border: 1px solid #fff;
}


/*Footer*/

.footer {
  background-color: #111;
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
  width: 100vw;
  margin-top: 20px;
  margin-left: -1rem;  /* annule le padding horizontal du body */
  margin-right: -1rem;
}
.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}
.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2ba8fb;
  margin-bottom: 1rem;
}
.footer-text {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin-bottom: 2rem;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #2ba8fb;
}
.footer-copy {
  font-size: 0.8rem;
  color: #777;
/* Logo container */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 80px;
  flex-shrink: 0;
}

/* Image itself */
.logo img {
  width: 100%;
  height: 100%;
  /* Removed border-radius */
  object-fit: cover;
  display: block;
}

/* Tablet */
@media (max-width: 768px) {
  .logo {
    width: 60px;
    height: 60px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .logo {
    width: 50px;
    height: 50px;
  }
}

/* Desktop only: show email */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

@media screen and (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}
