/* Site Theme: panneauxsolaires-batterie.be — "Futuriste énergie" */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --theme-bg: #FFFFFF;
  --theme-bg-alt: #F0F9FF;
  --theme-text: #334155;
  --theme-text-light: #64748B;
  --theme-heading: #0C4A6E;
  --theme-accent: #059669;
  --theme-accent-hover: #047857;
  --theme-accent-secondary: #EAB308;
  --theme-accent-secondary-hover: #CA8A04;
  --theme-card-bg: rgba(255, 255, 255, 0.7);
  --theme-card-border: rgba(14, 165, 233, 0.15);
  --theme-font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --theme-font-body: 'Space Grotesk', -apple-system, sans-serif;
  --theme-radius: 1rem;
  --theme-radius-lg: 1.5rem;
  --theme-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
  --theme-shadow-hover: 0 8px 32px rgba(14, 165, 233, 0.16);
  --theme-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--theme-font-body);
  background-color: var(--theme-bg);
  color: var(--theme-text);
  font-weight: 400;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--theme-font-heading);
  color: var(--theme-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Hero — sky→sun gradient with radial burst */
.hero-section {
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 40%, #FDE68A 75%, #EAB308 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  color: #fff;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: sunPulse 6s ease-in-out infinite;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-section h1 {
  color: #fff;
  font-size: 2.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* Glassmorphism cards */
.card,
.bg-white.rounded-lg,
[class*="shadow"] {
  background: var(--theme-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--theme-card-border);
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow);
  transition: all var(--theme-transition);
}

.card:hover,
.bg-white.rounded-lg:hover {
  box-shadow: var(--theme-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.3);
}

/* Sections */
section:nth-child(even) {
  background: linear-gradient(180deg, var(--theme-bg-alt) 0%, var(--theme-bg) 100%);
}

/* Buttons — gradient sky→yellow */
.btn-primary,
button[type="submit"],
.cta-button {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-secondary)) !important;
  color: #fff !important;
  border: none;
  border-radius: 3rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  transition: all var(--theme-transition);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::after,
button[type="submit"]::after,
.cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover::after,
button[type="submit"]:hover::after,
.cta-button:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover,
button[type="submit"]:hover,
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

/* Energy beam decoration */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--theme-accent-secondary), transparent);
  animation: energyBeam 3s ease-in-out infinite;
}

@keyframes energyBeam {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Stat numbers */
.stat-number,
.text-3xl.font-bold,
.text-4xl.font-bold {
  background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Links */
a:not(.btn-primary):not([class*="bg-"]) {
  color: var(--theme-accent);
  transition: color var(--theme-transition);
}

a:not(.btn-primary):not([class*="bg-"]):hover {
  color: var(--theme-accent-secondary);
}

/* Form inputs */
input, select, textarea {
  border: 1px solid var(--theme-card-border);
  border-radius: var(--theme-radius);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  transition: all var(--theme-transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  outline: none;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #0C4A6E, #1E3A5F) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-section { padding: 3rem 1rem; }
  .hero-section h1 { font-size: 2rem; }
  .hero-section::before { width: 300px; height: 300px; }
  .card:hover { transform: none; }
}

@media (min-width: 1024px) {
  .hero-section { padding: 6rem 2rem; }
  .hero-section h1 { font-size: 3.25rem; }
}


/* === Nav & Template Color Harmonization === */
nav a[href="#devis-form"] {
  background-color: var(--theme-accent) !important;
  color: #fff !important;
  border-color: var(--theme-accent) !important;
}
nav a[href="#devis-form"]:hover {
  background-color: var(--theme-accent-hover) !important;
  border-color: var(--theme-accent-hover) !important;
}

