/* Main styles for Miravionexus.com - Financial Audit Website */

:root {
  /* Color palette */
  --color-primary: #0B6E4F; /* deep emerald */
  --color-accent: #FF6F3C;  /* coral-orange */
  --color-secondary: #F4D35E; /* warm sand */
  --color-background: #E8EEF1; /* light blue-gray */
  --color-white: #FFFFFF;
  --color-text: #2E2E2E; /* dark graphite */
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Pour éviter que la navigation par ancres soit cachée par l'en-tête */
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 {
  font-size: 3rem;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
}

h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  width: 80px;
  height: 4px;
  background-color: var(--color-accent);
  transform: translateX(-50%);
}

h3 {
  font-size: 1.8rem;
  text-align: center;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

section {
  padding: 80px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-primary {
  background-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Header styles */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 600;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

nav ul li a:hover:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, rgba(11,110,79,0.9) 0%, rgba(11,110,79,0.7) 100%), url('img/ZOPo0n.jpg') no-repeat center center;
  background-size: cover;
  color: var(--color-white);
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: backwards;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: backwards;
}

/* About section */
.about {
  background-color: var(--color-white);
}

/* Advantages section */
.advantages {
  background-color: var(--color-background);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.advantage-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.advantage-card i {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

/* Services section */
.services {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--color-background);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-card-img {
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.1);
}

.service-card-content {
  padding: 20px;
}

/* Testimonials section */
.testimonials {
  background-color: var(--color-background);
  text-align: center;
}

.testimonial-carousel {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

/* Portfolio section */
.portfolio {
  background-color: var(--color-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.portfolio-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11,110,79,0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-item-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item-overlay h3 {
  color: var(--color-white);
}

/* Form section */
.contact {
  background-color: var(--color-background);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,111,60,0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

/* FAQ section */
.faq {
  background-color: var(--color-white);
}

.faq .container {
  max-width: 800px;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.faq-question {
  font-weight: 700;
  cursor: pointer;
  padding: 15px 0;
  position: relative;
  padding-right: 30px;
}

.faq-question:after {
  content: '+';
  position: absolute;
  right: 0;
  top: 15px;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question:after {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 15px;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-col h3 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
  display: block;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--color-white);
  max-width: 350px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
}

.cookie-popup.show {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.cookie-popup p {
  margin-bottom: 15px;
}

/* Policy pages */
.policy-container {
  max-width: 800px;
  margin: 120px auto 60px;
  padding: 40px;
  background-color: var(--color-white);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.policy-container h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* Thank you page */
.thankyou {
  text-align: center;
  padding: 100px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.thankyou-container {
  background-color: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.thankyou i {
  font-size: 5rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    padding: 15px 20px;
  }
  
  .hero {
    height: auto;
    padding: 120px 0 80px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  section {
    padding: 60px 0;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .form-container {
    padding: 20px;
  }
}
