/* ============================================
   PARASURTENSEUR.FR — Stylesheet
   Expert en protection contre la foudre
   Palette: #1E3A5F (bleu) + #E67E22 (orange)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --primary: #1E3A5F;
  --primary-light: #2C5282;
  --primary-dark: #142840;
  --accent: #E67E22;
  --accent-light: #F0923E;
  --accent-dark: #C96B15;
  --danger: #E74C3C;
  --success: #27AE60;
  --warning: #F39C12;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(30,58,95,0.06);
  --shadow: 0 4px 16px rgba(30,58,95,0.08);
  --shadow-lg: 0 12px 40px rgba(30,58,95,0.12);
  --shadow-accent: 0 8px 30px rgba(230,126,34,0.25);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1180px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

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

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text { font-weight: 800; font-size: 18px; color: var(--primary); }
.nav-logo-text span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; color: var(--text);
  transition: all 0.2s;
}
.nav-links a:hover { background: var(--bg-muted); color: var(--primary); }

.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; box-shadow: var(--shadow-accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 6px 0; transition: all 0.3s; border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,126,34,0.15); border: 1px solid rgba(230,126,34,0.3);
  border-radius: 100px; padding: 6px 16px; font-size: 13px;
  font-weight: 600; color: var(--accent-light); margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-desc {
  font-size: 18px; color: rgba(255,255,255,0.7); line-height: 1.7;
  margin-bottom: 32px; max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font); font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: all 0.25s;
  text-decoration: none;
}
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 16px rgba(230,126,34,0.3);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-accent); color: #fff; }
.btn-white {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-white:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--bg-soft); }

.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
  padding: 32px; width: 100%; max-width: 400px;
}
.hero-card h3 { color: #fff; font-size: 18px; margin-bottom: 16px; }
.hero-stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero-stat:last-child { border: none; }
.hero-stat-label { color: rgba(255,255,255,0.5); font-size: 14px; }
.hero-stat-value { color: var(--accent); font-weight: 700; font-size: 15px; font-family: var(--font-mono); }

/* ============ SECTIONS ============ */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3vw, 38px); font-weight: 800;
  color: var(--primary-dark); line-height: 1.2; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc { font-size: 16px; color: var(--text-muted); line-height: 1.7; }

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: var(--max-w); margin: 0 auto;
}
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============ STATS BAR ============ */
.stats-bar {
  background: var(--primary); padding: 48px 24px;
}
.stats-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.stat-number {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 800;
  color: var(--accent); font-family: var(--font-mono);
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ============ EXPERTISE ============ */
.expertise-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; max-width: var(--max-w); margin: 0 auto;
}
.expertise-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px; background: var(--bg);
  border-radius: var(--radius); border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.expertise-item:hover { border-color: var(--accent); }
.expertise-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-top: 6px; flex-shrink: 0;
}
.expertise-item h4 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.expertise-item p { font-size: 13px; color: var(--text-muted); }

/* ============ CTA SECTION ============ */
.cta-section {
  padding: 72px 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 800;
  color: #fff; margin-bottom: 12px;
}
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
  padding: 56px 24px 28px;
  background: var(--bg-soft); border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 280px; margin-top: 12px; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--primary); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-muted);
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-w); margin: 32px auto 0; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-light);
}

/* ============ GUIDE PAGE ============ */
.guide-hero {
  padding: calc(var(--nav-h) + 48px) 24px 48px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.guide-hero-inner { max-width: 800px; margin: 0 auto; }
.guide-hero h1 { font-size: clamp(28px, 3.5vw, 42px); color: #fff; font-weight: 800; margin-bottom: 16px; }
.guide-hero p { font-size: 17px; color: rgba(255,255,255,0.65); }

.guide-content { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.guide-content h2 {
  font-size: 26px; font-weight: 800; color: var(--primary-dark);
  margin: 48px 0 16px; padding-top: 24px;
  border-top: 2px solid var(--border);
}
.guide-content h2:first-of-type { border: none; margin-top: 0; }
.guide-content h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin: 32px 0 12px; }
.guide-content p { margin-bottom: 16px; color: var(--text); }
.guide-content ul, .guide-content ol { margin: 0 0 16px 20px; }
.guide-content li { margin-bottom: 8px; color: var(--text); }

.guide-callout {
  background: var(--bg-muted); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px; margin: 24px 0;
}
.guide-callout strong { color: var(--primary-dark); }

.guide-toc {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px; margin-bottom: 40px;
}
.guide-toc h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
.guide-toc ol { margin: 0; padding-left: 20px; }
.guide-toc li { padding: 4px 0; }
.guide-toc a { font-size: 14px; font-weight: 500; }

/* ============ CONFIGURATEUR ============ */
.cfg-container {
  max-width: 700px; margin: 0 auto; padding: 32px 24px 80px;
}
.cfg-step {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px;
}
.cfg-step h3 { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.cfg-step p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.cfg-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.cfg-option {
  padding: 16px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s; text-align: center;
  font-weight: 600; font-size: 14px; color: var(--text);
  background: var(--bg);
}
.cfg-option:hover { border-color: var(--primary-light); background: var(--bg-soft); }
.cfg-option.selected { border-color: var(--accent); background: rgba(230,126,34,0.06); color: var(--accent-dark); }

.cfg-nav { display: flex; justify-content: space-between; margin-top: 24px; }

.cfg-result {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg); padding: 32px; color: #fff; margin-bottom: 16px;
}
.cfg-result h3 { color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.cfg-result h4 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.cfg-result p { font-size: 14px; color: rgba(255,255,255,0.65); }

.cfg-result-note {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin-bottom: 12px;
  font-size: 14px; color: var(--text);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px; box-shadow: var(--shadow-lg);
  }
  .nav-toggle { display: block; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
  .section { padding: 56px 16px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
