/* ==========================================================================
   SOLAIRE SOLENCIA - Feuille de style principale
   Design moderne, dynamique, contrasté & 100% responsive tous écrans
   ========================================================================== */

:root {
  --bg-dark: #070d19;
  --bg-surface: #0e172a;
  --bg-card: #131f38;
  --bg-card-hover: #182746;
  --bg-light: #f8fafc;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --solar-gold: #f59e0b;
  --solar-amber: #fbbf24;
  --solar-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f97316 100%);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.35);
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 12px 30px -8px rgba(245, 158, 11, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container-max: 1240px;
  --transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibilité : lien d'évitement */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--solar-gold);
  color: #070d19;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 9999;
}
.skip-link:focus {
  top: 16px;
}

/* Topbar réassurance */
.topbar {
  background: #040811;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-badges {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-badges strong {
  color: var(--solar-amber);
}
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-contact a:hover {
  color: var(--solar-amber);
}

/* Header & Navigation multi-onglets */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 25, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

/* Logo SVG sur-mesure SOLAIRE SOLENCIA */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.brand-title span {
  background: var(--solar-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Menu principal */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: #e2e8f0;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--solar-amber);
  background: rgba(245, 158, 11, 0.09);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--solar-gradient);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--solar-gradient);
  color: #070d19;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 35px -6px rgba(245, 158, 11, 0.5);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--solar-amber);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* Bouton Burger Mobile */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 12% 85%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #070d19 0%, #0b1324 100%);
  border-bottom: 1px solid var(--border-subtle);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--solar-amber);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.45rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 .highlight {
  background: var(--solar-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 1.12rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 600px;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-proofs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.proof-item strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--solar-amber);
}
.proof-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Carte héro visuelle & simulateur rapide */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--emerald);
  color: #04130d;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 999px;
}
.hero-card h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}
.hero-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.price-spotlight {
  background: rgba(7, 13, 25, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.price-spotlight .label {
  font-size: 0.9rem;
  color: #cbd5e1;
}
.price-spotlight .amount {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--solar-amber);
  line-height: 1;
}
.price-spotlight .amount small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 24px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: #e2e8f0;
}
.check-icon {
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

/* Sections génériques */
.section {
  padding: 84px 0;
}
.section-alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 54px;
}
.section-header .eyebrow {
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Grilles de cartes */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}
.card.featured {
  border: 2px solid var(--solar-gold);
  position: relative;
  box-shadow: var(--shadow-gold);
}
.card-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--solar-gradient);
  color: #070d19;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--solar-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cartes Offres / Tarifs */
.offer-price {
  margin: 18px 0;
  padding: 16px;
  background: rgba(7, 13, 25, 0.6);
  border-radius: 12px;
}
.offer-price .from {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.offer-price .val {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--solar-amber);
}
.offer-price .val span {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 500;
}
.offer-specs {
  margin: 16px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.offer-specs li {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.offer-specs li span:first-child {
  color: var(--text-muted);
}
.offer-specs li strong {
  color: #fff;
}

/* Simulateur interactif */
.simulator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.sim-control {
  margin-bottom: 22px;
}
.sim-control label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 10px;
}
.sim-control label span {
  color: var(--solar-amber);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--solar-gold);
  cursor: pointer;
  height: 8px;
}
.sim-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.sim-chip {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.sim-chip.active, .sim-chip:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--solar-gold);
  color: var(--solar-amber);
}
.sim-result {
  background: #070d19;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}
.sim-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 22px;
}
.sim-metric {
  background: var(--bg-surface);
  padding: 16px;
  border-radius: 12px;
}
.sim-metric small {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}
.sim-metric strong {
  font-size: 1.45rem;
  color: var(--solar-amber);
}
.sim-metric.green strong {
  color: var(--emerald);
}

/* Tableau comparatif */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  min-width: 640px;
}
th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}
th {
  background: #0a1120;
  font-weight: 800;
  color: #fff;
}
th.col-solencia {
  color: var(--solar-amber);
  background: rgba(245, 158, 11, 0.1);
}
td.col-solencia {
  background: rgba(245, 158, 11, 0.04);
  font-weight: 700;
  color: #fff;
}

/* FAQ Accordéon SEO */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 20px 24px;
  font-size: 1.04rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-question:hover {
  color: var(--solar-amber);
}
.faq-answer {
  padding: 0 24px 20px;
  color: #cbd5e1;
  font-size: 0.96rem;
  display: none;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--solar-amber);
}

/* Formulaire de contact / étude */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
}
.form-control {
  background: #070d19;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 13px 15px;
  color: #fff;
  font-family: inherit;
  font-size: 0.96rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--solar-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

/* Page Header interne */
.page-hero {
  padding: 58px 0 48px;
  background: linear-gradient(180deg, #070d19 0%, #0e172a 100%);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a:hover {
  color: var(--solar-amber);
}

/* Footer */
.site-footer {
  background: #040811;
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 28px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--solar-amber);
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* Responsive Breakpoints : Tablettes & Mobiles */
@media (max-width: 1024px) {
  .hero-grid,
  .simulator-box {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-actions .btn-secondary {
    display: none;
  }
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: #070d19;
    border-bottom: 1px solid var(--border-gold);
    padding: 20px 24px 28px;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 1.05rem;
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero-proofs {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 44px 0 56px;
  }
  .section {
    padding: 58px 0;
  }
  .hero-card,
  .simulator-box,
  .card {
    padding: 22px;
  }
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .sim-options {
    grid-template-columns: 1fr;
  }
}
