/* WattsUp - Styles spécifiques */

/* Couleurs turquoise personnalisées */
:root {
  --turquoise-50: #f0fdfa;
  --turquoise-100: #ccfbf1;
  --turquoise-200: #99f6e4;
  --turquoise-300: #5eead4;
  --turquoise-400: #2dd4bf;
  --turquoise-500: #14b8a6;
  --turquoise-600: #0d9488;
  --turquoise-700: #0f766e;
  --turquoise-800: #115e59;
  --turquoise-900: #134e4a;
}

/* Section Hero - Styles de base pour assurer le contraste */
.hero-section {
  background: linear-gradient(135deg, var(--turquoise-700), var(--turquoise-900)) !important;
  color: white !important;
  min-height: 80vh;
}

.hero-section,
.hero-section h1,
.hero-section p,
.hero-section span,
.hero-section div {
  color: white !important;
}

.hero-section .text-turquoise-200 {
  color: #99f6e4 !important;
}

.hero-section .text-turquoise-300 {
  color: #5eead4 !important;
}

.hero-section .bg-turquoise-500 {
  background-color: var(--turquoise-500) !important;
}

.hero-section .border-turquoise-400 {
  border-color: var(--turquoise-400) !important;
}

.hero-section .border-turquoise-300 {
  border-color: var(--turquoise-300) !important;
}

.hero-section .border-turquoise-200 {
  border-color: var(--turquoise-200) !important;
}

/* Forcer le fond turquoise même si Tailwind ne fonctionne pas */
.hero-section {
  background: #0f766e !important;
  background: linear-gradient(135deg, #0f766e, #134e4a) !important;
}

/* Styles spécifiques pour le contenu principal */
.hero-section h1 {
  color: white !important;
  font-size: 4rem !important;
  font-weight: 800 !important;
}

.hero-section .hero-title {
  color: white !important;
}

.hero-section .hero-subtitle {
  color: #5eead4 !important;
}

.hero-section .hero-description {
  color: rgba(255, 255, 255, 0.9) !important;
}

.hero-section .hero-badge {
  background-color: rgba(20, 184, 166, 0.3) !important;
  border-color: rgba(45, 212, 191, 0.4) !important;
  color: white !important;
}

/* Styles pour les boutons d'action */
.hero-section .btn-white {
  background-color: white !important;
  color: #0f766e !important;
  border: none !important;
  font-weight: bold !important;
}

.hero-section .btn-white:hover {
  background-color: #f0fdfa !important;
  color: #134e4a !important;
  transform: translateY(-2px) !important;
}

/* En-têtes modernes - Design sobre et compact */
.bg-gradient-to-r.from-turquoise-dark.to-turquoise-600 {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.bg-gradient-to-r.from-turquoise-600.to-turquoise-dark {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Styles modernes pour les en-têtes de pages */
.modern-header {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) !important;
  padding: 2rem 0 !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Effet subtil d'overlay */
.modern-header::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  pointer-events: none !important;
}

/* Texte optimisé pour la lisibilité */
.bg-gradient-to-r.from-turquoise-dark.to-turquoise-600,
.bg-gradient-to-r.from-turquoise-600.to-turquoise-dark,
.modern-header {
  color: white !important;
}

.bg-gradient-to-r.from-turquoise-dark.to-turquoise-600 *,
.bg-gradient-to-r.from-turquoise-600.to-turquoise-dark *,
.modern-header * {
  color: white !important;
}

/* Titres modernes et compacts */
.modern-header h1 {
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 0.5rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

@media (min-width: 768px) {
  .modern-header h1 {
    font-size: 2.5rem !important;
  }
}

/* Descriptions plus subtiles */
.modern-header p {
  font-size: 1rem !important;
  opacity: 0.9 !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

@media (min-width: 768px) {
  .modern-header p {
    font-size: 1.125rem !important;
  }
}

/* Liens de retour modernisés */
.modern-header .breadcrumb-link {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.5rem 1rem !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modern-header .breadcrumb-link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Icônes de catégorie modernisées */
.modern-header .category-icon {
  width: 3rem !important;
  height: 3rem !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 0.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 1rem !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Suppression des éléments décoratifs trop voyants */
.modern-header .decorative-element {
  display: none !important;
}

/* Barre de soulignement moderne */
.modern-header .title-underline {
  position: absolute !important;
  bottom: -2px !important;
  left: 0 !important;
  width: 3rem !important;
  height: 3px !important;
  background: #FFD100 !important;
  border-radius: 2px !important;
}

/* Responsive - version mobile encore plus compacte */
@media (max-width: 767px) {
  .modern-header {
    padding: 1.5rem 0 !important;
  }
  
  .modern-header h1 {
    font-size: 1.75rem !important;
  }
  
  .modern-header .category-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}

.hero-section .btn-outline {
  background-color: transparent !important;
  color: white !important;
  border: 2px solid white !important;
}

.hero-section .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

/* Animation styles */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Hero section styles */
.hero-animation-pulse {
    animation-duration: 6s;
}

.hero-animation-pulse-slow {
    animation-duration: 8s;
}

.hero-badge-animation {
    animation-duration: 3s;
}

.scroll-indicator-animation {
    animation-duration: 2s;
}

/* Database cards */
.database-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top-width: 4px;
    overflow: hidden;
}

.database-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.25rem);
}

.database-card-content {
    padding: 2rem;
}

.database-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.database-icon i {
    font-size: 1.875rem;
}

.database-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.database-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.database-description {
    color: #4b5563;
    margin-bottom: 1.5rem;
    text-align: center;
}

.database-features {
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.database-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.database-features li i {
    margin-right: 0.5rem;
}

.database-action {
    text-align: center;
}

/* Border colors */
.border-turquoise {
    border-top-color: #14b8a6;
}

.border-green {
    border-top-color: #22c55e;
}

.border-blue {
    border-top-color: #3b82f6;
}

.border-purple {
    border-top-color: #8b5cf6;
}

.border-yellow {
    border-top-color: #eab308;
}

/* Button styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: scale(1.05);
}

/* Gradient backgrounds */
.bg-gradient-turquoise {
    background-image: linear-gradient(to right, #0d9488, #14b8a6);
}

.bg-gradient-green {
    background-image: linear-gradient(to right, #16a34a, #22c55e);
}

.bg-gradient-blue {
    background-image: linear-gradient(to right, #2563eb, #3b82f6);
}

.bg-gradient-purple {
    background-image: linear-gradient(to right, #7c3aed, #8b5cf6);
}

.bg-gradient-yellow {
    background-image: linear-gradient(to right, #ca8a04, #eab308);
}

/* Feature section */
.feature-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.25rem;
}

/* Testimonial section */
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 2rem;
}

/* FAQ section */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: white;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background-color: white;
}

.faq-question h3 {
    margin: 0;
}

.faq-answer {
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.faq-answer p {
    margin: 0;
}

/* Tags section */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#toggle-tags {
    position: relative;
    overflow: hidden;
}

#toggle-tags::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

#toggle-tags:hover::before {
    transform: translateX(100%);
}

.testimonial-card {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Styles pour les liens spéciaux du footer */
.special-footer-link {
    display: inline-block;
    position: relative;
    z-index: 9999;
}

/* Styles du menu de navigation */
/* Amélioration du comportement du sous-menu */
.nav-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    padding: 8px 0;
    border: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: fixed;
    z-index: 9999;
    max-height: 80vh;
    overflow-y: auto;
    width: 250px;
    background-color: white;
    border-radius: 8px;
}

.nav-dropdown-container:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Maintenir le menu visible */
.nav-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Augmenter la zone de détection */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Style des éléments du menu */
.nav-dropdown a {
    position: relative;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-dropdown a:hover {
    border-left: 3px solid #0694a2;
    background-color: rgba(6, 148, 162, 0.1);
}

/* Indicateur visuel pour montrer que le menu est cliquable */
#wattsup-menu > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 9998;
}

#wattsup-menu:hover > a::after,
#wattsup-menu.active > a::after {
    opacity: 1;
}

.testimonial-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background-color: white;
}

.testimonial-indicator.active {
    opacity: 1;
}

.testimonial-indicator.inactive {
    opacity: 0.4;
}

/* FAQ section */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

.faq-answer {
    padding-top: 1rem;
    color: #4b5563;
}

/* CTA section */
.cta-section {
    background-image: linear-gradient(135deg, #0f766e, #0d9488);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .database-features {
        padding-left: 0;
    }
    
    .database-features li {
        justify-content: center;
    }
}
