/* STYLE PRINCIPAL - DOMAIN AUDIT FINANCIER */

/* RESET ET BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF;
  background-color: #0D1B2A;
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* VARIABLES DE COULEUR */
:root {
  --primary: #6B2FBF;
  --secondary: #2FBFA7;
  --accent: #FFD447;
  --bg-dark: #0D1B2A;
  --bg-medium: #1B263B;
  --text-light: #FFFFFF;
  --text-gray: #B0B0B0;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  animation: slideUp 0.8s ease forwards;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* HEADER & NAVIGATION */
header {
    top: 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to right, var(--bg-dark), var(--bg-medium));
  padding: 15px 0;
  border-bottom: 2px solid var(--primary);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

nav a:hover {
  color: var(--accent);
}

.menu-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle .fa-times {
  display: none;
}

.menu-checkbox:checked ~ .menu-toggle .fa-bars {
  display: none;
}

.menu-checkbox:checked ~ .menu-toggle .fa-times {
  display: inline-block;
}

.menu-checkbox:checked ~ #mainMenu {
  left: 0;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-gray);
}

/* SECTIONS */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-light);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent);
}

/* ABOUT SECTION */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* ADVANTAGES SECTION */
.advantage-card {
  background: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.advantage-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

/* AUDIT TYPES SECTION */
.audit-type-card {
  background: linear-gradient(145deg, var(--bg-dark), var(--bg-medium));
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.audit-type-card:hover {
  transform: translateY(-10px);
}

.audit-type-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.audit-type-content {
  padding: 20px;
}

.audit-type-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

/* CONTACT FORM */
.form-section {
  background: linear-gradient(145deg, var(--bg-dark), var(--bg-medium));
  padding: 4rem 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(27, 38, 59, 0.8);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-light);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid rgba(107, 47, 191, 0.3);
  background-color: rgba(13, 27, 42, 0.6);
  color: var(--text-light);
  border-radius: 5px;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-control option {
  background-color: #FFFFFF;
  color: #333333;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.9rem;
}

.checkbox-group label a {
  color: var(--accent);
  text-decoration: none;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

/* TESTIMONIALS SECTION */
.testimonial-card {
  background: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 5rem;
  color: rgba(47, 191, 167, 0.2);
  font-family: serif;
  line-height: 1;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.testimonial-author .name {
  font-weight: 700;
}

.testimonial-author .position {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* STEPS SECTION */
.step-card {
  display: flex;
  background: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 2rem;
  font-weight: 700;
}

.step-content {
  padding: 25px;
  flex: 1;
}

.step-content h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

/* BLOG/ARTICLES SECTION */
.article-card {
  background: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-10px);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 20px;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.article-date {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.read-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s;
}

.read-more:hover::after {
  width: 100%;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #5a26a3;
  box-shadow: 0 5px 15px rgba(107, 47, 191, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: #28a08f;
  box-shadow: 0 5px 15px rgba(47, 191, 167, 0.4);
}

.btn-accent {
  background-color: var(--accent);
  color: #333;
}

.btn-accent:hover {
  background-color: #f5c520;
  box-shadow: 0 5px 15px rgba(255, 212, 71, 0.4);
}

/* COOKIE POPUP */
.cookie-popup {
  position: fixed;
  bottom: -100vh;
  left: 0;
  width: 100%;
  background: var(--bg-medium);
  padding: 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: bottom 0.5s;
  border-top: 3px solid var(--primary);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-text {
  flex: 1;
  padding-right: 20px;
}

/* THANK YOU PAGE */
.thank-you-container {
  max-width: 800px;
  margin: 8rem auto 5rem;
  padding: 50px;
  background: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--primary);
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

/* POLICY PAGES */
.policy-container {
  max-width: 900px;
  margin: 8rem auto 5rem;
  padding: 50px;
  background: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--primary);
}

.policy-container h1 {
  color: var(--text-light);
  margin-bottom: 30px;
  text-align: center;
}

.policy-container h2 {
  color: var(--secondary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.policy-container p {
  margin-bottom: 15px;
}

/* FOOTER */
footer {
  background: linear-gradient(to right, var(--bg-dark), var(--bg-medium));
  padding: 60px 0 30px;
  border-top: 2px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.contact-info {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* FAQ STYLING */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
  background: linear-gradient(145deg, var(--bg-medium), var(--bg-dark));
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  display: block;
  border-left: 5px solid var(--primary);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-checkbox {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(27, 38, 59, 0.5);
  transition: max-height 0.3s;
}

.faq-answer-content {
  padding: 0 20px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s, padding 0.3s;
}

.faq-checkbox:checked ~ .faq-question::after {
  content: '−';
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-checkbox:checked ~ .faq-answer .faq-answer-content {
  padding: 20px;
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    position: relative;
    z-index: 101;
  }
  
  nav ul {
    position: fixed;
    flex-direction: column;
    background: var(--bg-dark);
    width: 100%;
    top: 70px;
    left: -100%;
    height: calc(100vh - 70px);
    padding: 20px;
    transition: left 0.3s;
    z-index: 100;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .cookie-popup {
    flex-direction: column;
  }
  
  .cookie-text {
    margin-bottom: 15px;
    padding-right: 0;
  }
  
  .policy-container {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .form-container,
  .thank-you-container {
    padding: 25px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
