/* 
* ComptaFlex - Services Comptables Professionnels
* Palette de couleurs:
* - Fond principal: #151B2D (bleu indigo profond)
* - Accent: #FF7E67 (corail saumon)
* - Texte: #F7F7F7 (presque blanc)
* - Couleur secondaire: #4FB286 (vert menthe)
* - Boutons: gradient de #FF7E67 à #4FB286
*/

/* Reset et styles généraux */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #F7F7F7;
  background-color: #151B2D;
  padding-top: 80px; /* Compensation pour le header fixe */
  overflow-x: hidden;
}

a {
  color: #FF7E67;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #4FB286;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 5rem 0;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, #FF7E67, #4FB286);
  transition: width 0.3s ease;
}

h2:hover::after {
  width: 100%;
}

h3 {
  font-size: 1.8rem;
}

/* Boutons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #FF7E67, #4FB286);
  color: #F7F7F7;
  box-shadow: 0 4px 15px rgba(255, 126, 103, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(255, 126, 103, 0.6);
  color: #F7F7F7;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #4FB286;
  color: #4FB286;
}

.btn-secondary:hover {
  background-color: #4FB286;
  color: #F7F7F7;
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(21, 27, 45, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav ul li {
  margin-left: 30px;
}

.main-nav ul li a {
  color: #F7F7F7;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #FF7E67, #4FB286);
  transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
  width: 100%;
}

.main-nav .btn-contact {
  background: linear-gradient(135deg, #FF7E67, #4FB286);
  color: #F7F7F7;
  padding: 10px 20px;
  border-radius: 50px;
}

.main-nav .btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 126, 103, 0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin-bottom: 5px;
  position: relative;
  background-color: #F7F7F7;
  border-radius: 3px;
  transform-origin: center;
  transition: all 0.3s ease;
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, rgba(21, 27, 45, 0.9), rgba(21, 27, 45, 0.8)), url('../img/IXhjaD.jpg') no-repeat center/cover;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  z-index: 10;
  text-align: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards 0.2s;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards 0.4s;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards 0.6s;
  justify-content: center;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about {
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 2rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-shape {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #FF7E67, #4FB286);
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

/* Services Section */
.services {
  background-color: rgba(21, 27, 45, 0.7);
  position: relative;
}

.services-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF7E67, #4FB286) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 126, 103, 0.2), rgba(79, 178, 134, 0.2));
  border-radius: 50%;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  fill: #FF7E67;
}

.service-title {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-price {
  margin-top: 20px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #4FB286;
}

.service-features {
  list-style: none;
  margin: 20px 0;
}

.service-features li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.service-features li::before {
  content: '✓';
  color: #4FB286;
  position: absolute;
  left: 0;
}

/* Why Choose Us */
.why-us {
  position: relative;
}

.why-us-image {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.why-us-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.why-us-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.why-us-image:hover img {
  transform: scale(1.03);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.why-us-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.why-us-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.1);
}

.why-us-icon {
  flex: 0 0 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 126, 103, 0.2), rgba(79, 178, 134, 0.2));
  border-radius: 50%;
}

.why-us-icon svg {
  width: 25px;
  height: 25px;
  fill: #FF7E67;
}

.why-us-text h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
  position: relative;
  background-color: rgba(21, 27, 45, 0.7);
  z-index: 1;
}

.testimonials-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
}

.testimonial-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  margin: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid #4FB286;
}

.testimonial-text {
  font-style: italic;
  position: relative;
  margin-bottom: 20px;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  color: #FF7E67;
  font-size: 2rem;
  font-weight: bold;
}

.testimonial-author {
  font-weight: bold;
  margin-bottom: 5px;
}

.testimonial-position {
  color: #4FB286;
  font-size: 0.9rem;
}

/* FAQ Section */
.faq {
  position: relative;
}

.faq-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: #FF7E67;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: #4FB286;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
  opacity: 1;
}

/* Contact Form */
.contact {
  position: relative;
  background: linear-gradient(135deg, rgba(21, 27, 45, 0.9), rgba(21, 27, 45, 0.8)), url('../img/SV1bTh.jpg') no-repeat center/cover;
  background-attachment: fixed;
}

.contact-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #ff0000;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #FF7E67;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 126, 103, 0.2);
}

.form-control::placeholder {
  color: rgba(247, 247, 247, 0.6);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FF7E67' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-checkbox {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
}

.form-checkbox input {
  margin-right: 10px;
  margin-top: 6px;
}

.form-checkbox label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.form-checkbox a {
  text-decoration: underline;
}

/* Footer */
.main-footer {
  background-color: #0e1321;
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 3rem;
}

.footer-col h3 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, #FF7E67, #4FB286);
}

.footer-col p {
  opacity: 0.8;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #F7F7F7;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-col ul li a:hover {
  color: #FF7E67;
  opacity: 1;
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(21, 27, 45, 0.95);
  padding: 20px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  flex: 1;
  min-width: 300px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Legal Pages */
.legal-page {
  padding: 8rem 0 5rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.legal-content p {
  margin-bottom: 1.5rem;
}

.legal-content ul, 
.legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-left {
  opacity: 0;
  animation: slideInLeft 0.8s forwards;
}

.animate-right {
  opacity: 0;
  animation: slideInRight 0.8s forwards;
}

.animate-up {
  opacity: 0;
  animation: slideInUp 0.8s forwards;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-600 {
  animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  
  .why-us-image {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .hero {
    padding-top: 6rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #151B2D;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    visibility: hidden;
  }
  
  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 15px;
  }
  
  .main-nav ul li {
    margin-left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .cookie-content {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    padding-top: 8rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .contact-form {
    padding: 20px;
  }
} 