/* Style principal pour domain - Services de comptabilité */

/* Variables et réinitialisation */
:root {
  --primary-bg: #3C1361;
  --secondary-bg-start: #1D2671;
  --secondary-bg-end: #0F0C29;
  --accent: #C0F73A;
  --secondary-accent: #FF6F3C;
  --text: #F2F2F2;
  --shadow: rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  background-color: var(--primary-bg);
  color: var(--text);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Boutons et accents */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary-bg);
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary-accent);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

/* Header et Navigation */
header {
  background-color: rgba(60, 19, 97, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
}

.menu-btn {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  background: linear-gradient(rgba(60, 19, 97, 0.7), rgba(29, 38, 113, 0.9)), url('./img/thsXk.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* About Section */
.about {
  background: linear-gradient(to bottom right, var(--secondary-bg-start), var(--secondary-bg-end));
  padding: 5rem 0;
  border-radius: 20px;
  margin-top: -20px;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  display: block;
  width: 50%;
  height: 4px;
  background-color: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Services Section */
.services {
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: linear-gradient(145deg, var(--secondary-bg-start), var(--secondary-bg-end));
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Benefits Section */
.benefits {
  background: linear-gradient(to bottom left, var(--secondary-bg-start), var(--secondary-bg-end));
  padding: 5rem 0;
  border-radius: 20px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-card {
  background-color: rgba(60, 19, 97, 0.5);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Form Section */
.contact {
  padding: 5rem 0;
}

.form-container {
  background: linear-gradient(145deg, var(--secondary-bg-start), var(--secondary-bg-end));
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 15px 30px var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: none;
  background-color: rgba(242, 242, 242, 0.9);
  color: #333;
}
form a {
    color: var(--accent);
    text-decoration: none;
}

.form-select option {
  background-color: white;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.checkbox-group input {
  margin-right: 10px;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: linear-gradient(145deg, var(--secondary-bg-start), var(--secondary-bg-end));
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow);
}

.testimonial-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--accent);
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  color: var(--accent);
  font-weight: 600;
  margin-top: 1rem;
}

/* FAQ Section */
.faq {
  background: linear-gradient(to bottom right, var(--secondary-bg-start), var(--secondary-bg-end));
  padding: 5rem 0;
  border-radius: 20px;
}

.faq-item {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  display: block;
  background-color: rgba(60, 19, 97, 0.7);
  color: var(--text);
  padding: 1.5rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  border: none;
  text-align: left;
  width: 100%;
  transition: background-color 0.3s;
}

.faq-question:after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.faq-answer {
  background-color: rgba(29, 38, 113, 0.5);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-input {
  display: none;
}

.faq-input:checked ~ .faq-answer {
  max-height: 500px;
  padding: 1.5rem;
}

.faq-input:checked + .faq-question {
  background-color: rgba(192, 247, 58, 0.2);
}

.faq-input:checked + .faq-question:after {
  content: '-';
}

/* Footer */
footer {
  background-color: rgba(29, 38, 113, 0.8);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-section p {
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(242, 242, 242, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--secondary-bg-end);
  padding: 1.5rem;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: bottom 0.5s;
  z-index: 1001;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-text {
  flex: 1;
}

.cookie-button {
  margin-left: 1.5rem;
}

/* Thank You Page */
.thanks-container {
  background: linear-gradient(145deg, var(--secondary-bg-start), var(--secondary-bg-end));
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  max-width: 600px;
  margin: 8rem auto 5rem;
  box-shadow: 0 15px 30px var(--shadow);
}

/* Policy Pages */
.policy-container {
  background: linear-gradient(145deg, var(--secondary-bg-start), var(--secondary-bg-end));
  border-radius: 20px;
  padding: 3rem;
  max-width: 800px;
  margin: 4rem auto;
  box-shadow: 0 15px 30px var(--shadow);
}

.policy-container h1 {
  margin-bottom: 2rem;
  color: var(--accent);
}

.policy-container h2 {
  margin: 2rem 0 1rem;
  color: var(--secondary-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navigation responsiveness */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--secondary-bg-end);
    flex-direction: column;
    justify-content: center;
    transition: right 0.5s;
    padding: 2rem;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-btn {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }
  
  .menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 6px 0;
    background-color: var(--text);
    transition: 0.3s;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-toggle:checked ~ .nav-menu {
    right: 0;
  }
  
  .nav-toggle:checked + .menu-btn span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .nav-toggle:checked + .menu-btn span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle:checked + .menu-btn span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  /* Other responsive adjustments */
  .hero h1 {
    font-size: 2.3rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}
