/*
* EXPERTISE COMPTABLE - MAIN STYLESHEET
* Color Palette:
* - Primary: #4E47A0 (deep purple)
* - Accent: #FF8552 (peach-orange)
* - Background: #FAF9F6 (off-white)
* - Text: #2D2A32 (coal-gray)
* - Secondary: #C6D8D3 (mint)
*/

/* === GLOBAL STYLES === */
:root {
  --color-primary: #4e47a0;
  --color-accent: #ff8552;
  --color-bg: #faf9f6;
  --color-text: #2d2a32;
  --color-secondary: #c6d8d3;
  --font-main: "Arial", sans-serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

section[id] {
  scroll-margin-top: 80px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #ff8552;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: #3a359a;
  color: #fff;
}

.btn-secondary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #ff6a2c;
  color: #fff;
}

section {
  padding: 80px 0;
}

/* === HEADER === */
.site-header {
  background-color: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  max-width: 200px;
}

.logo-svg {
  width: 100%;
  height: auto;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 30px;
}

.main-nav a {
  font-weight: bold;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* === HERO SECTION === */
.hero-section {
  background-image: url("../img/E7Ubw.jpg");
  background-size: cover;
  background-position: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  color: #fff;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 42, 50, 0.7);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* === ABOUT SECTION === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* === SERVICES SECTION === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: #fff;
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-card h3 {
  padding: 20px 20px 0;
}

.service-card p {
  padding: 0 20px 20px;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-primary);
}

/* === BENEFITS SECTION === */
.benefits-section {
  background-color: var(--color-secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.benefit-item {
  background-color: #fff;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* === TESTIMONIALS SECTION === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.testimonial-content {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-content p::before,
.testimonial-content p::after {
  content: '"';
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: bold;
}

/* === FAQ SECTION === */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  background-color: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-toggle {
  display: none;
}

.faq-question {
  display: block;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  padding: 0 20px;
}

.faq-toggle:checked ~ .faq-question::after {
  content: "-";
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

/* === CONTACT SECTION === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
}

.checkbox-group label {
  margin: 0;
  font-weight: normal;
}

.contact-info {
  background-color: var(--color-primary);
  color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
}

.contact-info h3 {
  color: #fff;
}

.contact-info a {
  color: var(--color-accent);
}

.contact-map {
  margin-top: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* === FOOTER === */
.site-footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-info h3,
.footer-links h3,
.footer-legal h3 {
  color: #fff;
}

.footer-description {
  margin-bottom: 20px;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-legal a {
  color: var(--color-secondary);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === COOKIE CONSENT === */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-popup p {
  margin: 0;
}

/* === POLICY PAGES === */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.policy-page h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.policy-page h2 {
  text-align: left;
  font-size: 1.5rem;
  margin-top: 2rem;
}

/* === THANK YOU PAGE === */
.thank-you-page {
  text-align: center;
  padding: 80px 20px;
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  fill: var(--color-accent);
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-info {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .benefits-grid,
  .testimonials-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Mobile Navigation */
  .nav-toggle-label {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0 15px;
  }

  .main-nav li {
    margin: 0;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 400px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .cookie-popup {
    flex-direction: column;
    text-align: center;
  }

  .cookie-popup button {
    margin-top: 15px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 60px 0;
  }

  .hero-section {
    min-height: 400px;
  }
}
