/* STYLE.CSS - Domain - Services Comptables */

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #2D1E40;      /* Fond principal (violet foncé) */
  --accent: #3FFFC3;          /* Accent principal (menthe néon) */
  --secondary: #FF6F61;       /* Éléments secondaires (corail) */
  --text: #F9F9F9;            /* Texte (blanc laiteux) */
  --gold: #FFD700;            /* Accent supplémentaire (or) */
  --transition: 0.3s ease;    /* Transition standard */
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Ombre standard */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--primary-bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 40px;
  padding: 4rem 1rem;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

/* HEADER & NAVIGATION */
header {
  background-color: var(--primary-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

/* Navigation menu with checkbox toggle for mobile */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--accent);
}

/* HERO SECTION */
#hero {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(45, 30, 64, 0.7); /* Overlay with primary color */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--primary-bg);
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--primary-bg);
}

/* ABOUT SECTION */
#about {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #3D2855 100%);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
}

/* SERVICES SECTION */
#services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(135deg, #3D2855 0%, #4D3267 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ADVANTAGES SECTION */
#advantages {
  background-color: #3D2855;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(45, 30, 64, 0.5);
  border-radius: 10px;
  transition: var(--transition);
}

.advantage-item:hover {
  background: rgba(45, 30, 64, 0.8);
  transform: translateY(-5px);
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.advantage-title {
  color: var(--accent);
  margin-bottom: 0.8rem;
}

/* TESTIMONIALS SECTION */
#testimonials {
  background: linear-gradient(135deg, #3D2855 0%, var(--primary-bg) 100%);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: rgba(61, 40, 85, 0.7);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: rgba(63, 255, 195, 0.2);
  position: absolute;
  top: -20px;
  left: -15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-info {
  margin-left: 1rem;
}

.author-name {
  font-weight: 600;
  color: var(--accent);
}

.author-position {
  font-size: 0.9rem;
  color: var(--secondary);
}

/* FAQ SECTION */
#faq {
  background: linear-gradient(135deg, var(--primary-bg) 0%, #3D2855 100%);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  display: block;
  background: rgba(63, 255, 195, 0.1);
  color: var(--text);
  padding: 1rem;
  position: relative;
  font-weight: 600;
  cursor: pointer;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(45, 30, 64, 0.7);
}

.faq-answer {
  padding: 0 1rem;
  margin: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
}

.faq-toggle:checked ~ .faq-content {
  max-height: 1000px;
}

.faq-toggle:checked ~ .faq-content .faq-answer {
  padding: 1rem;
  opacity: 1;
  transform: translateY(0);
}

.faq-toggle:checked ~ .faq-question::after {
  content: '−';
}

/* CONTACT FORM SECTION */
#contact {
  background: linear-gradient(135deg, #3D2855 0%, var(--primary-bg) 100%);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(45, 30, 64, 0.8);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 500;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid rgba(63, 255, 195, 0.3);
  background: rgba(249, 249, 249, 0.05);
  border-radius: 5px;
  color: var(--text);
  transition: var(--transition);
}

.form-select option {
  background: white;
  color: var(--primary-bg);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(249, 249, 249, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.form-checkbox input {
  margin-right: 10px;
  margin-top: 5px;
}

.form-checkbox label {
  font-size: 0.9rem;
}

.form-checkbox a {
  color: var(--secondary);
}

/* CTA SECTION */
#cta {
  background-color: var(--secondary);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  color: var(--primary-bg);
  margin-bottom: 1.5rem;
}

.cta-text {
  color: var(--text);
  margin-bottom: 2rem;
}

.btn-white {
  background-color: var(--text);
  color: var(--primary-bg);
}

.btn-white:hover {
  background-color: var(--gold);
}

/* FOOTER */
footer {
  background-color: #25193A;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-column p,
.footer-column address {
  margin-bottom: 1rem;
  font-style: normal;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(249, 249, 249, 0.1);
}

/* POLICY PAGES */
.policy-container {
  max-width: 900px;
  margin: 2rem auto;
  background: rgba(45, 30, 64, 0.7);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent);
}

.policy-title {
  color: var(--accent);
  margin-bottom: 2rem;
  text-align: center;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* THANK YOU PAGE */
.thank-you {
  text-align: center;
  max-width: 600px;
  margin: 8rem auto 5rem;
  padding: 3rem;
  background: rgba(45, 30, 64, 0.8);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent);
}

/* COOKIE POPUP */
.cookie-popup {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: rgba(45, 30, 64, 0.95);
  max-width: 350px;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--accent);
  z-index: 9999;
}

.cookie-popup h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.cookie-popup p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    font-size: 1.5rem;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-bg);
    height: 0;
    overflow: hidden;
    transition: var(--transition);
  }
  
  nav ul {
    flex-direction: column;
    padding: 1rem 0;
    width: 100%;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
  }
  
  .nav-toggle:checked ~ nav {
    height: auto;
    border-top: 1px solid rgba(249, 249, 249, 0.1);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  section[id] {
    padding: 3rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeIn 0.8s ease forwards;
}

/* Additional utility classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }
