/* =================================================================== 
 *
 *  Teilen Custom Styles
 *  Customizations for Teilen brand and functionality
 *
 * =================================================================== */

/* Override green colors from #39b54a to #00FF84 */
a:hover,
a:focus {
  color: #00FF84 !important;
}

.button-primary {
  background: #00FF84 !important;
  border-color: #00FF84 !important;
  color: #001024 !important;
}

.button-primary:hover,
.button-primary:focus {
  background: #00FF84 !important;
  border-color: #00FF84 !important;
  color: #ffffff !important;
}

.button.stroke {
  border: 0.3rem solid #00FF84 !important;
  color: #001024 !important;
  background: transparent !important;
}

.button.stroke:hover,
.button.stroke:focus {
  background: #00FF84 !important;
  color: #001024 !important;
  border-color: #00FF84 !important;
}

/* Navbar bleue avec texte blanc */
#header {
  background: #001024 !important;
}

/* Liens navbar blanc par défaut */
.header-main-nav li > a {
  color: #ffffff !important;
}

/* Hover - vert plus clair */
.header-main-nav li > a:hover,
.header-main-nav li > a:focus {
  color: #00FF84 !important;
}

/* Lien actuel/sélectionné - vert */
.header-main-nav li.current > a {
  color: #00FF84 !important;
}

/* Progress bars and highlights */
.progress .progress-bar {
  background-color: #00FF84 !important;
}

/* Pricing table primary */
.plan-block.primary {
  background-color: #00FF84 !important;
}

.plan-block.primary .plan-block-title {
  color: #111111 !important;
}

/* Titres intro-header - bleu foncé avec trait vert existant */
.intro-header {
  color: #001024 !important;
}

/* Modifier la couleur du trait existant ::before */
h1.intro-header::before {
  background: #00FF84 !important;
}

/* Titres h3 - bleu foncé avec trait vert */
.service-content h3 {
  color: #001024 !important;
  position: relative !important;
  padding-bottom: 10px !important;
}

.service-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #00FF84;
  border-radius: 2px;
}

/* Icônes des services - vert dans cercle bleu */
.bgrid.feature .icon {
  background: #001024 !important;
  border-radius: 50% !important;
  width: 70px !important;
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
}

.bgrid.feature .icon i {
  color: #00FF84 !important;
  font-size: 2.5rem !important;
}

/* Steps numbering */
.bgrid.step:before {
  background: #00FF84 !important;
}

/* Testimonials */
.testimonial-author .author-info {
  color: #00FF84 !important;
}

/* Download badges */
.badge-appstore:hover,
.badge-googleplay:hover {
  background: #00FF84 !important;
  border-color: #00FF84 !important;
}

/* Footer links */
.footer-social-list a:hover,
.list-links a:hover {
  color: #00FF84 !important;
}

/* Go to top button */
#go-top a {
  background: #00FF84 !important;
  border-color: #00FF84 !important;
}

/* Home description text - impactant et moderne */
.home-description {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 2.2rem !important;
  line-height: 1.4 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  margin: 2.5rem 0 !important;
  letter-spacing: 0.5px !important;
}

/* S'assurer que le strong a la même taille */
.home-description strong {
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* Ensure all home content text is properly visible */
.home-content h1,
.home-content h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Make sure buttons in hero section are visible */
.home-content .buttons .button {
  margin-top: 2rem;
}

/* Additional overrides for any remaining green elements */
.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span {
  background: #00FF84 !important;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
  border-color: #00FF84 !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 132, 0.25) !important;
}

/* Newsletter signup button */
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: #00FF84 !important;
  border-color: #00FF84 !important;
}

/* Réduire la taille du texte de la newsletter dans le footer */
.footer-subscribe p {
  font-size: 1.4rem !important;
  line-height: 1.5 !important;
  color: #546071 !important;
}

/* Preloader color update */
.oldie #loader {
  background: #00FF84 !important;
}

/* Ensure proper contrast for all interactive elements */
.cta:hover,
.cta:focus {
  background: #00FF84 !important;
  border-color: #00FF84 !important;
  color: #111111 !important;
}

/* Logo Teilen - remplace le logo Dazzle */
.header-logo a {
  background: url("../images/logo-Teilen.png") no-repeat center !important;
  background-size: contain !important;
  width: 200px !important;
  height: 50px !important;
}

/* Footer logo aussi */
.footer-logo {
  background: url("../images/logo-Teilen.png") no-repeat center !important;
  background-size: contain !important;
  width: 160px !important;
  height: 40px !important;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background-color: #ffffff;
  margin: 10% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-in-out;
}

.modal-header {
  background: linear-gradient(135deg, #00FF84, #00e575);
  color: #001024;
  padding: 20px 30px;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.modal-header h2 {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 600;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #001024;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: #ffffff;
}

.modal-body {
  padding: 30px;
}

.modal-body p {
  color: #333333;
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.download-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.download-form input[type="email"] {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.6rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.download-form input[type="email"]:focus {
  border-color: #00FF84;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 132, 0.1);
}

.download-form .button {
  width: 100%;
  padding: 15px;
  font-size: 1.6rem;
  border-radius: 8px;
  margin: 0;
}

.success-message {
  background: #e8f5e8;
  border: 1px solid #00FF84;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.success-message p {
  color: #00a851;
  margin: 0;
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    transform: translateY(-50px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive modal */
@media only screen and (max-width: 768px) {
  .modal-content {
    margin: 20% auto;
    width: 95%;
  }
  
  .modal-header {
    padding: 15px 20px;
  }
  
  .modal-header h2 {
    font-size: 2rem;
  }
  
  .modal-body {
    padding: 20px;
  }
}

/* Fix spacing on mobile: hero buttons and image should not touch */
@media only screen and (max-width: 768px) {
  .home-content .buttons {
    margin-bottom: 2rem !important;
  }
  .home-image-right img {
    margin-top: 1.5rem !important;
  }
}

/* Texte lead plus foncé (bleu foncé) */
.lead {
  color: #001024 !important;
  font-weight: 500;
}

/* Hover simple pour le bouton CTA header - juste la couleur du texte */
.button-primary.cta:hover {
  color: #ffffff !important;
}

/* Réduction de la taille du titre principal pour éviter le retour à la ligne */
.home-content-left h1 {
  font-size: 3.6rem !important;
}

/* Application de la police montserrat-black seulement aux gros titres */
h1, h2, h3 {
  font-family: "montserrat-black", sans-serif !important;
}

/* Cadre CTA en bas de la section about */
.about-bottom-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #001024 0%, #002040 100%);
  margin-top: 4rem;
}

.cta-container {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 3rem;
}

.cta-title {
  color: #ffffff !important;
  font-size: 3.2rem !important;
  line-height: 1.3 !important;
  margin-bottom: 3rem !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-container .button {
  font-size: 1.8rem !important;
  padding: 1.8rem 4rem !important;
  margin-top: 1rem;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* Responsive pour le CTA */
@media only screen and (max-width: 768px) {
  .about-bottom-cta {
    padding: 4rem 0;
  }
  
  .cta-title {
    font-size: 2.6rem !important;
    margin-bottom: 2.5rem !important;
  }
  
  .cta-container {
    padding: 0 2rem;
  }
  
  .cta-container .button {
    font-size: 1.6rem !important;
    padding: 1.5rem 3rem !important;
  }
}

@media only screen and (max-width: 480px) {
  .cta-title {
    font-size: 2.2rem !important;
  }
  
  .cta-container .button {
    width: 100%;
    font-size: 1.5rem !important;
  }
}

/* Appel à l'action final avant le footer */
.final-cta {
  background: linear-gradient(135deg, #00FF84 0%, #00e575 100%);
  padding: 6rem 0;
  text-align: center;
}

.final-cta-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.final-cta h2 {
  color: #001024 !important;
  font-size: 3.4rem !important;
  margin-bottom: 1.5rem !important;
  font-weight: 900 !important;
}

.final-cta p {
  color: #001024 !important;
  font-size: 1.8rem !important;
  margin-bottom: 3rem !important;
  font-weight: 500;
}

.final-cta .button {
  background: #001024 !important;
  border-color: #001024 !important;
  color: #00FF84 !important;
  font-size: 1.8rem !important;
  padding: 1.8rem 4rem !important;
  font-weight: 700 !important;
}

.final-cta .button:hover {
  background: #002040 !important;
  border-color: #002040 !important;
  color: #ffffff !important;
}

/* Footer réduit */
.footer-links {
  list-style: none !important;
  display: flex !important;
  justify-content: center !important;
  gap: 3rem !important;
  margin: 2rem 0 !important;
  padding: 0 !important;
}

.footer-links li a {
  color: #666666 !important;
  font-size: 1.4rem !important;
  text-decoration: none !important;
}

.footer-links li a:hover {
  color: #00FF84 !important;
}

/* Grille de cartes moderne */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3rem auto;
  padding: 2rem 0;
}

.feature-card {
  background: #ffffff;
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.feature-card.left-aligned {
  grid-column: 1;
  text-align: left;
}

.feature-card h3 {
  color: #001024 !important;
  font-size: 3rem !important;
  font-weight: 900 !important;
  margin: 0 0 1rem 0 !important;
  line-height: 1 !important;
}

.feature-card img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #666666;
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 0;
}

/* Section "Rejoignez nous" */
.join-us-section {
  text-align: center;
  margin-top: 2rem;
}

.join-us-section h2 {
  color: #001024 !important;
  font-size: 4rem !important;
  font-weight: 900 !important;
  margin: 0 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Responsive pour les cartes */
@media only screen and (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
  }
  
  .feature-card.centered {
    grid-column: 1;
    max-width: 100%;
  }
  
  .join-us-section h2 {
    font-size: 3rem !important;
  }
  
  .footer-links {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
}

@media only screen and (max-width: 480px) {
  .feature-card {
    padding: 1.2rem;
  }
  
  .feature-card p {
    font-size: 1.3rem;
  }
  
  .join-us-section h2 {
    font-size: 2.5rem !important;
    letter-spacing: 1px;
  }
}

/* Modal styles pour le formulaire de contact */
.close-contact {
  position: absolute;
  right: 20px;
  top: 15px;
  color: #001024;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close-contact:hover,
.close-contact:focus {
  color: #ffffff;
}

.contact-form {
  margin-bottom: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.6rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #00FF84;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 132, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.contact-form .button {
  width: 100%;
  padding: 15px;
  font-size: 1.6rem;
  border-radius: 8px;
  margin: 0;
}

/* Responsive pour l'appel à l'action final */
@media only screen and (max-width: 768px) {
  .final-cta {
    padding: 4rem 0;
  }
  
  .final-cta h2 {
    font-size: 2.8rem !important;
  }
  
  .final-cta p {
    font-size: 1.6rem !important;
  }
}

@media only screen and (max-width: 480px) {
  .final-cta h2 {
    font-size: 2.4rem !important;
  }
  
  .final-cta .button {
    width: 100%;
    font-size: 1.6rem !important;
    padding: 1.5rem 3rem !important;
  }
}

/* ---- Overrides section about/how simple features ---- */
/* Supprimer les traits/pseudo-éléments qui créent un espace au milieu */
#about .about-how-content::before,
#about .about-how-content::after {
  display: none !important;
  content: none !important;
}

/* Centrer et agrandir le titre "Comment ça marche" */
#about .simple-features h2.intro-header {
  text-align: center !important;
  font-size: 3.6rem !important;
  line-height: 1.2 !important;
  margin-bottom: 2.5rem !important;
}

/* Centrer chaque bloc (image + texte) */
#about .simple-features .feature-simple {
  text-align: center !important;
}

/* Harmoniser les images des features */
#about .simple-features .feature-simple img {
  max-width: 120px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem auto;
  display: block;
}

/* Titres des features plus lisibles */
#about .simple-features .feature-simple h3 {
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #001024 !important;
  margin-bottom: 0.6rem !important;
}

/* Texte descriptif des features */
#about .simple-features .feature-simple p {
  color: #52606d;
  font-size: 1.5rem;
  line-height: 1.5;
}

/* ---- Espacement entre sections: Pourquoi, Comment, Rejoignez ---- */
#about .about-intro {
  margin-bottom: 10rem !important;
}

#about .simple-features {
  margin: 8rem 0 !important;
}

/* ---- Join CTA split layout ---- */
#about .join-cta {
  align-items: center;
  margin: 4rem 0 2rem 0;
}

#about .join-cta-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#about .join-cta-content {
  padding-left: 3rem;
}

#about .join-cta-content h2 {
  font-size: 3.2rem !important;
  line-height: 1.2 !important;
  margin: 1.2rem 0 1.2rem 0 !important;
  color: #001024 !important;
}

#about .join-cta-content p {
  font-size: 1.7rem;
  line-height: 1.6;
  color: #3a4756;
  margin-bottom: 2rem;
}

#about .join-cta .button.button-primary,
#about .join-cta-content .button.button-primary {
  padding: 1.4rem 3rem !important;
  font-size: 1.7rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Centrer précisément le texte dans le bouton "Télécharger l'App" sous le titre */
#about .join-us-section .button.button-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media only screen and (max-width: 900px) {
  #about .join-cta-content {
    padding-left: 2rem;
    margin-top: 2rem;
  }
}

@media only screen and (max-width: 768px) {
  #about .join-cta {
    display: block;
  }
  #about .join-cta-content {
    padding-left: 0;
  }
  #about .join-cta-content h2 {
    font-size: 2.6rem !important;
  }
  #about .join-cta-content p {
    font-size: 1.6rem;
  }
}