/*
* Style principal pour le site Lonavrexithol
* Couleurs :
* - Fond principal: #1B1F3B (indigo foncé)
* - Accent primaire: #FF5E1A (orange néon)
* - Accent secondaire: #1DE9B6 (turquoise)
* - Titres: #FAFAFA (blanc chaud)
* - Texte: #C7C9D3 (gris clair)
* - Boutons: gradient de #FF5E1A à #FF3D6E
*/

/* Reset et base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #C7C9D3;
  background-color: #1B1F3B;
  overflow-x: hidden;
}

/* Conteneur */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: #FAFAFA;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 42px;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 28px;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #1DE9B6;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #FF5E1A;
}

img {
  max-width: 100%;
  height: auto;
}

/* Section commune */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(45deg, #FF5E1A, #FF3D6E);
}

/* Boutons */
.button {
  display: inline-block;
  background: linear-gradient(45deg, #FF5E1A, #FF3D6E);
  color: #FAFAFA;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(255, 94, 26, 0.4);
  text-align: center;
}

.button:hover {
  box-shadow: 0 0 20px rgba(255, 94, 26, 0.7);
  color: #FAFAFA;
  transform: translateY(-2px);
}

.button:active {
  transform: scale(0.95);
}

/* Header et Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(27, 31, 59, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

/* Style pour le formulaire du menu burger PHP */
.menu-form {
  margin: 0;
  padding: 0;
  display: inline-block;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(45deg, #1DE9B6, #FF5E1A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-menu ul {
  display: flex;
  list-style: none;
}

.main-menu li {
  margin-left: 20px;
}

.main-menu a {
  color: #FAFAFA;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.main-menu a:hover {
  color: #1DE9B6;
}

.main-menu li.active a {
  color: #1DE9B6;
}

.main-menu li.active a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1DE9B6;
}

.burger-icon {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.burger-icon span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FAFAFA;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Styles pour le menu burger contrôlé par PHP */
.burger-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-icon.open span:nth-child(2) {
  opacity: 0;
}

.burger-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  margin-top: 0;
  padding-top: 80px;
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Style commun pour les icônes SVG */
.benefit-icon svg,
.service-icon svg {
  transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon svg,
.service-card:hover .service-icon svg {
  transform: scale(1.1);
}

.hero {
  background-attachment: fixed !important;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
}

.hero-button {
  font-size: 18px;
}

/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.trust-elements {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.trust-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.trust-item:hover {
  transform: scale(1.1);
}

/* Services Section */
.services {
  background-color: rgba(29, 233, 182, 0.03);
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 25px;
}

.service-button {
  display: inline-block;
}

/* Benefits Section */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-item {
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
}

.benefit-icon {
  margin-bottom: 20px;
}

.benefit-item h3 {
  margin-bottom: 15px;
}

/* Stats Section */
.stats {
  background: linear-gradient(45deg, rgba(27, 31, 59, 0.9), rgba(27, 31, 59, 0.8)), url('../img/stats-bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  text-align: center;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 40px;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: #1DE9B6;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 18px;
  color: #FAFAFA;
}

/* Testimonials Section */
.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.testimonial-container {
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  animation: fade 0.5s;
}

.testimonial-slide.active {
  display: block;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.testimonial-content {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info h4 {
  margin-bottom: 5px;
}

.testimonial-rating .star {
  color: #FF5E1A;
  font-size: 20px;
}

.testimonial-controls {
  text-align: center;
  margin-top: 20px;
}

.testimonial-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

.testimonial-dot.active,
.testimonial-dot:hover {
  background-color: #1DE9B6;
}

/* Contact Form Section */
.contact-form {
  background-color: rgba(29, 233, 182, 0.03);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: #FAFAFA;
  font-size: 16px;
}

.form-group select option {
  background-color: #1B1F3B;
  color: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1DE9B6;
  box-shadow: 0 0 0 2px rgba(29, 233, 182, 0.2);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  margin-bottom: 0;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-button {
  padding: 14px 30px;
  font-size: 18px;
}

/* News Section */
.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.news-card {
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.news-image {
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-date {
  font-size: 14px;
  color: #1DE9B6;
  margin: 15px 20px 5px;
}

.news-card h3 {
  padding: 0 20px;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 20px;
}

.news-card p {
  padding: 0 20px;
  margin-bottom: 20px;
}

.news-link {
  display: inline-block;
  padding: 0 20px 20px;
  font-weight: 500;
  position: relative;
}

.news-link:after {
  content: '→';
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.news-link:hover:after {
  transform: translateX(5px);
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  margin-bottom: 25px;
}

.contact-item h3 {
  margin-bottom: 5px;
  color: #1DE9B6;
}

.contact-map {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-map img {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: block;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  color: #FAFAFA;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.faq-question:after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.01);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
  padding: 20px;
}

.faq-item:has(.faq-answer.active) .faq-question:after {
  transform: translateY(-50%) rotate(45deg);
}

/* Footer */
.main-footer {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: #1DE9B6;
}

.legal-links {
  list-style: none;
}

.legal-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(27, 31, 59, 0.95);
  padding: 15px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.cookie-content p {
  margin-right: 20px;
  margin-bottom: 0;
}

#accept-cookies {
  background-color: #1DE9B6;
  color: #1B1F3B;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

#accept-cookies:hover {
  background-color: #FF5E1A;
  color: #FAFAFA;
}

/* Thank You Page */
.thank-you {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 120px 0 60px;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #1DE9B6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
  margin-bottom: 30px;
}

.thank-you-icon img {
  width: 120px;
  height: 120px;
}

.thank-you h1 {
  margin-bottom: 20px;
}

.thank-you p {
  margin-bottom: 30px;
  font-size: 18px;
}

/* Legal Pages */
.legal-page {
  padding: 120px 0 60px;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #1DE9B6;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-content h1 {
  text-align: center;
  margin-bottom: 40px;
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #1DE9B6;
}

.legal-section h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.legal-section ul, 
.legal-section ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.legal-section li {
  margin-bottom: 8px;
}

/* Media Queries */
@media (max-width: 992px) {
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 30px;
  }
  
  h3 {
    font-size: 24px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  .burger-icon {
    display: block;
  }
  
  .main-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: rgba(27, 31, 59, 0.95);
    backdrop-filter: blur(8px);
    transition: height 0.3s ease;
  }
  
  .main-menu ul {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }
  
  .main-menu li {
    margin: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-menu a {
    display: block;
    padding: 15px 0;
  }
  
  /* Styles pour le menu principal contrôlé par PHP */
.main-menu.open {
  height: 100vh;
  overflow-y: auto;
}
  
  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .testimonial-rating {
    margin-top: 10px;
  }
  
  .legal-content {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .stats-container {
    gap: 20px;
  }
  
  .form-container {
    padding: 30px 15px;
  }
}
