/* ========================================
   DOMAIN - Audit Financier
   Feuille de style principale
   ======================================== */

/* Variables CSS pour la palette de couleurs */
:root {
  --electric-indigo: #5A00FF;
  --lemon-glow: #FFF44F;
  --gunmetal: #2A2D34;
  --platinum: #E5E5E5;
  --coral-pop: #FF6B6B;
  --white: #FFFFFF;
  --black: #000000;
}

/* Reset et configuration de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gunmetal);
  background-color: var(--white);
  min-width: 320px;
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Logo */
.logo {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--electric-indigo);
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--coral-pop);
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(42, 45, 52, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gunmetal);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--electric-indigo);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--electric-indigo);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Sections principales */
.section {
  padding: 4rem 0;
}

/* Amélioration du scroll vers les ancres */
[id] {
  scroll-margin-top: 120px;
}

.section-alt {
  background-color: var(--gunmetal);
  color: var(--white);
}

.section-light {
  background-color: var(--platinum);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--electric-indigo) 0%, var(--gunmetal) 100%);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Boutons CTA */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--lemon-glow);
  color: var(--gunmetal);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-primary:hover {
  background-color: var(--coral-pop);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 244, 79, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--electric-indigo);
  border: 2px solid var(--electric-indigo);
}

.btn-secondary:hover {
  background-color: var(--electric-indigo);
  color: var(--white);
  transform: translateY(-2px);
}

/* Grille de services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--white);
  color: var(--gunmetal);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(42, 45, 52, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(42, 45, 52, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--lemon-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--gunmetal);
}

/* Avantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.advantage-item {
  text-align: center;
  padding: 1.5rem;
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background-color: var(--electric-indigo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--white);
}

/* Processus */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 15px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--electric-indigo);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

/* Témoignages */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background-color: var(--white);
  color: var(--gunmetal);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(42, 45, 52, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--lemon-glow);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: serif;
}

.testimonial-author {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--electric-indigo);
}

/* Formulaire */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(42, 45, 52, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gunmetal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--platinum);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--electric-indigo);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background-color: var(--gunmetal);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--lemon-glow);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--platinum);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--lemon-glow);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(229, 229, 229, 0.2);
  color: var(--platinum);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--gunmetal);
  color: var(--white);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-text {
  flex: 1;
  font-size: 0.9rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cookie-btn.accept {
  background-color: var(--lemon-glow);
  color: var(--gunmetal);
}

.cookie-btn.accept:hover {
  background-color: var(--coral-pop);
  color: var(--white);
}

.cookie-btn.decline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-btn.decline:hover {
  background-color: var(--white);
  color: var(--gunmetal);
}

/* Animations CSS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Animation réduite pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero {
    padding-top: 120px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .services-grid,
  .advantages-grid,
  .process-steps,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* Utilitaires */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
