/* Style Global & Custom Utilities pour Camara Digital Tech */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

html {
  scroll-behavior: smooth;
}

html, body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, ::before, ::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

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

/* Keyframes */
@keyframes pulseSlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* =========================================================================
   MODE CLAIR ABSOLU & UNIVERSEL (OVERRIDE TOTAL DE TOUS LES ÉLÉMENTS)
   ========================================================================= */

html.light,
html.light body,
body.light {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* 1. SECTIONS, HEADER & FOOTER EN MODE CLAIR */
html.light header,
html.light main,
html.light section,
html.light footer,
html.light nav,
html.light #graphisme,
html.light #web,
html.light #reassurance,
html.light #processus,
html.light #simulateur,
html.light #temoignages {
  background-color: #f8fafc !important;
  background-image: none !important;
  color: #0f172a !important;
}

/* 2. SURCHARGE DES BLOCS, CARTES & CONTENEURS (FOND BLANC #ffffff) */
html.light div[class*="bg-slate-"],
html.light section[class*="bg-slate-"],
html.light header[class*="bg-slate-"],
html.light footer[class*="bg-slate-"],
html.light nav[class*="bg-slate-"],
html.light article[class*="bg-slate-"],
html.light a[class*="bg-slate-"],
html.light button[class*="bg-slate-"] {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

/* Cartes individuelles (grilles et conteneurs) */
html.light div[class*="rounded-2xl"],
html.light div[class*="rounded-3xl"],
html.light div[class*="rounded-xl"] {
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Bandeaux alternés (Gris doux #f1f5f9) */
html.light section#reassurance,
html.light section#processus,
html.light .bg-slate-950\/80,
html.light .bg-slate-950\/60,
html.light .bg-slate-900\/90 {
  background-color: #f1f5f9 !important;
}

/* Cartes vedettes & Dégradés surchargés */
html.light .bg-gradient-to-b,
html.light [class*="from-slate-900"],
html.light [class*="via-slate-900"],
html.light [class*="to-slate-950"] {
  background-image: none !important;
  background-color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15) !important;
}

/* 3. TOUS LES TITRES ET TEXTES SOMBRES LISIBLES */
html.light h1, 
html.light h2, 
html.light h3, 
html.light h4, 
html.light h5, 
html.light h6,
html.light p,
html.light span,
html.light li,
html.light label,
html.light td,
html.light th,
html.light [class*="text-white"],
html.light [class*="text-slate-100"],
html.light [class*="text-slate-200"] {
  color: #0f172a !important;
}

html.light [class*="text-slate-300"],
html.light [class*="text-slate-400"] {
  color: #334155 !important;
}

html.light [class*="text-slate-500"] {
  color: #64748b !important;
}

/* Garder les accents verts / émeraudes vibrants */
html.light .text-emerald-400,
html.light .text-emerald-500,
html.light .text-cyan-400 {
  color: #059669 !important;
}

/* 4. TOUTES LES BORDURES EN CLAIR */
html.light [class*="border-slate-"] {
  border-color: #e2e8f0 !important;
}

/* 5. HEADER & NAVIGATION */
html.light header {
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-color: #e2e8f0 !important;
}

html.light header nav a {
  color: #334155 !important;
}

html.light header nav a:hover {
  color: #059669 !important;
  background-color: #f1f5f9 !important;
}

html.light #mobile-menu-dropdown {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light #mobile-menu-dropdown a {
  color: #0f172a !important;
}

html.light #mobile-menu-dropdown a:hover {
  background-color: #f1f5f9 !important;
}

/* 6. SIMULATEUR DE DEVIS */
.sim-main-card {
  border-radius: 24px !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
}

html.light .sim-main-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
}

html.light .sim-col-left {
  border-color: #e2e8f0 !important;
}

@media (max-width: 768px) {
  .sim-col-left {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
    padding-bottom: 1.5rem;
  }
  html.light .sim-col-left {
    border-bottom-color: #e2e8f0 !important;
  }
}

html.light .sim-base-btn {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .sim-base-btn:hover {
  border-color: #10b981 !important;
  background-color: #f0fdf4 !important;
}

html.light .sim-base-btn.bg-emerald-500\/10,
html.light .sim-base-btn[class*="border-emerald-500"] {
  background-color: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}

html.light [data-option-key] {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light [data-option-key]:hover {
  border-color: #10b981 !important;
}

html.light [data-option-key].bg-emerald-500\/10 {
  background-color: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}

/* 7. BOUTONS & INTERACTION */
html.light .theme-toggle-btn {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .theme-toggle-btn:hover {
  background-color: #e2e8f0 !important;
}

html.light a.bg-slate-900,
html.light a[data-wa-generic="true"] {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #047857 !important;
}

html.light a.bg-slate-900:hover,
html.light a[data-wa-generic="true"]:hover {
  background-color: #f8fafc !important;
  border-color: #10b981 !important;
}

html.light a.bg-slate-800.text-emerald-400 {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

html.light a.bg-slate-800.text-emerald-400:hover {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

/* 8. MODALE ADMIN */
html.light #admin-modal > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light #admin-modal .bg-slate-950\/60,
html.light #admin-modal .bg-slate-950\/80,
html.light #admin-modal .bg-slate-950,
html.light #admin-modal .bg-slate-900 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Modale Admin & Formulaire de Réservation */
html.light #admin-modal input,
html.light #reservation input,
html.light #reservation select,
html.light #reservation textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* 9. FOOTER */
html.light footer {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

/* Scrollbar */
html.light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* =========================================================================
   ANIMATIONS & STYLES PREMIUM (ELEMENTOR PRO / WORDPRESS STYLE)
   ========================================================================= */

/* =========================================================================
   ANIMATIONS & STYLES PREMIUM (ELEMENTOR PRO / WORDPRESS / DIVI STYLE)
   ========================================================================= */

/* Scroll Reveal (Montée & Descente - Scroll Down & Up) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Effet Stagger (Décalage progressif) pour les grilles d'offres */
.grid > .reveal-on-scroll:nth-child(1) { transition-delay: 0ms; }
.grid > .reveal-on-scroll:nth-child(2) { transition-delay: 80ms; }
.grid > .reveal-on-scroll:nth-child(3) { transition-delay: 160ms; }
.grid > .reveal-on-scroll:nth-child(4) { transition-delay: 240ms; }
.grid > .reveal-on-scroll:nth-child(5) { transition-delay: 320ms; }
.grid > .reveal-on-scroll:nth-child(6) { transition-delay: 400ms; }

/* Animation Hover Éléviation Fluide (-8px) sur toutes les Cartes */
div[class*="rounded-2xl"],
div[class*="rounded-3xl"],
.sim-option-card,
.sim-base-btn {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

div[class*="rounded-2xl"]:hover,
div[class*="rounded-3xl"]:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(16, 185, 129, 0.65) !important;
  box-shadow: 0 20px 40px -12px rgba(16, 185, 129, 0.25) !important;
}

/* Option Card Hover & Elevation */
.sim-option-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 28px -5px rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.65) !important;
}

/* Active State for Selected Option Card */
.sim-option-card.active-option {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.85) !important;
  box-shadow: 0 14px 32px -8px rgba(16, 185, 129, 0.3) !important;
}

html.light .sim-option-card.active-option {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}

/* Custom Checkbox Styling */
.sim-custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #334155;
  background-color: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.sim-option-card:hover .sim-custom-checkbox {
  border-color: #10b981;
}

.sim-option-card.active-option .sim-custom-checkbox {
  background-color: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

.sim-custom-checkbox svg {
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-option-card.active-option .sim-custom-checkbox svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  color: #020617;
}

html.light .sim-custom-checkbox {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

/* WhatsApp Button Pulsating Ring Effect */
.btn-whatsapp-pulse {
  position: relative;
}

.btn-whatsapp-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.6);
  z-index: -1;
  opacity: 0.7;
  animation: waPulseRing 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes waPulseRing {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.96);
    opacity: 0.8;
  }
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}


