/* Styles pour domain.com - Site d'audit financier */

/* Réinitialisation CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables de couleurs */
:root {
  --color-bg: #F6F8FF;
  --color-accent: #FF715B;
  --color-text: #1E1E1E;
  --color-button: #6B5B95;
  --color-block-bg: #E8F0FE;
  --color-white: #FFFFFF;
  --color-error: #e74c3c;
  --color-success: #27ae60;
}

/* Styles généraux */
body {
  font-family: 'Roboto', 'Helvetica Neue', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Fix pour l'ancrage - décalage pour compenser la hauteur du header */
section {
  scroll-margin-top: 100px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-button);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-button);
  color: var(--color-white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section {
  padding: 60px 0;
}

/* Header */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
}

.logo span {
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--color-text);
  font-weight: 500;
}

nav ul li a:hover {
  color: var(--color-accent);
}

/* Menu mobile */
.mobile-menu {
  display: none;
}

/* Hero Section */
#hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, var(--color-bg), var(--color-block-bg));
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  margin-bottom: 20px;
  font-size: 3rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

/* À propos */
#about {
  background-color: var(--color-white);
}

.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
}

.about-content {
  flex: 1;
}

/* Avantages */
#advantages {
  background-color: var(--color-block-bg);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.advantage-card {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-10px);
}

.advantage-icon {
  color: var(--color-accent);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Services */
#services {
  background-color: var(--color-white);
}

.services-title {
  text-align: center;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--color-block-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: var(--color-accent);
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.service-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  max-height: 200px;
}

/* Pourquoi nous */
#why-us {
  background-color: var(--color-block-bg);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.why-us-icon {
  background-color: var(--color-accent);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Témoignages */
#testimonials {
  background-color: var(--color-white);
  text-align: center;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  padding: 40px;
  margin-bottom: 30px;
  background-color: var(--color-block-bg);
  border-radius: 10px;
  position: relative;
}

.testimonial:last-child {
  margin-bottom: 0;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text::before {
  content: '\201C';
  font-size: 3rem;
  position: absolute;
  left: -20px;
  top: -20px;
  color: var(--color-accent);
  opacity: 0.3;
}

.testimonial-author {
  font-weight: 700;
}

.testimonial-position {
  color: var(--color-accent);
  font-size: 0.9rem;
}

/* FAQ */
#faq {
  background-color: var(--color-block-bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  background-color: var(--color-white);
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  padding: 0 20px 20px;
  max-height: 1000px;
}

/* Formulaire de commande */
#commande {
  background-color: var(--color-white);
  padding: 80px 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-block-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
}

.form-container::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-button));
  z-index: -1;
  border-radius: 15px;
}

.form-title {
  text-align: center;
  margin-bottom: 30px;
  color: black;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 113, 91, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--color-button), var(--color-accent));
  color: var(--color-white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.error-message {
  color: var(--color-error);
  font-size: 14px;
  margin-top: 5px;
}

.success-message {
  color: var(--color-success);
  text-align: center;
  font-weight: 600;
}

/* Footer */
footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-about {
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--color-accent);
}

.contact-list {
  list-style: none;
}

.contact-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 10px;
  color: var(--color-accent);
}

.legal-links {
  list-style: none;
}

.legal-links li {
  margin-bottom: 10px;
}

.legal-links a {
  color: var(--color-white);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.legal-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background-color: var(--color-white);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
}

.cookie-popup.show {
  display: block;
}

.cookie-popup p {
  margin-bottom: 15px;
}

.cookie-btn {
  width: 100%;
  padding: 10px;
}

/* Thank you page */
.thank-you {
  text-align: center;
  padding: 100px 0;
}

.thank-you-content {
  background-color: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 600px;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-success);
  margin-bottom: 20px;
}

/* Politique pages */
.policy-page {
  padding: 150px 0 80px;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-title {
  margin-bottom: 30px;
  text-align: center;
}

.policy-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.policy-content p {
  margin-bottom: 15px;
}

.policy-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-content ul li {
  margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .about-image, .about-content {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    display: none;
  }
  
  .mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .mobile-menu.active {
    display: block;
  }
  
  .mobile-menu ul {
    list-style: none;
  }
  
  .mobile-menu ul li {
    margin-bottom: 15px;
  }
  
  .mobile-menu ul li a {
    display: block;
    padding: 8px 0;
    color: var(--color-text);
    font-weight: 500;
  }
  
  #hero {
    padding: 150px 0 80px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 576px) {
  section {
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .form-container {
    padding: 30px 20px;
  }
}
