/* 
* Clarté Comptable - style.css
* Palette:
* - Background: #E7F4C9 (pastel lime)
* - Accent: #D81B60 (fuchsia) and #1B1F3B (ink blue)
* - Headings: #283048 (dark blue-gray)
* - Buttons: gradient from #FF784F (mandarin) to #F72585 (deep magenta)
*/

/* Reset & Base Styles */
:root {
  --color-bg: #E7F4C9;
  --color-accent-1: #D81B60;
  --color-accent-2: #1B1F3B;
  --color-heading: #283048;
  --color-text: #333;
  --color-btn-1: #FF784F;
  --color-btn-2: #F72585;
  --color-white: #fff;
  --color-light-gray: #f5f5f5;
  --color-medium-gray: #d4d4d4;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin-bottom: 0.8em;
  line-height: 1.3;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-accent-1);
  margin: 15px auto 0;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent-1);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-2);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

section {
  padding: 80px 0;
}

/* Header & Navigation */
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: inline-block;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li:not(:last-child) {
  margin-right: 25px;
}

.nav-list a {
  color: var(--color-heading);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
}

.nav-list a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-accent-1);
  transition: width 0.3s ease;
}

.nav-list a:hover::before {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(to right, var(--color-btn-1), var(--color-btn-2));
  color: var(--color-white) !important;
  padding: 10px 20px !important;
  border-radius: 30px;
}

.nav-cta:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-cta::before {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-heading);
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 0;
  width: 100%;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--color-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(to right, var(--color-btn-1), var(--color-btn-2));
  color: var(--color-white);
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  color: var(--color-white);
  box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
  transform: translateY(-2px);
}

/* About Section */
.about {
  background-color: var(--color-bg);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

/* Services Section */
.services {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--color-light-gray);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 15px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--color-accent-1);
}

/* Benefits Section */
.benefits {
  background-color: var(--color-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  text-align: center;
  padding: 30px;
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  margin: 0 auto 20px;
  width: 60px;
  height: 60px;
}

.benefit-item h3 {
  color: var(--color-accent-2);
  margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--color-white);
}

.testimonial-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 10px;
  scroll-snap-type: x mandatory;
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: calc(33.333% - 20px);
  padding: 30px;
  background-color: var(--color-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  scroll-snap-align: center;
}

.testimonial-rating {
  color: var(--color-accent-1);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-heading);
}

/* FAQ Section */
.faq {
  background-color: var(--color-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-white);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-accent-1);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 300px;
}

/* Contact Section */
.contact {
  background-color: var(--color-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  color: var(--color-text);
}

.contact-map {
  margin-top: 30px;
}

.map-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.contact-form {
  background-color: var(--color-light-gray);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-medium-gray);
  border-radius: 5px;
  font-family: var(--font-body);
  background-color: var(--color-white); /* Non-transparent fields */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent-1);
}

.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group.checkbox input {
  width: auto;
}

.form-group.checkbox label {
  margin-bottom: 0;
}

.submit-button {
  background: linear-gradient(to right, var(--color-btn-1), var(--color-btn-2));
  color: var(--color-white);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1rem;
}

.submit-button:hover {
  box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background-color: var(--color-accent-2);
  color: var(--color-white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info {
  grid-column: span 2;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-about {
  max-width: 400px;
}

.footer-contact a,
.footer-links a,
.footer-legal a {
  color: var(--color-bg);
  position: relative;
  display: inline-block;
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-accent-1);
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  left: 0;
  bottom: -100%;
  width: 100%;
  background-color: var(--color-accent-2);
  color: var(--color-white);
  padding: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-popup p {
  margin: 0;
  padding-right: 20px;
}

.cookie-popup a {
  color: var(--color-bg);
  text-decoration: underline;
}

.cookie-button {
  background: var(--color-accent-1);
  color: var(--color-white);
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

/* Form Errors */
.form-errors {
  background-color: rgba(255, 0, 0, 0.1);
  border-left: 4px solid #d81b60;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.error-message {
  color: #d81b60;
  font-size: 0.9rem;
  margin: 5px 0;
}

/* Thank You Page */
.thank-you-content {
  margin: 0 auto;
  max-width: 600px;
  text-align: center;
  padding: 120px 20px;
}

.success-icon,
.error-icon {
  margin: 20px auto;
  width: 80px;
  height: 80px;
}

.thank-you-message {
  font-size: 1.2rem;
  margin: 20px 0 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content {
    max-width: 90%;
    padding: 0 20px;
  }
  
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .testimonial-card {
    flex: 0 0 80%;
    max-width: 80%;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
  }
  
  .nav-list.active {
    display: flex;
  }
  
  .nav-list li {
    margin: 10px 0;
  }
  
  .nav-list li:not(:last-child) {
    margin-right: 0;
  }
  
  .testimonial-card {
    flex: 0 0 90%;
    max-width: 90%;
  }
  
  .footer-info {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero .subtitle {
    font-size: 1rem;
  }
  
  .testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
} 