/* 
Domain - Expert-comptable
Main stylesheet
*/

/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

body {
  background-color: #241C3C;
  color: #2A2A2A;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #E65A4F;
  transition: all 0.3s ease;
}

a:hover {
  color: #c64a40;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #E65A4F;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: #E65A4F;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.btn {
  display: inline-block;
  background-color: #E65A4F;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
}

.btn:hover {
  background-color: #c64a40;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Light section styling */
.light-section {
  background-color: #F2EFEA;
}

/* Header styling */
header {
  background-color: #241C3C;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #F2EFEA;
}

.logo span {
  color: #E65A4F;
}

/* Navigation styling */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: #F2EFEA;
  font-weight: 500;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #E65A4F;
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #F2EFEA;
  margin: 5px 0;
  transition: all 0.3s ease;
}

#menu-toggle {
  display: none;
}

/* Hero section */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(36, 28, 60, 0.8), rgba(36, 28, 60, 0.8)), url('./img/HKITk.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: #F2EFEA;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.hero .btn {
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

/* About section */
.about {
  position: relative;
  overflow: hidden;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  margin-bottom: 15px;
  color: #241C3C;
}

.service-content p {
  margin-bottom: 20px;
  color: #888888;
}

/* Benefits section */
.benefits {
  position: relative;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.benefit-item {
  text-align: center;
  padding: 30px 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-10px);
}

.benefit-icon {
  font-size: 2.5rem;
  color: #E65A4F;
  margin-bottom: 20px;
}

.benefit-title {
  margin-bottom: 15px;
  color: #241C3C;
}

/* Testimonials section */
.testimonials {
  background-color: #F2EFEA;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-text:before {
  content: '"';
  font-size: 3rem;
  color: #E65A4F;
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  color: #241C3C;
}

.author-info p {
  color: #888888;
  font-size: 0.9rem;
}

/* Steps section */
.steps {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.step-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.step-number {
  position: absolute;
  top: 0;
  right: 20px;
  font-size: 6rem;
  font-weight: 700;
  color: rgba(230, 90, 79, 0.1);
  z-index: -1;
}

.step-title {
  margin-bottom: 15px;
  color: #241C3C;
}

/* CTA Section */
.cta {
  background-image: linear-gradient(rgba(36, 28, 60, 0.9), rgba(36, 28, 60, 0.9)), url('./img/npU5B.jpg');
  background-size: cover;
  background-position: center;
  color: #F2EFEA;
  text-align: center;
  padding: 80px 0;
}

.cta h2 {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.cta p {
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.faq {
  background-color: #F2EFEA;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: #fff;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #241C3C;
}

.faq-checkbox {
  display: none;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.faq-arrow:before, .faq-arrow:after {
  content: '';
  position: absolute;
  background-color: #E65A4F;
  transition: all 0.3s ease;
}

.faq-arrow:before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.faq-arrow:after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-answer {
  background-color: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-checkbox:checked ~ .faq-answer p {
  padding: 0 20px 20px;
  opacity: 1;
  transform: translateY(0);
}

.faq-checkbox:checked ~ .faq-question .faq-arrow:before {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

/* Contact form section */
.contact {
  background-color: #F2EFEA;
  position: relative;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #241C3C;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #E65A4F;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23888888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.form-checkbox {
  margin-top: 5px;
  margin-right: 10px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.form-checkbox:checked:after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #E65A4F;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2px;
}

.form-checkbox:focus {
  outline: none;
  border-color: #E65A4F;
}

.checkbox-label {
  font-size: 0.9rem;
  color: #888888;
}

.checkbox-label a {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* Footer styling */
footer {
  background-color: #241C3C;
  color: #F2EFEA;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: #E65A4F;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: #E65A4F;
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #F2EFEA;
}

.footer-links a:hover {
  color: #E65A4F;
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 10px;
  color: #E65A4F;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(242, 239, 234, 0.7);
}

/* Policy page styling */
.policy-page {
  background-color: #F2EFEA;
  padding: 80px 0;
}

.policy-container {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  border: 1px solid #E65A4F;
  max-width: 900px;
  margin: 0 auto;
}

.policy-title {
  color: #241C3C;
  font-size: 1.9rem;
  margin-bottom: 30px;
  text-align: center;
}

.policy-section {
  margin-bottom: 30px;
}

.policy-section h3 {
  color: #241C3C;
  margin-bottom: 15px;
}

.policy-section p {
  margin-bottom: 15px;
}

.policy-section ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

/* Thank you page */
.merci-container {
  margin: 5rem auto;
  text-align: center;
  border: 1px solid #E65A4F;
  padding: 2rem;
  width: 80%;
  max-width: 600px;
  background-color: #fff;
  border-radius: 10px;
}

.merci-icon {
  font-size: 4rem;
  color: #E65A4F;
  margin-bottom: 20px;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: #241C3C;
  color: #F2EFEA;
  padding: 15px;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: bottom 0.5s ease;
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

.cookie-btn {
  background-color: #E65A4F;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.cookie-btn:hover {
  background-color: #c64a40;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media screen and (max-width: 991px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-text {
    order: 2;
  }
  
  .about-image {
    order: 1;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 98%;
    left: 0;
    width: 100%;
    background-color: #241C3C;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }
  
  .nav-item {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: 15px;
  }
  
  .nav-link:after {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  #menu-toggle:checked ~ .nav-menu {
    display: flex;
  }
  
  #menu-toggle:checked ~ .mobile-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  #menu-toggle:checked ~ .mobile-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  #menu-toggle:checked ~ .mobile-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .form-container {
    padding: 30px 20px;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 12px;
  }
  
  .section-padding {
    padding: 40px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .policy-container {
    padding: 20px;
  }
  
  .merci-container {
    width: 90%;
    padding: 1.5rem;
  }
  
  .cookie-popup {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    margin-bottom: 15px;
    padding-right: 0;
  }
}
