/* =====================================================
   TECHNO COMPTABLE - STYLES PERSONNALISÉS
   (Tailwind, Bootstrap, Font Awesome, AOS et Swiper sont chargés par CDN dans includes/header.php)
   ===================================================== */

:root {
  --color-primary: #0A4DA2;
  --color-primary-dark: #083a7d;
  --color-secondary: #F7941D;
  --font-poppins: 'Poppins', sans-serif;
  --font-inter: 'Inter', sans-serif;
}


/* Base Reset */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-inter);
  color: #333;
  background-color: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-poppins);
  font-weight: 700;
}

/* Smooth anchor offset for fixed navbar */
section {
  scroll-margin-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* Utility Classes */
.text-primary-brand {
  color: #0A4DA2;
}

.text-secondary-brand {
  color: #F7941D;
}

.bg-primary-brand {
  background-color: #0A4DA2;
}

.bg-secondary-brand {
  background-color: #F7941D;
}

.btn-primary-brand {
  background-color: #0A4DA2;
  color: white;
  transition: all 0.3s ease;
}

.btn-primary-brand:hover {
  background-color: #083a7d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 77, 162, 0.3);
}

.btn-secondary-brand {
  background-color: #F7941D;
  color: white;
  transition: all 0.3s ease;
}

.btn-secondary-brand:hover {
  background-color: #d97d0f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(247, 148, 29, 0.3);
}

/* Hero gradient overlay */
.hero-overlay {
  background: linear-gradient(135deg, rgba(10, 77, 162, 0.92) 0%, rgba(10, 77, 162, 0.75) 50%, rgba(247, 148, 29, 0.65) 100%);
}

/* Card hover effects */
.card-hover {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Section titles underline */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0A4DA2, #F7941D);
  border-radius: 2px;
}

.section-title-left::after {
  left: 0;
  transform: translateX(0);
}

/* Dark Mode */
.dark body {
  background-color: #0f172a;
  color: #e2e8f0;
}

.dark .bg-white {
  background-color: #1e293b !important;
}

.dark .text-gray-600,
.dark .text-gray-700,
.dark .text-gray-800,
.dark .text-slate-600,
.dark .text-slate-700,
.dark .text-slate-800 {
  color: #cbd5e1;
}

.dark .text-gray-900,
.dark .text-slate-900,
.dark .text-black {
  color: #f8fafc;
}

.dark .border-gray-200,
.dark .border-gray-300 {
  border-color: #334155;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
  color: white;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9998;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0A4DA2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(10, 77, 162, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: #F7941D;
  transform: translateY(-3px);
}

/* Pricing highlight */
.price-tag {
  background: linear-gradient(135deg, #F7941D 0%, #e8850f 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-block;
}

/* FAQ Accordion custom */
.accordion-button:not(.collapsed) {
  background-color: rgba(10, 77, 162, 0.08);
  color: #0A4DA2;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(10, 77, 162, 0.25);
}

.dark .accordion-button {
  background-color: #1e293b;
  color: #e2e8f0;
}

.dark .accordion-button:not(.collapsed) {
  background-color: rgba(10, 77, 162, 0.25);
  color: #93c5fd;
}

.dark .accordion-body {
  background-color: #1e293b;
  color: #cbd5e1;
}

/* Navbar transparent to solid */
.navbar-main {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-main.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

.dark .navbar-main.scrolled {
  background-color: rgba(15, 23, 42, 0.98);
}

.navbar-main.scrolled .nav-link {
  color: #333 !important;
}

.dark .navbar-main.scrolled .nav-link {
  color: #e2e8f0 !important;
}

.navbar-main.scrolled .navbar-brand {
  color: #0A4DA2 !important;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
  border-color: #0A4DA2;
  box-shadow: 0 0 0 0.25rem rgba(10, 77, 162, 0.25);
}

/* Swiper pagination customization */
.swiper-pagination-bullet-active {
  background-color: #F7941D !important;
}

/* Gallery grid */
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

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

/* Calendar table */
.calendar-table th {
  background-color: #0A4DA2;
  color: white;
}

.calendar-table tbody tr:hover {
  background-color: rgba(10, 77, 162, 0.05);
}

/* Counter section */
.counter-box {
  text-align: center;
  padding: 2rem 1rem;
}

.counter-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(10, 77, 162, 0.1);
  color: #0A4DA2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 1rem;
}

/* Responsive typography */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 20px;
    right: 20px;
  }
  
  .scroll-top {
    bottom: 85px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* =====================================================
   AJOUTS POUR LA VERSION PHP / HTML / JS
   (remplacent les états gérés avant par React)
   ===================================================== */

/* Navbar : couleurs selon l'état (transparent / défilé) */
.navbar-main .brand-text { color: #fff; }
.navbar-main.scrolled .brand-text { color: #0A4DA2; }
.navbar-main .nav-link { color: rgba(255, 255, 255, 0.9); }
.navbar-main .nav-link:hover { color: #F7941D !important; }
.navbar-main .navbar-toggler-icon { filter: none; }
.navbar-main.scrolled .navbar-toggler-icon { filter: invert(1); }
.dark .navbar-main.scrolled .navbar-toggler-icon { filter: none; }
@media (max-width: 991.98px) {
  .navbar-main .navbar-collapse.show { background: rgba(10, 77, 162, 0.97); padding: 1rem; border-radius: 12px; margin-top: 0.5rem; }
  .navbar-main.scrolled .navbar-collapse.show { background: transparent; padding: 0.5rem 0; }
}

/* Bouton de langue */
.btn-lang { border: 1px solid #fff; color: #fff; }
.navbar-main.scrolled .btn-lang { border-color: #0A4DA2; color: #0A4DA2; }
.dark .navbar-main.scrolled .btn-lang { border-color: #fff; color: #fff; }
.btn-lang:hover { background: #F7941D; border-color: #F7941D !important; color: #fff !important; }

/* Boutons contour */
.btn-hero-outline:hover { background: #fff; color: #0A4DA2; }
.btn-outline-brand { border-color: #0A4DA2; color: #0A4DA2; }
.btn-outline-brand:hover { background: #0A4DA2; color: #fff; border-color: #0A4DA2; }
.dark .btn-outline-brand { border-color: #93c5fd; color: #93c5fd; }
.dark .btn-outline-brand:hover { background: #0A4DA2; color: #fff; }

/* Liens du pied de page / réseaux sociaux */
.footer-link:hover { color: #F7941D !important; }
.social-link { transition: transform 0.3s ease; }
.social-link:hover { transform: translateY(-3px); color: #fff; }

/* Galerie : superposition au survol */
.gallery-item { position: relative; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 77, 162, 0);
  opacity: 0; transition: all 0.3s ease;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay { background: rgba(10, 77, 162, 0.4); opacity: 1; }

/* Lightbox : l'attribut hidden doit rester prioritaire sur display:flex */
.lightbox-overlay[hidden] { display: none; }

/* Swiper (témoignages) */
.testimonials-swiper { padding-bottom: 3rem !important; }
.testimonials-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next { color: #fff; }
.testimonials-swiper .swiper-pagination-bullet { background: #fff; opacity: 0.6; }
.testimonials-swiper .swiper-pagination-bullet-active { opacity: 1; }
.testimonials-swiper .swiper-slide { height: auto; }

/* Hauteur minimale utilisée par le hero */
.min-vh-75 { min-height: 75vh; }
