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

@font-face {
  font-family: 'Bebas Neue';
  src: url('assets/BebasNeue-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #6366f1;
  --color-primary-dark: #0284c7;
  --color-secondary: #38bdf8;
  --color-dark: #0f172a;
  --color-dark-light: #1e293b;
  --color-gray: #64748b;
  --color-gray-light: #cbd5e1;
  --color-white: #ffffff;
  --color-light: #f8fafc;

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --transition: 0.4s ease;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  line-height: 1.6;
  background: url('assets/hero-bg.webp');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

body.no-scroll {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 1s ease;
  padding: 1rem 0;
}

.header.scrolled {
  background: var(--color-dark);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  padding: 0 0;
}

.header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.nav-logo {
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.header.scrolled .nav-logo, .header.scrolled .nav-link {
  color: var(--color-white);
}

.header.scrolled .nav-toggle span {
  background: var(--color-white);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.hero {
    width: 100%;
    margin-top: 80px;
    display: flex;
    align-items: center;
    min-height: 50vh;
}

.hero-text {
    width: 50%;
    color: var(--color-white);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1;
}

.hero-text p {
    font-size: 1.3rem;
    font-weight: 300;
}

.cta {
    margin-top: 2rem;
    width: 50%;
    text-decoration: none;
    background: var(--color-primary);
    padding: 1rem;
    border-radius: 50px;
    color: black;
    font-size: 1.3rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

.cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.cta i {
  font-size: 1.3rem;
}

.tobold {
  font-weight: 700;
  font-size: 1.2rem;
}

.hero img {
    width: 50%;
}

#visual {
    width: 100%;
    display: block;
    height: auto;
}

.content {
    background: var(--color-dark-light);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.content p span {
  color: var(--color-secondary)
}

.content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.3rem;
    letter-spacing: 3px;
    width: 60%;
}

.title-description {
    width: 60%;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.area p span {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1.3rem;
}

.webmex-about {
    width: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.webmex-about-img, .webmex-about-text, .webmex-prices-text, .webmex-prices-img {
    width: 48%;
}

.webmex-about-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.webmex-about-img-card {
    background: var(--color-dark);
    padding: 2rem;
    width: 45%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 2px 2px 10px var(--color-primary);
}

.webmex-about-img-card img {
    width: 30%;
}

.webmex-about-img-card p {
    width: 100%;
    font-size: 1rem;
    font-weight: 300;
}

.webmex-about-text {
    padding: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.webmex-about-text h3, .webmex-prices-text h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
}

.webmex-about-text .cta {
  align-self: center;
}

.webmex-prices-container {
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.webmex-prices-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.webmex-prices-text .cta {
  align-self: center;
}

.webmex-prices-img img {
  width: 60%;
  border-radius: 50px;
  border: 5px solid var(--color-primary-dark);
}

.area {
  background: var(--color-dark);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  text-align: center;
  margin-top: 0rem;
}

.area h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.3rem;
  letter-spacing: 1px;
  text-align: center;
}

.area-content {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.area-text, .area-img {
  width: 50%;
}

.area-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.area-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 1px;
  text-align: center;
}

.area-text ul li {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
}

.everywhere {
  font-weight: 600;
  font-size: 1.2rem;
  text-align: center;
}

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

.area-img img {
  width: 60%;
}

.refonte {
  background: var(--color-dark-light);
  padding: 2rem;
}

.refonte-container, .devis-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--color-white);
}

.refonte-img, .refonte-text, .devis-img, .devis-text {
  width: 48%;
}

.refonte-img img, .devis-img img {
  width: 100%;
}

.refonte-text, .devis-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.refonte-text h2, .devis-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.3rem;
  letter-spacing: 1px;
}

.refonte-text .cta, .devis-text .cta {
  width: 70%;
}

.devis {
  background: var(--color-dark);
  padding: 2rem;
}

.contactme {
  background: rgba(31, 31, 31, 0.37);
  color: var(--color-white);
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.contactme h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.3rem;
  letter-spacing: 1px;
}

.contactme .cta {
  width: 30%;
}

.contactme span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.faq {
  background: var(--color-dark-light);
  padding: 2rem;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.faq h2 {
  color: var(--color-secondary);
  font-size: 1.4rem;
}

.faq h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.3rem;
  letter-spacing: 1px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-item {
  width: 70%;
  background: var(--color-gray);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.7s ease, border 0.1s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: var(--color-white);
  line-height: 1.6;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.5rem;
  border-top: 1px solid var(--color-white);
}

.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
}

.footer-section p {
  color: var(--color-gray-light);
}

.footer-section a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  margin-left: 1rem;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-dark-light);
  color: var(--color-gray-light);
}

[data-animate] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.8s ease;
}

html.js-enabled [data-animate]:not(.animated) {
  opacity: 0;
  transform: translate(50px , 50px);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0);
}

@media (max-width: 1024px) {
    .webmex-about {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .webmex-about-img, .webmex-about-text {
        width: 80%;
    }
}

@media (max-width: 850px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 70vw;
    height: 100vh;
    transform: translateX(100%);
    flex-direction: column;
    padding: var(--spacing-3xl) var(--spacing-lg);
    box-sizing: border-box;
    background: var(--color-dark);
    transition: var(--transition);
    z-index: 999;
    overflow-x: hidden;
  }

  .nav-link {
    font-size: 1.3rem;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
    z-index: 1000;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--color-white);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--color-white);
  }

  .hero {
    flex-direction: column;
    padding: 2rem;
  }

  .hero-text {
    width: 100%;
  }

  .hero img {
    width: 100%;
  }

  .content h2 {
    width: 80%;
    font-size: 2rem;
  }

  .webmex-about-img, .webmex-about-text {
        width: 90%;
    }

  .webmex-about-img {
    justify-content: center;
  }

  .webmex-about-img-card {
    width: 75%;
  }

  .webmex-prices-container {
    flex-direction: column;
    gap: 2rem;
  }

  .webmex-prices-text, .webmex-prices-img {
    width: 90%;
  }

  .webmex-prices-img img {
    width: 50%;
  }

  .area-content {
    flex-direction: column-reverse;
  }

  .area-text {
    width: 80%;
  }

  .refonte-container {
    flex-direction: column;
    gap: 1rem;
  }

  .refonte-text, .refonte-img, .devis-text {
    width: 100%;
  }

  .devis-container {
    flex-direction: column-reverse;
  }

  .faq-item {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {

    .content h2, .title-description {
        width: 95%;
    }

    .webmex-about-img, .webmex-about-text {
        width: 100%;
    }

    .webmex-about .cta {
        width: 100%;
    }

    .webmex-about-img-card {
        width: 100%;
    }

    .webmex-prices-img img {
        width: 80%;
    }

    .contactme .cta {
      width: 80%;
    }

    .refonte-text .cta {
        width: 100%;
    }
}