/* 
 * Main stylesheet for domain - Cabinet d'audit financier
 */

/* ----- Reset and Base Styles ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color palette */
  --background-start: #051937;
  --background-end: #004d7a;
  --accent: #b9ff2b;
  --heading: #ffffff;
  --text: #cccccc;
  --button-gradient-start: #00c9a7;
  --button-gradient-end: #92fe9d;
  --dark-bg: #1a1a1a;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, var(--background-start) 0%, var(--background-end) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
}

section {
  padding: 5rem 0;
}

p {
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(to right, var(--button-gradient-start), var(--button-gradient-end));
  color: var(--heading);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.center {
  text-align: center;
}

/* ----- Header & Navigation ----- */
.header {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  top: 0;
}

.header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  padding: 0.8rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--heading);
  font-size: 1.8rem;
  font-weight: 800;
}

.logo span {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}
.nav-item form {
  display: contents;
}

.nav-link {
  color: var(--heading);
  font-weight: 500;
  display: block;
  width: 100%;
  padding: 0.5rem;
}

.nav-link:hover {
  color: var(--accent);
}

.mobile-menu {
  display: none;
  cursor: pointer;
}

/* ----- Hero Section ----- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.hero .btn {
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

/* ----- About Section ----- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  transition: all 0.8s ease;
}

/* ----- Benefits Section ----- */
.benefits {
  background-color: rgba(0, 0, 0, 0.1);
}

.benefits-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.benefit-icon {
  color: var(--accent);
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ----- Services Section ----- */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--dark-bg);
  padding: 2rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-icon {
  background: linear-gradient(to right, var(--button-gradient-start), var(--button-gradient-end));
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon img {
  width: 40px;
  height: 40px;
}

/* ----- Testimonials Section ----- */
.testimonials {
  background-color: rgba(0, 0, 0, 0.1);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--dark-bg);
  padding: 2rem;
  border-radius: 10px;
  position: relative;
}

.testimonial-text {
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.author-info h4 {
  margin-bottom: 0.2rem;
}

.author-info p {
  color: var(--accent);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.quote-icon {
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 3rem;
  opacity: 0.2;
  color: var(--accent);
}

/* ----- Form Section ----- */
.form-section {
  background-color: var(--dark-bg);
  padding: 5rem 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--heading);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-select {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--heading);
  font-size: 1rem;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form-select option {
  background-color: var(--dark-bg);
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.checkbox-input {
  margin-right: 10px;
  accent-color: var(--accent);
}

.checkbox-label {
  font-size: 0.9rem;
}

.form-btn {
  background: var(--accent);
  color: var(--dark-bg);
  width: 100%;
  font-weight: 700;
}

/* ----- FAQ Section ----- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-header {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.accordion-header h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.accordion-content {
  background-color: rgba(0, 0, 0, 0.3);
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-content-inner {
  padding: 1.2rem;
}

.accordion.active .accordion-content {
  max-height: 500px;
}

/* ----- Blog Section ----- */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.blog-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.blog-excerpt {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ----- Contact Section ----- */
.contact {
  background-color: var(--dark-bg);
  padding: 3rem 0;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  color: var(--accent);
  font-size: 1.5rem;
  margin-top: 0.3rem;
}

.contact-text h4 {
  margin-bottom: 0.3rem;
}

.contact-text p {
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--heading);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent);
  color: var(--dark-bg);
}

/* ----- Footer ----- */
.footer {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: var(--text);
  font-size: 0.9rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* ----- Cookie Popup ----- */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(26, 26, 26, 0.95);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  margin-right: 1rem;
}

.cookie-btn {
  background-color: var(--accent);
  color: var(--dark-bg);
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

/* ----- Policy Pages ----- */
.policy-container {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3rem;
  margin: 0 auto;
  max-width: 900px;
  margin-top: 120px;
}

.policy-container h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.policy-container h2 {
  color: var(--accent);
  margin-top: 2rem;
}

.policy-container ul,
.policy-container ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

/* ----- Thank You Page ----- */
.thank-you {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0;
  width: 100%;
}

.thank-you-content {
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  margin: 0 auto;
  text-align: center;
}

.thank-you-icon {
  color: var(--accent);
  font-size: 5rem;
  margin-bottom: 2rem;
}

/* ----- Animations ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Media Queries ----- */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    flex-direction: column;
    background-color: var(--dark-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1.5rem 0;
  }

  .mobile-menu {
    display: block;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .services-container,
  .testimonials-container,
  .blog-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .cookie-popup {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cookie-text {
    margin-right: 0;
    margin-bottom: 0.5rem;
    text-align: center;
  }
}
