/* 
 * Domain - Services comptables professionnels
 * Feuille de style principale
 */

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-bg: #F3F0FF;
  --accent: #6A0DAD;
  --secondary: #FFC300;
  --text: #1B1B1F;
  --white: #ffffff;
  --light-purple: #E9E4FF;
  --gradient-1: radial-gradient(circle, var(--light-purple), var(--main-bg));
  --gradient-2: radial-gradient(circle, var(--main-bg), var(--light-purple));
  --shadow: 0 4px 20px rgba(106, 13, 173, 0.1);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--main-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 40px;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
}

.text-center {
  text-align: center;
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  margin-bottom: 15px;
}

.grid {
  display: grid;
  gap: 30px;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.mb-30 {
  margin-bottom: 30px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow);
  padding: 15px 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.logo svg {
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  font-weight: 500;
}

.nav-link.active {
  color: var(--secondary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 50%;
}

.hero-subtitle {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-image {
  width: 45%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* About Section */
.about {
  background: var(--gradient-2);
}

.about-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Services Section */
.services {
  background-color: var(--white);
}

.service-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.service-card {
  width: 300px;
  padding: 30px;
  background-color: var(--main-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(106, 13, 173, 0.15);
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Why Us Section */
.why-us {
  background: var(--gradient-1);
}

.features-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  flex: 1;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(106, 13, 173, 0.12);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--light-purple);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  color: var(--accent);
  font-size: 1.8rem;
}

/* Testimonials */
.testimonials {
  background-color: var(--white);
}

.testimonial-grid {
  grid-template-columns: repeat(2, 1fr);
}

.testimonial-card {
  padding: 30px;
  background-color: var(--main-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
}

.author-position {
  font-size: 0.9rem;
  color: var(--accent);
}

/* Form Section */
.contact {
  background: var(--gradient-2);
}

.contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  flex: 1;
}

.contact-form {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent);
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-top: 5px;
  margin-right: 10px;
}

/* FAQ Section */
.faq {
  background-color: var(--white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: var(--light-purple);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* Footer */
.footer {
  background-color: var(--accent);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-about {
  flex: 1;
}

.footer-contact {
  flex: 1;
}

.footer-links-container {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.footer-logo {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-contact li {
  margin-bottom: 10px;
  list-style: none;
}

.footer-links h4 {
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Policy Pages */
.policy-page {
  padding: 150px 0 80px;
}

.policy-container {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.policy-container h2 {
  margin-top: 30px;
}

.policy-container h3 {
  margin-top: 25px;
  margin-bottom: 15px;
}

.policy-container ul, 
.policy-container ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 1000;
  display: none;
}

.cookie-popup.show {
  display: block;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Thank You Page */
.thank-you {
  padding: 200px 0 100px;
  text-align: center;
  background: var(--gradient-1);
}

.thank-you-content {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    padding: 150px 0 80px;
  }
  
  .hero-image {
    width: 40%;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    flex-direction: column;
  }
  
  .service-grid {
    flex-wrap: wrap;
  }
  
  .service-card {
    flex: 0 0 45%;
    margin-bottom: 20px;
  }
  
  .features-grid {
    flex-wrap: wrap;
  }
  
  .feature-item {
    flex: 0 0 45%;
    margin-bottom: 20px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    background-color: var(--white);
    width: 100%;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 0 0 30px;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 100%;
  }
  
  .hero-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .footer-grid {
    flex-direction: column;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .service-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .service-card {
    width: 100%;
    max-width: 400px;
  }
  
  .features-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .feature-item {
    width: 100%;
    max-width: 400px;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    flex-direction: column;
  }
  
  .contact-form,
  .contact-info {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  .contact-info {
    margin-bottom: 30px;
  }
}


@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 25px;
  }
}
