/* Style principal pour le site domain - Audit financier */

/* --- Réinitialisation et variables --- */
:root {
  --color-primary: #2E0249;
  --color-secondary: #00F5D4;
  --color-accent1: #C9F200;
  --color-accent2: #FF6B6B;
  --color-text-light: #FFFFFF;
  --color-text-gray: #D9D9D9;
  --font-main: 'Arial', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-text-light);
  line-height: 1.6;
  min-height: 100vh;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent1);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent2);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

/* --- Animation --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  animation: fadeIn 0.8s ease-out forwards;
}

/* --- Header & Navigation --- */
header {
  background: rgba(46, 2, 73, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

nav {
  position: relative;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

nav a {
  color: var(--color-text-light);
  font-weight: 600;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--color-accent1);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* --- Boutons --- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  background: linear-gradient(45deg, var(--color-accent2), var(--color-accent1));
  color: var(--color-primary);
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--color-primary);
}

/* --- Hero Section --- */
.hero {
  height: 80vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-out forwards;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeIn 1s 0.3s ease-out forwards;
  opacity: 0;
}

.hero .btn {
  animation: fadeIn 1s 0.6s ease-out forwards;
  opacity: 0;
}

/* --- À propos --- */
.about {
  background: rgba(0, 0, 0, 0.2);
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 1.5rem;
}

/* --- Avantages --- */
.advantages {
  background: rgba(0, 0, 0, 0.2);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.advantage-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-accent1);
}

/* --- Étapes --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.step-img {
  height: 200px;
  overflow: hidden;
}

.step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-content {
  padding: 1.5rem;
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--color-accent1);
  color: var(--color-primary);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* --- Témoignages --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}

.testimonial-img {
  height: 200px;
  overflow: hidden;
}

.testimonial-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  padding: 1.5rem;
}

.testimonial-author {
  font-weight: bold;
  margin-top: 1rem;
  color: var(--color-accent1);
}

.testimonial-role {
  font-style: italic;
  font-size: 0.9rem;
}

/* --- Formulaire --- */
.contact-form-section {
  background: rgba(0, 0, 0, 0.2);
  padding: 5rem 0;
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 15px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
}

select.form-control {
  background-color: white;
  color: var(--color-primary);
}

select.form-control option {
  background-color: white;
  color: var(--color-primary);
}

.form-check {
  margin-bottom: 1rem;
}

.form-check-label {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.form-check-input {
  margin-top: 0.2rem;
}

/* --- FAQ --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1rem;
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  background: rgba(255, 255, 255, 0.05);
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  padding: 0 1rem;
}

.faq-checkbox:checked + .faq-question::after {
  transform: rotate(45deg);
}

.faq-checkbox:checked + .faq-question + .faq-answer {
  max-height: 500px;
  padding: 1rem;
}

/* --- Contact & Footer --- */
.contact {
  background: rgba(0, 0, 0, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.contact-info-icon {
  margin-right: 10px;
  color: var(--color-accent1);
}

.map-container {
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer {
  background: rgba(46, 2, 73, 0.95);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-heading {
  color: var(--color-accent1);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: var(--transition);
  flex-direction: column;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-text {
  margin-right: 1rem;
}

/* --- Page de politique --- */
.policy-page {
  padding: 5rem 0;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 15px;
}

.policy-container h1 {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  color: var(--color-accent1);
  margin-bottom: 1rem;
}

/* --- Page de remerciement --- */
.thanks-page {
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-container {
  max-width: 600px;
  margin: 8rem auto 5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 15px;
  text-align: center;
}

.thanks-icon {
  font-size: 4rem;
  color: var(--color-accent1);
  margin-bottom: 1.5rem;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    font-size: 1.5rem;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    width: 100vw;
    right: 0;
    flex-direction: column;
    background: var(--color-primary);
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .nav-toggle:checked ~ ul {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .hero {
    min-height: 500px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
