/* Main CSS - Split from theme variables */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* Background floating elements */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  opacity: 0.4;
  filter: blur(80px);
  z-index: -1;
  transition: all 2s ease;
}

body::before {
  top: -10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle at center, rgba(122, 79, 240, 0.15), rgba(122, 79, 240, 0.05));
  animation: float 15s ease-in-out infinite;
}

body::after {
  bottom: -15%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle at center, rgba(77, 177, 242, 0.1), rgba(148, 107, 45, 0.15));
  animation: float 20s ease-in-out infinite reverse;
}

/* Ajout d'éléments juridiques décoratifs */
.law-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8B273' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

.column-decoration {
  position: absolute;
  width: 20px;
  height: 100%;
  background-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(200, 178, 115, 0.1) 10%,
    rgba(200, 178, 115, 0.1) 90%,
    transparent 100%
  );
  z-index: -1;
  opacity: 0.5;
}

.column-left {
  left: 5%;
  top: 0;
}

.column-right {
  right: 5%;
  top: 0;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(2%, 2%);
  }
  50% {
    transform: translate(0%, 4%);
  }
  75% {
    transform: translate(-2%, 2%);
  }
  100% {
    transform: translate(0, 0);
  }
}

a {
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}
a:hover {
  color: var(--primary);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

/* Law gradient text */
.law-gradient-text {
  background: linear-gradient(135deg, var(--accent-law), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

/* Button styles */
.btn {
  display: inline-block;
  position: relative;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 200%;
  color: var(--white);
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: var(--border-radius);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: gradient-shift 6s ease infinite;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(35deg);
  top: -50%;
  left: -150%;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 25px rgba(122, 79, 240, 0.4);
}
body.light-mode .btn:hover {
  box-shadow: 0 15px 25px rgba(90, 52, 214, 0.4);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover::after {
  left: 120%;
}

.btn-large {
  padding: 16px 36px;
  font-size: 18px;
  margin: 30px 0;
  min-width: 250px;
}

/* Law button */
.law-btn {
  background: linear-gradient(135deg, var(--accent-law), var(--accent-law-light), var(--secondary));
  border: 1px solid rgba(200, 178, 115, 0.3);
  box-shadow: 0 5px 15px rgba(148, 107, 45, 0.2);
}

.law-btn::before {
  background: linear-gradient(135deg, var(--secondary), var(--accent-law));
}

.law-btn:hover {
  box-shadow: 0 10px 25px rgba(148, 107, 45, 0.4);
}

/* Theme toggle button styles */
.theme-toggle-button {
  background: none;
  border: none;
  color: var(--nav-text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: var(--space-md);
  border-radius: var(--radius-sm);
  transition: color var(--transition-main), background-color var(--transition-fast);
  line-height: 1;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.theme-toggle-button:hover {
  color: var(--primary);
  background-color: rgba(128, 128, 128, 0.1);
}

/* Hide icon based on theme */
.light-mode .theme-toggle-button .fa-sun {
  display: none;
}
.theme-toggle-button .fa-moon {
  display: none;
}
.light-mode .theme-toggle-button .fa-moon {
  display: inline-block;
}

/* Navigation */
.navbar.scrolled {
  padding: 15px 50px;
  background-color: var(--nav-bg-scrolled);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px var(--shadow-color);
}

.logo {
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 1px;
  position: relative;
  text-transform: uppercase;
  color: var(--logo-text);
  transition: var(--transition);
  cursor: pointer;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo:hover::after {
  transform: scaleX(1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(122, 79, 240, 0.15) 0%,
    rgba(77, 177, 242, 0.05) 50%,
    transparent 70%
  );
  pointer-events: none;
}

.diagonal-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 80px 80px;
  opacity: 0.03;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--text-main) 1px, transparent 1px),
    linear-gradient(to bottom, var(--text-main) 1px, transparent 1px);
  transition: opacity var(--transition), background-image var(--transition);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Badge */
.hero-badge {
  display: inline-block;
  background: rgba(148, 107, 45, 0.1);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--accent-law);
  border: 1px solid rgba(148, 107, 45, 0.2);
  box-shadow: 0 3px 10px rgba(148, 107, 45, 0.1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Law Features Section */
.law-features {
  padding: 100px 0;
  position: relative;
  background-color: var(--bg-contrast);
  color: var(--text-main);
}
.law-features .section-description {
  color: var(--text-secondary);
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  color: inherit;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  transition: all var(--transition);
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  color: var(--text-main);
}
.feature-card .feature-description {
  color: var(--text-secondary);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: height 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: rgba(122, 79, 240, 0.2);
  background-color: var(--card-bg-hover);
}
body.light-mode .feature-card:hover {
  border-color: rgba(90, 52, 214, 0.2);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(122, 79, 240, 0.1), rgba(77, 177, 242, 0.1));
  border-radius: 12px;
  margin-bottom: 30px;
  transition: all var(--transition);
}
body.light-mode .feature-icon {
  background: linear-gradient(135deg, rgba(90, 52, 214, 0.1), rgba(0, 119, 182, 0.1));
}

.feature-icon i {
  font-size: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scale(1.1);
}

.feature-card:hover .feature-icon i {
  background: var(--white);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
body.light-mode .feature-card:hover .feature-icon i {
  background: var(--text-main);
  -webkit-background-clip: text;
  background-clip: text;
}

.feature-title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: var(--transition);
  color: inherit;
}

.feature-card:hover .feature-title {
  transform: translateX(10px);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.8;
  transition: var(--transition);
}

.feature-card:hover .feature-description {
  transform: translateX(10px);
}

/* Process Section */
.law-process {
  padding: 100px 0;
  position: relative;
  background-color: var(--bg-main);
  color: var(--text-main);
}
.law-process .section-description {
  color: var(--text-secondary);
}

.process-timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.process-step {
  position: relative;
  padding-left: 80px;
  margin-bottom: 60px;
  background: linear-gradient(90deg, rgba(122, 79, 240, 0.03), transparent);
  border-radius: var(--border-radius);
  padding: 30px 30px 30px 80px;
}
body.light-mode .process-step {
  background: linear-gradient(90deg, rgba(90, 52, 214, 0.03), transparent);
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 8px rgba(122, 79, 240, 0.2);
  z-index: 1;
  transition: all var(--transition);
}
body.light-mode .process-step::before {
  box-shadow: 0 0 0 8px rgba(90, 52, 214, 0.2);
}

.process-step:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 12px rgba(122, 79, 240, 0.2);
}
body.light-mode .process-step:hover::before {
  box-shadow: 0 0 0 12px rgba(90, 52, 214, 0.2);
}

.process-number {
  position: absolute;
  top: 30px;
  left: 14px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  z-index: 2;
  font-size: 16px;
  color: var(--white);
}
body.light-mode .process-number {
  color: var(--white);
}

.process-title {
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: var(--transition);
  color: var(--primary);
}

.process-text {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background-color: var(--bg-contrast);
  position: relative;
  color: var(--text-main);
}
.testimonials .section-description {
  color: var(--text-secondary);
}

.testimonial-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  margin-bottom: 30px;
  transition: all var(--transition);
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid var(--card-border);
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-color);
  border-color: rgba(122, 79, 240, 0.2);
  background-color: var(--card-bg-hover);
}
body.light-mode .testimonial-card:hover {
  border-color: rgba(90, 52, 214, 0.2);
}

.testimonial-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding-left: 30px;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 60px;
  color: var(--primary);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-source {
  font-weight: 600;
  font-size: 18px;
  margin-top: 30px;
  text-align: right;
  color: var(--text-main);
}
.testimonial-source + p {
  color: var(--text-secondary);
}

/* Reassurance Section */
.reassurance {
  padding: 80px 0;
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, rgba(26, 41, 66, 0.03), rgba(148, 107, 45, 0.03));
  color: var(--text-main);
}
.reassurance .feature-description {
  color: var(--text-secondary);
}

.reassurance-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.reassurance-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  animation: pulse 2s infinite ease-in-out;
}
.reassurance-icon svg defs linearGradient stop:nth-child(1) {
  stop-color: var(--primary);
}
.reassurance-icon svg defs linearGradient stop:nth-child(2) {
  stop-color: var(--secondary);
}

.reassurance-text {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.5;
  color: inherit;
}

/* Reassurance inner box */
.reassurance-content > div:last-child {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow-color);
  border: 1px solid var(--card-border);
  max-width: 700px;
  position: relative;
  overflow: hidden;
}
.reassurance-content > div:last-child .reassurance-text {
  background: linear-gradient(135deg, var(--accent-law), var(--accent-law-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.reassurance-content > div:last-child > div:first-of-type {
  background: linear-gradient(to right, var(--accent-law), var(--accent-law-light));
}
.reassurance-content > div:last-child span {
  color: var(--text-main);
}
.reassurance-content > div:last-child i {
  color: var(--accent-law);
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(122, 79, 240, 0.05), rgba(77, 177, 242, 0.05));
  text-align: center;
  position: relative;
  color: var(--text-main);
}
body.light-mode .cta {
  background: linear-gradient(135deg, rgba(90, 52, 214, 0.05), rgba(0, 119, 182, 0.05));
}
.cta .cta-text {
  color: var(--text-secondary);
}
.cta .cta-title {
  color: inherit;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

/* CTA inner box */
.cta-content > div:nth-of-type(2) {
  background-color: var(--card-bg);
  padding: 60px 40px 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px var(--shadow-color);
  border: 1px solid var(--card-border);
  margin-top: 40px;
  position: relative;
  overflow: visible;
}
.cta-content > div:nth-of-type(2) > div:first-of-type {
  background: linear-gradient(to right, var(--accent-law), var(--accent-law-light), var(--secondary));
}
.cta-content > div:nth-of-type(2) span {
  color: var(--text-secondary);
}
.cta-content > div:nth-of-type(2) i {
  color: var(--accent-law-light);
}
.cta-content > div:nth-of-type(2) .cta-title {
  color: var(--text-main);
}
.cta-content > div:nth-of-type(2) .cta-text {
  color: var(--text-secondary);
}
.cta-content > div:last-child {
  border-top: 1px solid var(--card-border);
}
.cta-content > div:last-child span {
  color: var(--text-main);
  font-weight: 600;
}
.cta-content > div:last-child i {
  color: var(--accent-law);
}

.cta-title {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-text {
  line-height: 1.8;
  margin-bottom: 40px;
  font-size: 18px;
}

/* Animations */
@keyframes titleReveal {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating Elements */
.floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.08;
  filter: blur(40px);
  z-index: 0;
  animation: float 15s infinite alternate;
}

.float-1 {
  width: 300px;
  height: 300px;
  top: 20%;
  right: -150px;
}

.float-2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: -100px;
  background: linear-gradient(135deg, var(--accent-law), var(--primary));
  animation-delay: 2s;
}

.float-3 {
  width: 250px;
  height: 250px;
  top: 60%;
  right: 10%;
  background: linear-gradient(135deg, var(--secondary), var(--accent-law));
  animation-delay: 4s;
}

/* Media Queries */
@media (max-width: 1200px) {
  .container {
    padding: 0 8%;
  }
  .navbar .container {
    padding: 0;
  }
}

@media (max-width: 992px) {
  section {
    padding: 80px 0;
  }
  .law-features,
  .law-process,
  .testimonials,
  .reassurance,
  .cta {
    padding: 80px 0;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 20px 5%;
  }

  .navbar.scrolled {
    padding: 15px 5%;
  }
  .navbar .container {
    padding: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    padding: 20px 20px 20px 70px;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }
}
