/* Style principal pour domain - Services comptables
-------------------------------------------------- */

:root {
  --primary-color: #5E60CE;     /* Bleu pervenche */
  --background-color: #FFFEE3;  /* Jaune pâle */
  --accent-color: #D0006F;      /* Fuchsia */
  --secondary-color: #6A994E;   /* Kaki */
  --text-color: #2B2D42;        /* Gris charbon */
  --white: #FFFFFF;
  --light-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --medium-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease-in-out;
}

/* Réinitialisation et base
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--light-shadow);
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--medium-shadow);
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

/* Délais pour les animations */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Header
-------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--background-color);
  box-shadow: var(--light-shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 600;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section
-------------------------------------------------- */
.hero {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* À propos
-------------------------------------------------- */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 15px;
  box-shadow: var(--medium-shadow);
  object-fit: cover;
}

/* Avantages
-------------------------------------------------- */
.advantages {
  background: linear-gradient(135deg, var(--background-color), var(--white));
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.advantage-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--light-shadow);
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--medium-shadow);
}

.advantage-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.advantage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.advantage-card:hover .advantage-image img {
  transform: scale(1.05);
}

.advantage-content {
  padding: 20px;
}

.advantage-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Services
-------------------------------------------------- */
.services {
  background-color: var(--background-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--light-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--medium-shadow);
}

.service-content {
  padding: 25px;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* CTA Section
-------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.cta-btn {
  background-color: var(--white);
  color: var(--primary-color);
  font-weight: 700;
}

.cta-btn:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Témoignages
-------------------------------------------------- */
.testimonials {
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--light-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.author-info p {
  margin-bottom: 0;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* FAQ
-------------------------------------------------- */
.faq {
  background-color: var(--background-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--light-shadow);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: var(--transition);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-question {
  background-color: var(--primary-color);
  color: var(--white);
}

.faq-item.active .faq-question::after {
  content: '-';
  color: var(--white);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

/* Formulaire
-------------------------------------------------- */
.contact {
  background: linear-gradient(135deg, var(--white), var(--background-color));
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--medium-shadow);
  background: linear-gradient(135deg, var(--white), var(--background-color));
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(94, 96, 206, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

/* Footer
-------------------------------------------------- */
.footer {
  background-color: var(--text-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.footer-col p {
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 10px;
  list-style: none;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links li a:hover {
  color: var(--accent-color);
}

.footer-contact li {
  margin-bottom: 15px;
  list-style: none;
  display: flex;
}

.footer-contact li i {
  margin-right: 10px;
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Cookie Popup
-------------------------------------------------- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--medium-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1001;
  max-width: 90%;
  width: 400px;
}

.cookie-text {
  margin-right: 20px;
  font-size: 0.9rem;
}

.cookie-btn {
  padding: 8px 20px;
  white-space: nowrap;
}

/* Pages de politique
-------------------------------------------------- */
.policy-page {
  padding: 150px 0 80px;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--light-shadow);
}

.policy-header {
  text-align: center;
  margin-bottom: 40px;
}

.policy-section {
  margin-bottom: 30px;
}

.policy-section h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Responsive
-------------------------------------------------- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: var(--light-shadow);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
    padding: 0;
  }
  
  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  nav ul {
    flex-direction: column;
    padding: 20px 0;
  }
  
  nav ul li {
    margin: 10px 0;
    text-align: center;
  }
  
  .hero {
    padding-top: 100px;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    margin-top: 30px;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 40px 0;
  }
  
  .container {
    width: 95%;
  }
  
  .form-container {
    padding: 20px;
  }
} 