/* =====================================================
   SUNCHARGE — CSS PRINCIPAL
   Typographie : Syne (titres) + DM Sans (corps)
   Palette : #0F172A dark, #F59E0B soleil, #10B981 charge
   ===================================================== */

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

:root {
  --sun: #F59E0B;
  --sun-pale: #FEF3C7;
  --sun-mid: #FDE68A;
  --charge: #10B981;
  --charge-dark: #059669;
  --charge-pale: #D1FAE5;
  --dark: #0F172A;
  --mid: #1E293B;
  --slate: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --tint: #F1F5F9;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; }
em { font-style: normal; }

/* =================== NAV =================== */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 70px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
#nav.nav-dark { background: rgba(15,23,42,0.97); border-bottom-color: #1E293B; }

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.25rem;
  color: var(--dark);
}
.nav-dark .logo { color: white; }
.logo em { color: var(--charge); }
.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--sun), var(--charge));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

#nav ul { display: flex; align-items: center; gap: 28px; list-style: none; }
#nav ul a {
  text-decoration: none; color: var(--muted);
  font-size: 0.875rem; font-weight: 500;
  transition: color .2s;
}
#nav ul a:hover { color: var(--dark); }
.nav-dark #nav ul a { color: #94A3B8; }
.nav-dark #nav ul a:hover { color: white; }

.nav-pill {
  background: linear-gradient(135deg, var(--sun), var(--charge)) !important;
  color: white !important; padding: 8px 20px;
  border-radius: 99px; font-weight: 700 !important;
  font-size: 0.82rem !important;
  transition: opacity .2s !important;
}
.nav-pill:hover { opacity: .88; }
.nav-pill.active { opacity: 1; }

/* =================== HERO =================== */
.hero {
  min-height: 100vh;
  padding: 110px 6% 80px;
  background: linear-gradient(165deg, #FFFBEB 0%, #ECFDF5 45%, #EFF6FF 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.15), transparent 70%);
  top: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(16,185,129,0.12), transparent 70%);
  bottom: -80px; left: -80px;
  animation: float 11s ease-in-out infinite reverse;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-30px)} }

.hero-inner {
  max-width: 1240px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
}

.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sun-pale); border: 1px solid var(--sun-mid);
  color: #92400E; font-size: 0.78rem; font-weight: 600;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 24px;
}
.chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sun);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800; color: var(--dark);
  margin-bottom: 22px;
}
.grad-text {
  background: linear-gradient(135deg, var(--sun) 20%, var(--charge) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem; color: var(--muted);
  margin-bottom: 36px; max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--sun), #F97316);
  color: white; font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 14px; text-decoration: none;
  box-shadow: 0 6px 24px rgba(245,158,11,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(245,158,11,.4); }

.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--dark); font-weight: 600;
  padding: 14px 28px; border-radius: 14px; text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color .2s, transform .2s;
}
.btn-hero-ghost:hover { border-color: var(--charge); transform: translateY(-2px); }

.hero-trust {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--muted); align-items: center;
}
.hero-trust span { display: flex; align-items: center; gap: 5px; }

/* Hero Visual */
.hero-visual { display: flex; flex-direction: column; gap: 12px; }

.hv-card {
  background: white; border-radius: 20px; padding: 22px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform .3s, box-shadow .3s;
}
.hv-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.hv-main { }
.hv-header { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.hv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--charge); }
.hv-big { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; }
.hv-big span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.hv-sub { font-size: 0.78rem; color: var(--muted); margin-bottom: 16px; margin-top: 2px; }

.hv-bars {
  display: flex; gap: 5px; align-items: flex-end;
  height: 80px;
}
.hv-bar {
  flex: 1; height: var(--h);
  background: linear-gradient(to top, var(--charge), var(--sun));
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: opacity .2s;
}
.hv-bar:hover { opacity: .8; }
.hv-bar span {
  position: absolute; bottom: -16px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem; color: var(--muted);
}

.hv-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hv-mini { padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hv-mini-icon { font-size: 1.4rem; }
.hv-mini-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.hv-mini-check { font-size: 0.7rem; font-weight: 700; color: var(--charge); }

/* =================== STATS BAND =================== */
.stats-band { background: var(--dark); padding: 52px 6%; }
.stats-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around;
  flex-wrap: wrap; gap: 20px;
}
.stat-item { text-align: center; }
.stat-n {
  display: block; font-family: 'Syne', sans-serif;
  font-size: 2.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--sun), var(--charge));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-l { color: #64748B; font-size: 0.82rem; margin-top: 2px; display: block; }
.stat-div { width: 1px; height: 48px; background: #1E293B; }

/* =================== SECTIONS =================== */
.section { padding: 96px 6%; }
.section-inner { max-width: 1240px; margin: 0 auto; }
.section-dark { background: var(--dark); }
.section-tint { background: var(--tint); }

.eyebrow {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--charge); margin-bottom: 14px;
}
.eyebrow.light { color: #10B981; }

.section-inner h2, h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; margin-bottom: 16px;
  color: var(--dark);
}
.section-dark h2, .section-dark .eyebrow { color: white; }
.section-dark h2 em { color: var(--sun); }
h2 em { color: var(--charge); }

.section-sub { color: var(--muted); font-size: 1rem; max-width: 560px; margin-bottom: 48px; }

/* =================== SERVICES =================== */
.srv-grid {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.srv-card {
  border-radius: 24px; padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.srv-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.srv-solar { background: linear-gradient(145deg, #FFFBEB, #FEF3C7); border: 1px solid var(--sun-mid); }
.srv-irve  { background: linear-gradient(145deg, #ECFDF5, #D1FAE5); border: 1px solid #6EE7B7; }
.srv-bat   { background: linear-gradient(145deg, #EFF6FF, #DBEAFE); border: 1px solid #93C5FD; }
.srv-num { font-family: 'Syne',sans-serif; font-size: 3.5rem; font-weight: 900; opacity: .08; position: absolute; top: 12px; right: 20px; line-height:1; }
.srv-ico { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.srv-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 12px; }
.srv-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.srv-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.srv-tags span { font-size: 0.7rem; font-weight: 600; background: white; padding: 4px 12px; border-radius: 99px; color: var(--slate); }

/* =================== STEPS =================== */
.steps {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.step { color: white; }
.step-n {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne',sans-serif; font-weight: 800; font-size: 1.1rem;
  margin-bottom: 18px;
}
.steps .step:nth-child(1) .step-n { background: linear-gradient(135deg,var(--sun),#F97316); }
.steps .step:nth-child(2) .step-n { background: linear-gradient(135deg,var(--charge),#0EA5E9); }
.steps .step:nth-child(3) .step-n { background: linear-gradient(135deg,#8B5CF6,#EC4899); }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p  { font-size: 0.87rem; color: #94A3B8; line-height: 1.7; }

/* =================== PVGIS WIDGET =================== */
.pvgis-widget {
  background: white;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
  padding: 40px;
  margin-top: 48px;
}
.pvgis-form label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--dark); margin-bottom: 6px;
}
.pvf-main { margin-bottom: 20px; }
.pvf-search {
  display: flex; gap: 10px;
}
.pvf-search input {
  flex: 1; padding: 13px 18px;
  border: 2px solid var(--border); border-radius: 13px;
  font-family: inherit; font-size: 0.95rem; color: var(--dark);
  background: var(--bg); outline: none;
  transition: border-color .2s;
}
.pvf-search input:focus { border-color: var(--charge); background: white; }
.pvf-search button, #pvgis-btn {
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--sun), var(--charge));
  color: white; border: none; border-radius: 13px;
  font-family: inherit; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.pvf-search button:hover, #pvgis-btn:hover { opacity: .9; transform: translateY(-1px); }
.pvf-params {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}
.pvf-group input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.88rem; color: var(--dark);
  background: var(--bg); outline: none;
  transition: border-color .2s;
}
.pvf-group input:focus { border-color: var(--charge); background: white; }

.pvgis-error { color: #DC2626; font-size: 0.83rem; margin-top: 12px; min-height: 20px; }

.pvgis-loading {
  display: flex; align-items: center; gap: 12px;
  padding: 32px 0; color: var(--muted); font-size: 0.9rem;
  justify-content: center;
}
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid #E2E8F0; border-top-color: var(--charge);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pvgis-results { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 32px; }
.pvr-kpis {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px;
  margin-bottom: 28px;
}
.pvr-kpi {
  background: var(--bg); border-radius: 16px; padding: 20px;
  border: 1px solid var(--border); text-align: center;
}
.pvr-main { background: linear-gradient(135deg, var(--sun-pale), var(--charge-pale)); }
.pvr-val {
  font-family: 'Syne',sans-serif; font-size: 1.9rem; font-weight: 800;
  background: linear-gradient(135deg, var(--sun), var(--charge));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pvr-lab { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.pvr-chart-wrap { background: var(--bg); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
.pvr-note { font-size: 0.75rem; color: #94A3B8; margin-bottom: 24px; }
.pvr-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--sun), var(--charge));
  color: white; font-weight: 700; padding: 14px 28px;
  border-radius: 13px; text-decoration: none; font-size: 0.9rem;
  transition: opacity .2s, transform .2s;
}
.pvr-cta:hover { opacity: .9; transform: translateY(-1px); }

/* =================== TRUST GRID =================== */
.trust-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
}
.tc {
  background: white; border-radius: 20px; padding: 28px 22px;
  border: 1px solid var(--border); text-decoration: none; color: var(--dark);
  position: relative; overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  display: flex; flex-direction: column; gap: 8px;
}
.tc:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.tc-ico { font-size: 2rem; }
.tc strong { font-family: 'Syne',sans-serif; font-size: 0.95rem; font-weight: 700; }
.tc p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; flex: 1; }
.tc-arr { font-size: 1.2rem; color: var(--charge); font-weight: 700; }

/* =================== AUDIENCE =================== */
.aud-grid {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
}
.aud-card {
  background: var(--bg); border-radius: 24px; padding: 36px 30px;
  border: 1px solid var(--border); position: relative;
  transition: box-shadow .3s, transform .3s;
}
.aud-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.09); transform: translateY(-4px); }
.aud-featured {
  background: white;
  box-shadow: 0 4px 24px rgba(16,185,129,0.15);
  border-color: #6EE7B7;
}
.aud-badge {
  position: absolute; top: -12px; left: 28px;
  background: linear-gradient(135deg, var(--sun), var(--charge));
  color: white; font-size: 0.72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 99px;
}
.aud-ico { font-size: 2.4rem; margin-bottom: 14px; }
.aud-card h3 { font-family: 'Syne',sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.aud-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.aud-card ul li { font-size: 0.86rem; display: flex; align-items: flex-start; gap: 8px; }
.aud-card ul li::before { content: '✓'; color: var(--charge); font-weight: 700; flex-shrink: 0; }
.aud-link { color: var(--charge); font-weight: 700; font-size: 0.87rem; text-decoration: none; }
.aud-link:hover { text-decoration: underline; }

/* =================== CTA SECTION =================== */
.cta-section {
  padding: 96px 6%;
  background: linear-gradient(135deg, var(--dark), var(--mid));
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-orb {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 70%);
}
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.9rem,3.5vw,2.8rem); color: white; margin-bottom: 14px; }
.cta-inner p { color: #94A3B8; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, var(--sun), var(--charge));
  color: white; font-weight: 700; padding: 15px 32px;
  border-radius: 14px; text-decoration: none; font-size: 0.95rem;
  box-shadow: 0 6px 28px rgba(245,158,11,.3);
  transition: transform .2s, opacity .2s;
}
.btn-cta:hover { transform: translateY(-2px); opacity: .92; }
.btn-cta-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,.2);
  font-weight: 600; padding: 15px 32px;
  border-radius: 14px; text-decoration: none; font-size: 0.95rem;
  transition: border-color .2s, transform .2s;
}
.btn-cta-ghost:hover { border-color: var(--charge); transform: translateY(-2px); }

/* =================== FOOTER =================== */
footer {
  background: var(--dark); color: #64748B;
  padding: 64px 6% 32px;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; gap: 60px; flex-wrap: wrap;
  padding-bottom: 48px; border-bottom: 1px solid #1E293B;
}
.footer-brand { flex: 0 0 280px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: #475569; margin-bottom: 16px; }
.footer-emails { display: flex; flex-direction: column; gap: 4px; }
.footer-emails a { color: var(--charge); font-size: 0.83rem; text-decoration: none; }
.footer-links { flex: 1; display: flex; gap: 48px; flex-wrap: wrap; }
.fl-col { display: flex; flex-direction: column; gap: 10px; }
.fl-col strong { font-family: 'Syne',sans-serif; font-size: 0.85rem; font-weight: 700; color: white; margin-bottom: 4px; }
.fl-col a { font-size: 0.82rem; color: #475569; text-decoration: none; transition: color .2s; }
.fl-col a:hover { color: var(--charge); }
.footer-bottom {
  max-width: 1240px; margin: 28px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 0.75rem; color: #334155;
}

/* =================== CONTACT PAGE =================== */
.contact-page {
  min-height: 100vh; padding-top: 70px;
  display: grid; grid-template-columns: 1fr 1fr;
}
.contact-left {
  background: linear-gradient(165deg, var(--dark), var(--mid));
  padding: 80px 6%;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-left h1 { font-size: clamp(2rem,4vw,3rem); color: white; margin-bottom: 16px; }
.contact-left h1 em { color: var(--sun); }
.contact-left > p { color: #94A3B8; font-size: 0.95rem; margin-bottom: 40px; }
.contact-infos { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.ci { display: flex; gap: 14px; align-items: flex-start; }
.ci-ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.ci div strong { display: block; color: white; font-size: 0.85rem; margin-bottom: 2px; }
.ci div a, .ci div span { color: #64748B; font-size: 0.82rem; text-decoration: none; }
.ci div a:hover { color: var(--charge); }
.contact-inst-box { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); border-radius: 18px; padding: 24px; }
.contact-inst-box strong { color: white; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.contact-inst-box p { color: #94A3B8; font-size: 0.83rem; margin-bottom: 14px; }
.contact-inst-box a { background: var(--charge); color: white; font-size: 0.82rem; font-weight: 700; padding: 8px 16px; border-radius: 8px; text-decoration: none; }

.contact-right {
  background: var(--bg);
  padding: 80px 6%;
  display: flex; align-items: center; justify-content: center;
}
.contact-form-card {
  background: white; border-radius: 28px; padding: 44px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 48px rgba(0,0,0,0.08);
  width: 100%; max-width: 520px;
}
.contact-form-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); font-size: 0.82rem; margin-bottom: 28px; }

.profil-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.ptb {
  padding: 13px; border-radius: 13px;
  border: 2px solid var(--border); background: var(--bg);
  cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--muted); transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ptb:hover { border-color: var(--charge); }
.ptb.active { border-color: var(--charge); background: var(--charge-pale); color: #065F46; }

.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 0.79rem; font-weight: 600; margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--border); border-radius: 11px;
  font-family: inherit; font-size: 0.88rem; color: var(--dark);
  background: var(--bg); outline: none; transition: border-color .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--charge); background: white; }
.fg textarea { resize: vertical; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-submit {
  width: 100%; padding: 14px; margin-top: 4px;
  background: linear-gradient(135deg, var(--sun), var(--charge));
  color: white; font-weight: 700; font-size: 0.95rem;
  border: none; border-radius: 13px; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-submit:hover { opacity: .9; transform: translateY(-1px); }
.form-note { text-align: center; margin-top: 14px; font-size: 0.77rem; color: var(--muted); }
.form-note a { color: var(--charge); text-decoration: none; font-weight: 600; }

/* =================== DASHBOARD =================== */
.dash-body { background: #0B1120; }

.dash-layout {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: 100vh; padding-top: 70px;
}
.dash-sidebar {
  background: var(--dark); padding: 32px 22px;
  border-right: 1px solid #1E293B;
  display: flex; flex-direction: column; gap: 24px;
}
.dash-logo {
  font-family: 'Syne',sans-serif; font-size: 1rem; font-weight: 800;
  color: white; line-height: 1.3; padding-bottom: 20px;
  border-bottom: 1px solid #1E293B;
}
.dash-logo em { color: var(--sun); font-style: normal; display: block; }
.dash-nav { display: flex; flex-direction: column; gap: 6px; }
.dn-item {
  display: block; padding: 11px 16px; border-radius: 12px;
  color: #64748B; text-decoration: none; font-size: 0.87rem; font-weight: 500;
  transition: all .2s;
}
.dn-item:hover, .dn-item.active { background: #1E293B; color: white; }
.dash-api-info {
  margin-top: auto; padding: 18px; background: #0F172A;
  border-radius: 14px; border: 1px solid #1E293B;
}
.dash-api-info strong { color: white; font-size: 0.85rem; display: block; margin-bottom: 6px; }
.dash-api-info p { color: #475569; font-size: 0.76rem; }

.dash-main { padding: 28px; background: #0B1120; }

.dash-kpis { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.kpi {
  flex: 1 1 130px; background: var(--dark);
  border-radius: 16px; padding: 18px 20px;
  border: 1px solid #1E293B;
}
.kpi-n {
  font-family: 'Syne',sans-serif; font-size: 2rem; font-weight: 800;
  display: block; color: white;
}
.kpi-l { font-size: 0.75rem; color: #475569; }
.kpi-ok .kpi-n { color: var(--charge); }
.kpi-warn .kpi-n { color: var(--sun); }
.kpi-danger .kpi-n { color: #EF4444; }
.kpi-pending .kpi-n { color: #64748B; }

.dash-filters {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.dash-filters input {
  padding: 9px 16px; border-radius: 10px;
  border: 1px solid #1E293B; background: var(--dark);
  color: white; font-family: inherit; font-size: 0.85rem; outline: none;
  min-width: 240px;
}
.dash-filters input::placeholder { color: #475569; }
.filter-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.fb {
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid #1E293B; background: var(--dark);
  color: #64748B; font-family: inherit; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.fb:hover, .fb.active { background: #1E293B; color: white; border-color: var(--charge); }

.inst-list { display: flex; flex-direction: column; gap: 10px; }
.inst-row {
  background: var(--dark); border-radius: 16px; padding: 18px 22px;
  border: 1px solid #1E293B;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  transition: border-color .2s;
}
.inst-row:hover { border-color: #334155; }
.inst-type {
  font-size: 0.72rem; font-weight: 700; padding: 4px 12px;
  border-radius: 7px; flex-shrink: 0;
}
.t-PV      { background:#422006; color:#FDE68A; }
.t-IRVE    { background:#052e16; color:#6EE7B7; }
.t-BAT     { background:#1e3a5f; color:#93C5FD; }
.t-PVBAT   { background:#2e1065; color:#C4B5FD; }
.t-IRVEBAT { background:#4a044e; color:#F0ABFC; }
.inst-info { flex: 1 1 200px; }
.inst-nom { font-family:'Syne',sans-serif; font-weight:700; color:white; font-size:0.95rem; }
.inst-meta { color:#475569; font-size:0.76rem; margin-top:3px; }
.inst-certif { color:#64748B; font-size:0.73rem; }
.inst-status { flex-shrink:0; }
.status-badge {
  font-size: 0.73rem; font-weight: 700; padding: 5px 13px;
  border-radius: 8px; display: inline-block;
}
.s-ok      { background:#052e16; color:#6EE7B7; }
.s-vigilance{background:#422006; color:#FDE68A; }
.s-risque  { background:#450a0a; color:#FCA5A5; }
.s-arnaque { background:#1a0000; color:#EF4444; }
.s-null    { background:#1E293B; color:#475569; }
.inst-actions { display:flex; gap:8px; flex-shrink:0; }
.btn-verif {
  padding: 8px 16px; background:#1E293B; color:white;
  border:none; border-radius:9px; font-family:inherit;
  font-size:0.78rem; font-weight:600; cursor:pointer;
  transition: background .2s;
}
.btn-verif:hover { background:#334155; }
.btn-del {
  padding: 8px 12px; background:#450a0a; color:#EF4444;
  border:none; border-radius:9px; cursor:pointer; font-size:0.78rem;
  transition: background .2s;
}
.btn-del:hover { background:#7f1d1d; }

/* Stats charts */
.stats-charts { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.sc-card { background:var(--dark); border-radius:18px; padding:24px; border:1px solid #1E293B; }
.sc-card h3 { color:white; font-size:0.9rem; font-weight:700; margin-bottom:16px; }

/* Add form */
.add-form { background:var(--dark); border-radius:20px; padding:32px; border:1px solid #1E293B; max-width:700px; }
.add-form h3 { color:white; font-family:'Syne',sans-serif; font-size:1.1rem; margin-bottom:24px; }
.add-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:24px; }
.fg-full { grid-column:span 2; }
.add-form .fg label { color:#94A3B8; }
.add-form .fg input, .add-form .fg select, .add-form .fg textarea {
  background:#0F172A; border-color:#1E293B; color:white;
}
.add-form .fg input:focus, .add-form .fg select:focus { border-color:var(--charge); background:#0B1120; }
.add-form .fg textarea { resize:vertical; min-height:70px; }
.btn-primary {
  display:inline-flex; align-items:center; gap:8px;
  background:linear-gradient(135deg,var(--sun),var(--charge));
  color:white; font-weight:700; padding:13px 26px;
  border-radius:12px; text-decoration:none; font-size:0.9rem;
  border:none; cursor:pointer; transition:opacity .2s,transform .2s;
}
.btn-primary:hover { opacity:.9; transform:translateY(-1px); }

/* Modal */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.75);
  z-index:300; display:flex; align-items:center; justify-content:center;
  padding:20px; backdrop-filter:blur(4px);
}
.modal-box {
  background:var(--dark); border-radius:24px; padding:36px;
  max-width:640px; width:100%; max-height:90vh; overflow-y:auto;
  border:1px solid #1E293B;
  box-shadow:0 24px 80px rgba(0,0,0,0.5);
}
.modal-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:28px; }
.modal-title { font-family:'Syne',sans-serif; font-weight:800; color:white; font-size:1.1rem; }
.modal-sub { color:#475569; font-size:0.8rem; margin-top:3px; }
.modal-close { background:#1E293B; border:none; color:white; border-radius:8px; padding:7px 12px; cursor:pointer; font-size:0.9rem; }
.modal-section { margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid #1E293B; }
.modal-section-title { font-size:0.78rem; font-weight:700; color:#64748B; text-transform:uppercase; letter-spacing:.08em; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.signals-badge { background:#450a0a; color:#FCA5A5; border-radius:6px; padding:2px 8px; font-size:0.72rem; }

/* Pappers result */
.pappers-result { background:#0F172A; border-radius:12px; padding:16px; margin-bottom:14px; min-height:60px; }
.btn-pappers {
  padding:9px 18px; background:linear-gradient(135deg,#6366F1,#8B5CF6);
  color:white; border:none; border-radius:10px;
  font-family:inherit; font-size:0.83rem; font-weight:700; cursor:pointer;
  transition:opacity .2s;
}
.btn-pappers:hover { opacity:.9; }

/* Check links */
.check-links { display:flex; flex-direction:column; gap:8px; }
.check-link-item {
  display:flex; align-items:center; gap:12px;
  background:#0F172A; border-radius:12px; padding:12px 16px;
  border:1px solid #1E293B;
}
.check-link-item input[type="checkbox"] { cursor:pointer; }
.check-link-item label { flex:1; color:#94A3B8; font-size:0.83rem; cursor:pointer; }
.check-link-item a {
  background:#1E293B; color:white; padding:6px 13px;
  border-radius:8px; font-size:0.75rem; font-weight:600;
  text-decoration:none; white-space:nowrap; transition:background .2s;
}
.check-link-item a:hover { background:#334155; }

/* Signals */
.signals-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.signal-item {
  display:flex; align-items:center; gap:8px;
  background:#0F172A; border-radius:10px; padding:9px 12px;
  border:1px solid #1E293B; cursor:pointer;
  transition:border-color .2s, background .2s;
}
.signal-item.active { background:#450a0a; border-color:#EF4444; }
.signal-item label { font-size:0.79rem; color:#94A3B8; cursor:pointer; flex:1; }
.signal-item.active label { color:#FCA5A5; }
.signal-item input { cursor:pointer; }

/* Statut buttons */
.statut-btns { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.sb {
  padding:9px 16px; border-radius:10px; border:2px solid transparent;
  font-family:inherit; font-size:0.8rem; font-weight:700; cursor:pointer;
  transition:all .2s;
}
.sb-ok      { background:#052e16; color:#6EE7B7; }
.sb-warn    { background:#422006; color:#FDE68A; }
.sb-danger  { background:#450a0a; color:#FCA5A5; }
.sb-arnaque { background:#1a0000; color:#EF4444; }
.sb.selected { border-color:white; transform:scale(1.04); }
.auto-calc { font-size:0.75rem; color:#475569; margin-top:6px; }

.modal-notes { margin-bottom:20px; }
.modal-notes label { display:block; font-size:0.78rem; font-weight:600; color:#64748B; text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
.modal-notes textarea {
  width:100%; padding:11px 14px; background:#0F172A;
  border:1.5px solid #1E293B; border-radius:11px;
  color:white; font-family:inherit; font-size:0.85rem; resize:vertical;
  outline:none;
}
.modal-notes textarea:focus { border-color:var(--charge); }
.btn-save-verif {
  width:100%; padding:14px;
  background:linear-gradient(135deg,var(--sun),var(--charge));
  color:white; font-weight:700; font-size:0.95rem;
  border:none; border-radius:13px; cursor:pointer;
  transition:opacity .2s, transform .2s;
}
.btn-save-verif:hover { opacity:.9; transform:translateY(-1px); }

/* Responsive */
@media(max-width:1100px) {
  .trust-grid { grid-template-columns:1fr 1fr; }
  .pvr-kpis { grid-template-columns:1fr 1fr; }
  .pvf-params { grid-template-columns:1fr 1fr; }
}
@media(max-width:900px) {
  .hero-inner, .contact-page { grid-template-columns:1fr; }
  .contact-left { min-height:auto; }
  .srv-grid, .steps, .aud-grid { grid-template-columns:1fr; }
  .trust-grid, .stats-charts { grid-template-columns:1fr; }
  .dash-layout { grid-template-columns:1fr; }
  .dash-sidebar { display:none; }
  #nav ul { display:none; }
}