/* Main content */
#main-content-home {
   flex: 1;
}

/* Hero Section */
.hero {
   min-height: calc(100vh - 5rem);
   display: flex;
   align-items: center;
   position: relative;
   overflow: hidden;
   background: var(--hero-gradient);
}

.hero-content {
   width: 1200px;
   margin: 0 auto;
   padding: 2rem;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
}

.hero-text h1 {
   font-size: 3.5rem;
   font-weight: 800;
   line-height: 1.1;
   margin-bottom: 1.5rem;
   background: var(--gradient);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.hero-text p {
   font-size: 1.25rem;
   color: var(--on-surface-variant);
   margin-bottom: 2rem;
   line-height: 1.7;
}

.hero-buttons {
   display: flex;
   gap: 1rem;
   flex-wrap: wrap;
}

.btn-primary {
   background: var(--gradient);
   color: var(--on-primary);
   padding: 1rem 2rem;
   border: none;
   border-radius: 50px;
   font-size: 1.1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
   transform: translateY(-3px);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
   background: transparent;
   color: var(--primary);
   padding: 1rem 2rem;
   border: 2px solid var(--primary);
   border-radius: 50px;
   font-size: 1.1rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease;
}

.btn-secondary:hover {
   background: var(--primary);
   color: var(--on-primary);
   transform: translateY(-3px);
}

.hero-visual {
   position: relative;
   height: 500px;
   display: flex;
   justify-content: center;
   align-items: center;
}

.phone-mockup {
   width: 300px;
   height: auto;
   z-index: 2;
   filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
   animation: float 6s ease-in-out infinite;
}

@keyframes float {
   0%, 100% { transform: translateY(0px) rotate(0deg); }
   50% { transform: translateY(-20px) rotate(2deg); }
}

.floating-elements {
   position: absolute;
   width: 100%;
   height: 100%;
}

.floating-horse {
   position: absolute;
   width: 80px;
   height: 80px;
   background: var(--secondary-container);
   color: var(--on-secondary-container);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2rem;
   animation: floatSlow 8s ease-in-out infinite;
   z-index: 3;

}

@keyframes floatSlow {
   0%, 100% { transform: translate(0, 0) scale(1); }
   50% { transform: translate(20px, -30px) scale(1.1); }
}

.floating-horse:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-horse:nth-child(2) { top: 60%; right: 10%; animation-delay: 2s; }
.floating-horse:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 4s; }

/* French Badge */
.french-badge {
   position: absolute;
   top: 20px;
   right: 20px;
   background: var(--primary-container);
   color: var(--on-primary-container);
   padding: 0.5rem 1rem;
   border-radius: 20px;
   font-size: 0.9rem;
   font-weight: 600;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
   animation: pulse 3s ease-in-out infinite;
}

.beta-badge {
   position: absolute;
   top: 2rem;
   left: 50%;
   transform: translateX(-50%);
   padding: 0.5rem 1rem;
   border-radius: 1rem;
   font-weight: 600;
   font-size: 1.2rem;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
   /* animation: pulse 3s ease-in-out infinite; */
}

@keyframes pulse {
   0%, 100% { transform: scale(1); }
   50% { transform: scale(1.05); }
}


/* Collaboration Highlight */
.collaboration-highlight {
   background: var(--gradient);
   color: var(--on-primary);
   padding: 6rem 2rem;
   text-align: center;
   position: relative;
   overflow: hidden;
   margin-block-start: 0;
}

.collaboration-highlight::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
   opacity: 0.1;
}

.collaboration-content {
   max-width: 800px;
   margin: 0 auto;
   position: relative;
   z-index: 1;
}

.collaboration-highlight h2 {
   font-size: 2.5rem;
   font-weight: 800;
   margin-bottom: 1.5rem;
}

.collaboration-highlight p {
   font-size: 1.2rem;
   opacity: 0.9;
   margin-bottom: 2rem;
   line-height: 1.7;
}

.collaboration-features {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 2rem;
   margin-top: 3rem;
}

.collab-feature {
   text-align: center;
}

.collab-feature-icon {
   width: 80px;
   height: 80px;
   background: rgba(255, 255, 255, 0.2);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2rem;
   margin: 0 auto 1rem;
   backdrop-filter: blur(10px);
}

.collab-feature h4 {
   font-size: 1.1rem;
   font-weight: 600;
   margin-bottom: 0.5rem;
}

.collab-feature p {
   font-size: 0.9rem;
   opacity: 0.8;
   margin: 0;
}


/* Installation */
.install-app {
   padding: 6rem 2rem;
   background: var(--inverse-on-surface);
   margin-block-start: 0;
}

.install-content {
   max-width: 1000px;
   margin: 0 auto;
   text-align: center;
}

.install-button-container {
   display: flex;
   justify-content: center;
   margin-bottom: 3rem;
}



/* Features Section */
.features {
   padding: 6rem 2rem;
   max-width: 1200px;
   margin: 0 auto;
}

.section-header {
   text-align: center;
   margin-bottom: 4rem;
}

.section-header h2 {
   font-size: 2.5rem;
   font-weight: 800;
   margin-bottom: 1rem;
   color: var(--primary);
}

.section-header p {
   font-size: 1.2rem;
   color: var(--on-surface-variant);
   max-width: 600px;
   margin: 0 auto;
}

.features-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
   gap: 2rem;
   margin-bottom: 4rem;
}

.feature-card {
   background: var(--surface);
   padding: 2.5rem;
   border-radius: 20px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
   transition: all 0.3s ease;
   border: 1px solid var(--outline-variant);
   position: relative;
   overflow: hidden;
}

.feature-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 4px;
   background: var(--gradient);
}

.feature-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
   width: 60px;
   height: 60px;
   background: var(--gradient);
   border-radius: 15px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.5rem;
   color: var(--on-primary);
   margin-bottom: 1.5rem;
}

.feature-card h3 {
   font-size: 1.3rem;
   font-weight: 700;
   margin-bottom: 1rem;
   color: var(--primary);
}

.feature-card p {
   color: var(--on-surface-variant);
   line-height: 1.7;
}


/* How it works */
.how-it-works {
   padding: 6rem 2rem;
   background: var(--inverse-on-surface);
}

.steps {
   max-width: 1000px;
   margin: 0 auto;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 3rem;
}

.step {
   text-align: center;
   position: relative;
}

.step-number {
   width: 60px;
   height: 60px;
   background: var(--gradient);
   color: var(--on-primary);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.5rem;
   font-weight: 700;
   margin: 0 auto 2rem;
}

.step h3 {
   font-size: 1.3rem;
   font-weight: 700;
   margin-bottom: 1rem;
   color: var(--primary);
}

.step p {
   color: var(--on-surface-variant);
   line-height: 1.7;
}

/* Pricing */
.pricing {
   padding: 6rem 2rem;
   background: var(--background);
}

.pricing .choix-periodicite {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 1rem;
   margin: 2rem auto;
   font-size: 1rem;
}

.pricing-cards {
   max-width: 1000px;
   margin: 0 auto;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
}

.pricing-card {
   display: flex;
   flex-direction: column;
   background: var(--surface-container-lowest);
   padding: 3rem 2rem;
   border-radius: 20px;
   text-align: center;
   position: relative;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
   transition: all 0.3s ease;
   border: 1px solid var(--surface-container-highest);
}

.pricing-card .title {
   font-size: 1.2rem;
   font-weight: 600;
}

.pricing-card .target {
   background: var(--primary);
   color: var(--on-primary);
   font-weight: 600;
   padding: 0.25rem;
}

.pricing-card .pricing-cta {
   margin-top: auto;
}

.pricing-card.featured {
   transform: scale(1.05);
   border: 3px solid var(--primary);
}

.pricing-card.featured::before {
   /* content: 'RECOMMANDÉ'; */
   position: absolute;
   top: -15px;
   left: 50%;
   transform: translateX(-50%);
   background: var(--gradient);
   color: var(--on-primary);
   padding: 0.5rem 2rem;
   border-radius: 20px;
   font-size: 0.8rem;
   font-weight: 600;
}

.pricing-card.featured.solo::before {
   content: 'Pour les cavaliers solo'
}

.pricing-card.featured.essentiel::before {
   content: 'Pour les DP'
}

.pricing-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
   transform: scale(1.05) translateY(-5px);
}

.price-container {
   margin-bottom: 1rem;
}

.price {
   font-size: 3rem;
   font-weight: 800;
   color: var(--primary);
}

.price-period {
   color: var(--on-surface-variant);
   margin-bottom: 2rem;
}

.features-list {
   list-style: none;
   padding-left: 0.5rem;
   margin-bottom: 2rem;
}

.features-list li {
   padding: 0.5rem 0;
   color: var(--on-surface-variant);
   position: relative;
   padding-left: 2rem;
   text-align: left;
}

.features-list li::before {
   font-family: "Material Icons";
   content: '\e5ca';
   position: absolute;
   left: 0;
   color: var(--primary);
   font-weight: bold;
}

/* FAQ */
/* .faq-item {
   background: var(--surface) !important;
   margin-bottom: 1rem;
   padding: 2rem;
   border-radius: 15px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.faq-item h4 {
   color: var(--primary) !important;
   margin-bottom: 1rem;
}

.faq-item p {
   color: var(--on-surface-variant) !important;
   line-height: 1.7;
} */

#faq {
   background-color: var(--background);
}

.faq-container {
   max-width: 800px;
   margin: 0 auto;
}

.faq-item {
   background: var(--inverse-on-surface);
   margin-bottom: 1rem;
   border-radius: 15px;
   box-shadow: var(--shadow);
   overflow: hidden;
   transition: all 0.3s ease;
}

/* .faq-item:hover {
   box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
} */

.faq-question {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1.5rem 2rem;
   cursor: pointer;
   transition: background-color 0.3s ease;
   user-select: none;
}

/* .faq-question:hover {
   background-color: #f8fafc;
} */

.faq-question h4 {
   font-size: 1.1rem;
   font-weight: 600;
   flex: 1;
   margin: 0;
}

.faq-icon {
   width: 24px;
   height: 24px;
   transition: transform 0.3s ease;
   flex-shrink: 0;
   margin-left: 1rem;
}

.faq-icon svg {
   width: 100%;
   height: 100%;
}

.faq-item.active .faq-icon {
   transform: rotate(45deg);
}

.faq-answer {
   max-height: 0;
   overflow: hidden;
   transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
   /* max-height: 200px; */
   max-height: fit-content;
}

.faq-answer-content {
   padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
   line-height: 1.7;
   font-size: 1rem;
}

.fade-in {
   opacity: 1;
   transform: translateY(0);
}

@media (max-width: 768px) {
   .features {
         padding: 2rem 1rem;
   }
   
   .section-header h2 {
         font-size: 2rem;
   }
   
   .faq-question {
         padding: 1.5rem;
   }
   
   .faq-answer-content {
         padding: 0 1.5rem 1.5rem 1.5rem;
   }
}

/* About Section */
.about {
   background: var(--gradient);
   color: var(--on-primary);
   padding: 6rem 2rem;
   text-align: center;
   position: relative;
   overflow: hidden;
   margin-block-start: 0;
}

.about::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
   opacity: 0.1;
}

.about-content {
   max-width: 800px;
   margin: 0 auto;
   position: relative;
   z-index: 1;
}

.about h2 {
   font-size: 2.5rem;
   font-weight: 800;
   margin-bottom: 1.5rem;
}

.about h3 {
   font-size: 2rem;
}



.about p {
   font-size: 1.1rem;
   opacity: 0.9;
   margin-bottom: 2rem;
   line-height: 1.7;
}

.about-feature-icon {
   width: 80px;
   height: 80px;
   background: rgba(255, 255, 255, 0.2);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2rem;
   margin: 3rem auto 1rem;
   backdrop-filter: blur(10px);
}

/* CTA Section */
.final-cta {
   background: var(--gradient);
   color: var(--on-primary);
   padding: 6rem 2rem;
   text-align: center;
}

.final-cta h2 {
   font-size: 2.5rem;
   font-weight: 800;
   margin-bottom: 1rem;
}

.final-cta p {
   font-size: 1.2rem;
   opacity: 0.9;
   margin-bottom: 3rem;
   max-width: 600px;
   margin-left: auto;
   margin-right: auto;
}

.btn-white {
   background: var(--surface);
   color: var(--primary);
   padding: 1.2rem 3rem;
   border: none;
   border-radius: 50px;
   font-size: 1.2rem;
   font-weight: 700;
   cursor: pointer;
   transition: all 0.3s ease;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
   transform: translateY(-3px);
   box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Form */
.contact {
   padding: 6rem 2rem;
   background-color: var(--inverse-on-surface);
   margin-block-start: 0;
}

.contact form {
   background: var(--surface-container-lowest) !important;
   padding: 3rem;
   border-radius: 20px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

form label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--primary) !important;
}

form input,
form textarea {
   width: 100%;
   padding: 1rem;
   /* border: 2px solid var(--outline-variant) !important; */
   border-radius: 10px;
   font-size: 1rem;
   transition: border-color 0.3s ease;
   /* background: var(--surface) !important;
   color: var(--on-surface) !important; */
}

form input:focus,
form textarea:focus {
   border: 2px solid var(--primary)!important;
}

#id_captcha {
   display: flex;
   justify-content: center;
}

/* Mobile responsiveness */

@media (max-width: 1000px) {
   .hero-content {
       margin-top: 4rem;
   }
}

@media (max-width: 900px) {
   .hero-content {
      margin-top: 6rem;
      grid-template-columns: 1fr;
      text-align: center;
      gap: 2rem;
   }
   .hero-visual {
      scale: 0.7;
   }

   .floating-horse:nth-child(1) { left: 20%; }
   .floating-horse:nth-child(2) { right: 18%; }
   .floating-horse:nth-child(3) { left: 25%; }

   .hero-text h1 {
       font-size: 2.5rem;
   }

   .hero-buttons {
       justify-content: center;
   }
}

@media (max-width: 768px) {
   .features-grid {
       grid-template-columns: 1fr;
   }

   .collaboration-features {
       grid-template-columns: 1fr;
   }

   .steps {
       grid-template-columns: 1fr;
   }

   .pricing-cards {
       grid-template-columns: 1fr;
   }

   .pricing-card.featured {
       transform: none;
   }

   .section-header h2 {
       font-size: 2rem;
   }

   .collaboration-highlight h2,
   .final-cta h2 {
       font-size: 2rem;
   }
}

/* Animations on scroll */
.fade-in {
   opacity: 0;
   transform: translateY(30px);
   transition: all 0.6s ease;
}

.fade-in.visible {
   opacity: 1;
   transform: translateY(0);
}