/* Variables */
:root {
  --bg-color: #0b1021;
  --accent1: #9b2cf3;
  --accent2: #f7b500;
  --accent3: #00bfa6;
  --text-primary: #f2f4f8;
  --text-secondary: #b8c1d1;
  --border-color: #222941;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

section[id] {
  scroll-margin-top: 40px;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
.btn {
  cursor: pointer;
  background-color: var(--accent1);
  color: var(--text-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

button:hover,
.btn:hover {
  background-color: var(--accent2);
  transform: translateY(-2px);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.text-center {
  text-align: center;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--shadow);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 33, 0.9);
  border-bottom: 1px solid var(--border-color);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.logo:hover {
  color: var(--accent1);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent1);
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger-inner {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  position: absolute;
  transition: var(--transition);
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  bottom: -8px;
}

/* Mobile Menu */
#mobile-menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--bg-color);
  overflow: hidden;
  transition: var(--transition);
  z-index: 999;
}

.mobile-menu ul {
  list-style: none;
  padding: 20px;
}

.mobile-menu li {
  margin: 15px 0;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 500;
}

#mobile-menu-toggle:checked ~ .mobile-menu {
  height: 100vh;
  border-top: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(11, 16, 33, 0.9),
    rgba(11, 16, 33, 0.7)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  border-radius: 20px;
  width: 100%;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card img {
  border-radius: 20px 20px 0 0;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-content h3 {
  margin-bottom: 1rem;
  color: var(--accent2);
}

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Methodology Section */
.methodology {
  background: rgba(155, 44, 243, 0.05);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card img {
  border-radius: 20px 20px 0 0;
  height: 180px;
  object-fit: cover;
  margin-bottom: 20px;
  width: 100%;
}

.step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Advantages Section */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.advantage-card {
  padding: 30px;
  text-align: center;
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent3);
}

/* Case Studies Section */
.case-studies {
  background: rgba(247, 181, 0, 0.05);
}

.case-card {
  margin-bottom: 40px;
}

.case-card img {
  border-radius: 20px;
  margin-bottom: 20px;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pricing-card {
  text-align: center;
}

.pricing-card h3 {
  color: var(--accent2);
}

.price {
  font-size: 2.5rem;
  margin: 20px 0;
  color: var(--text-primary);
  font-weight: 700;
}

.price span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.features-list {
  list-style: none;
  margin: 20px 0;
}

.features-list li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.features-list li:before {
  content: "✓";
  color: var(--accent3);
  margin-right: 8px;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-question {
  display: none;
}

.faq-label {
  display: block;
  padding: 15px 20px;
  background: var(--glass-bg);
  cursor: pointer;
  border-radius: 10px;
  position: relative;
  font-weight: 600;
  transition: var(--transition);
}

.faq-label::after {
  content: "+";
  position: absolute;
  right: 20px;
  transition: var(--transition);
}

.faq-question:checked + .faq-label {
  background: var(--accent1);
  border-radius: 10px 10px 0 0;
}

.faq-question:checked + .faq-label::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--glass-bg);
  border-radius: 0 0 10px 10px;
}

.faq-question:checked ~ .faq-answer {
  max-height: 1000px;
  padding: 15px 20px;
}

/* Contact Form Section */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
}

form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F2F4F8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 40px;
}

form select option {
  background-color: white;
  color: var(--bg-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.form-button {
  width: 100%;
  text-align: center;
}

/* Footer */
.footer {
  background: rgba(11, 16, 33, 0.9);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--accent2);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--accent1);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  z-index: 9999;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-text {
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons .btn-accept {
  background-color: var(--accent3);
}

.cookie-buttons .btn-reject {
  background-color: transparent;
  border: 1px solid var(--border-color);
}

/* Merci page */
.merci-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.merci-box {
  max-width: 600px;
  margin: 8rem auto 5rem;
  text-align: center;
  padding: 50px;
}

/* Policy pages */
.policy-container {
  max-width: 800px;
  margin: 120px auto 50px;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.policy-container h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.policy-container h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.policy-container p,
.policy-container ul {
  margin-bottom: 1rem;
}

.policy-container ul {
  padding-left: 20px;
}

/* Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .section-padding {
    padding: 50px 0;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-content {
    padding: 0 20px;
  }

  .policy-container {
    padding: 20px;
    margin: 100px auto 30px;
  }
}
