/* 
 * Domain - Main Stylesheet
 * French Accounting Services Website
 */

/* ------------- Base Styles ------------- */
:root {
  --primary: #CE9FFC;
  --primary-dark: #7367F0;
  --secondary: #F9E4F4;
  --accent: #B8F2E6;
  --text: #2D1B5A;
  --text-light: #564B8B;
  --white: #FFFFFF;
  --gray: #F5F5F5;
  --shadow: 0 10px 30px rgba(115, 103, 240, 0.15);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ------------- Typography ------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.section-title {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 60px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ------------- Buttons ------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn:hover {
  background: var(--text);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.btn-nav {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  color: var(--white);
}

/* ------------- Layout & Sections ------------- */
section {
  padding: 5rem 0;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex {
  display: flex;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.space-between {
  justify-content: space-between;
}

/* ------------- Header ------------- */
.site-header {
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  background-color: var(--white);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--text);
  background: linear-gradient(to right, var(--text), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-navigation .menu {
  display: flex;
}

.main-navigation .menu li {
  margin-left: 1.5rem;
}

.nav-toggle {
  display: none;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .menu-toggle {
    width: 30px;
    height: 20px;
    position: relative;
    display: block;
  }
  
  .menu-icon {
    width: 100%;
    height: 3px;
    background-color: var(--text);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
  }
  
  .menu-icon::before,
  .menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text);
    transition: var(--transition);
  }
  
  .menu-icon::before {
    top: -8px;
  }
  
  .menu-icon::after {
    bottom: -8px;
  }
  
  .main-navigation .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 1rem 0;
  }
  
  .main-navigation .menu.mobile-open {
    display: flex;
  }
  
  .main-navigation .menu li {
    margin: 0;
    padding: 0.5rem 2rem;
  }
  
  .main-navigation .menu li a {
    display: block;
    padding: 0.5rem 0;
  }
}

/* ------------- Hero Section ------------- */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(206, 159, 252, 0.8), rgba(115, 103, 240, 0.9)), url('./img/5CHRav.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 2rem 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease;
}

.hero .btn {
  animation: fadeInUp 1.4s ease;
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .hero {
    min-height: 85vh;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero heading style - no typewriter effect */
.typewriter {
  margin: 0 auto;
}

/* ------------- Intro Section ------------- */
.intro-content {
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .intro-content {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .intro-text {
    flex: 1;
    padding-right: 2rem;
  }
}

.intro-image {
  max-width: 350px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ------------- Services Section ------------- */
.services {
  background-color: var(--secondary);
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(115, 103, 240, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* ------------- Testimonials Section ------------- */
.testimonials {
  overflow: hidden;
}

.testimonials-container {
  display: flex;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.testimonials-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.testimonial {
  flex: 0 0 100%;
  scroll-snap-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-right: 1rem;
}

@media (min-width: 768px) {
  .testimonial {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  .testimonial {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

.testimonial-content {
  position: relative;
  padding-top: 2rem;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

/* ------------- Process Section ------------- */
.process-step {
  position: relative;
  padding-left: 80px;
  margin-bottom: 3rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}

.process-step::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  width: 2px;
  height: calc(100% - 30px);
  background-color: var(--primary);
}

.process-step:last-child::after {
  display: none;
}

/* ------------- Pricing Section ------------- */
.pricing {
  background-color: var(--secondary);
}

.pricing-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(115, 103, 240, 0.2);
}

.pricing-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.pricing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pricing-card:hover .pricing-image img {
  transform: scale(1.05);
}

.pricing-header {
  padding: 1.5rem 2rem 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray);
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 1rem 0;
}

.pricing-features {
  margin: 1rem 0;
  padding: 0 2rem;
}

.pricing-features li {
  margin-bottom: 0.5rem;
  text-align: left;
}

.pricing-card .btn {
  margin: 1rem 2rem 2rem;
  display: block;
}

/* ------------- Stats Section ------------- */
.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: countUp 2s forwards;
}

.stat-item.visible .stat-number {
  animation-play-state: running;
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------- Contact Form Section ------------- */
.form-section {
  background-color: var(--gray);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-errors {
  background-color: rgba(255, 0, 0, 0.1);
  border-left: 4px solid #f44336;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.form-errors p {
  margin-bottom: 0.5rem;
  color: #f44336;
}

.form-errors p:last-child {
  margin-bottom: 0;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: var(--transition);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0.75rem;
  color: #888;
  transition: var(--transition);
  pointer-events: none;
}

.form-control:focus,
.form-control:not(:placeholder-shown) {
  outline: none;
  border-color: var(--primary-dark);
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.75rem;
  background-color: var(--white);
  padding: 0 0.25rem;
  color: var(--primary-dark);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.checkbox-group input {
  margin-right: 0.5rem;
  margin-top: 0.3rem;
}

/* ------------- Footer ------------- */
.site-footer {
  background-color: var(--text);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-title {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

address p {
  margin-bottom: 0.5rem;
}

address span {
  font-weight: 600;
  color: var(--accent);
  margin-right: 0.5rem;
}

address a {
  color: var(--white);
  opacity: 0.8;
}

address a:hover {
  opacity: 1;
  color: var(--accent);
}

/* ------------- Cookie Popup ------------- */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--text);
  color: var(--white);
  padding: 1rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideUp 0.5s forwards;
}

.cookie-popup.hidden {
  animation: slideDown 0.5s forwards;
}

.cookie-popup a {
  color: var(--accent);
}

.cookie-popup button {
  background-color: var(--accent);
  color: var(--text);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}

/* ------------- Policy Pages ------------- */
.policy-header {
  background: linear-gradient(rgba(206, 159, 252, 0.8), rgba(115, 103, 240, 0.9)), url('./img/5bfpoi.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.policy-content h2 {
  margin-top: 2rem;
}

.policy-content h3 {
  margin-top: 1.5rem;
}

.policy-toc {
  background-color: var(--gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.policy-toc ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.policy-toc li {
  margin-bottom: 0.5rem;
}

/* ------------- FAQ Accordion ------------- */
.faq-container {
  max-width: 800px;
  margin: 2rem auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  background-color: var(--white);
  padding: 1rem;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
  display: block;
  width: 100%;
  text-align: left;
  outline: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-item[open] .faq-question {
  background-color: var(--primary);
  color: var(--white);
}

.faq-answer {
  padding: 1rem;
  background-color: var(--white);
  border-top: 1px solid #eee;
}

/* ------------- Media Queries ------------- */
@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  h3 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 7rem 0;
  }
  
  .cookie-popup {
    bottom: 2rem;
    left: 2rem;
    width: auto;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
}