/* ============================================================
   RSSI as a Service — Main Stylesheet
   Professional blue/gray palette · clean · no black/no neon
   ============================================================ */

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #1a56db;
  --blue-700: #1e40af;
  --blue-800: #1e3a5f;
  --blue-900: #0f1d3d;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;

  --white: #ffffff;
  --green-50: #f0fdf4;
  --green-600: #16a34a;
  --orange-50: #fff7ed;
  --orange-600: #ea580c;
  --red-50: #fef2f2;
  --red-600: #dc2626;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);

  --header-h: 72px;
  --max-w: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--blue-900); }

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

/* ===== HEADER STICKY ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-900);
}
.logo .light { font-weight: 400; color: var(--blue-400); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}
.nav-link.active {
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 600;
}
.nav-cta { margin-left: 8px; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-700); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-200);
}
.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
}
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-400);
  margin-bottom: 12px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 80% 50%, var(--blue-100) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding: 80px 0; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 16px;
}
.hero .highlight { color: var(--blue-600); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat {
  font-size: 0.9rem;
  color: var(--gray-500);
}
.hero-stats .stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--blue-900);
}

/* ===== CALCULETTE ===== */
.calculator {
  padding: 80px 0;
  background: var(--gray-50);
}
.calculator .section-sub strong { color: var(--blue-700); }
.calc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.calc-form { display: flex; flex-direction: column; gap: 24px; }
.calc-form .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.input-suffix {
  display: flex;
  align-items: center;
  gap: 16px;
}
.input-suffix input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--blue-100);
  border-radius: 3px;
  outline: none;
}
.input-suffix input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-600);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.input-suffix input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-600);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.range-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-900);
  min-width: 110px;
  text-align: right;
  white-space: nowrap;
}
.calc-form select {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.calc-form select:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}
.calc-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calc-result-card {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.calc-result-card h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.calc-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 8px;
}
.calc-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-bottom: 6px;
  overflow: hidden;
}
.calc-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 0%;
}
.risk-nis2 .calc-bar-fill { background: var(--blue-500); }
.risk-rgpd .calc-bar-fill { background: var(--blue-600); }
.calc-result-card p { font-size: 0.8rem; color: var(--gray-400); }
.risk-nis2 { border-left: 4px solid var(--blue-400); }
.risk-rgpd { border-left: 4px solid var(--blue-600); }
.risk-total {
  border-left: 4px solid var(--blue-800);
  background: var(--blue-50);
}
.calc-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-style: italic;
}
.calc-solution {
  margin-top: 4px;
  padding: 16px 20px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.calc-solution p { font-size: 0.85rem; color: var(--gray-600); }
.calc-solution p strong { color: var(--blue-700); }

@media (max-width: 768px) {
  .calc-card { grid-template-columns: 1fr; }
}

/* ===== OFFRES ===== */
.offres {
  padding: 100px 0;
  background: var(--white);
}
.offres h2, .conformite h2, .tarifs h2, .contact h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  margin-bottom: 48px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pillar-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
}
.pillar-icon { margin-bottom: 16px; }
.pillar-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-300);
  letter-spacing: 0.05em;
}
.pillar-card h3 {
  font-size: 1.25rem;
  margin: 8px 0 10px;
}
.pillar-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.pillar-features { margin-bottom: 16px; }
.pillar-features li {
  padding: 4px 0 4px 20px;
  font-size: 0.85rem;
  color: var(--gray-600);
  position: relative;
}
.pillar-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-200);
}
.pillar-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.pillar-legal span {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid var(--blue-100);
}
.pillar-price { margin-bottom: 16px; }
.pillar-price .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-900);
}
.pillar-price .period {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* Pack CTA */
.pack-cta {
  background: linear-gradient(135deg, var(--blue-50), var(--white));
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.pack-info h4 { font-size: 1.3rem; margin-bottom: 4px; }
.pack-info p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 8px; }
.pack-price .price { font-size: 1.8rem; font-weight: 800; color: var(--blue-900); }
.pack-price .period { font-size: 0.9rem; color: var(--gray-400); }
.pack-eco {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-600);
  background: var(--green-50);
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 4px;
}

/* ===== CONFORMITÉ ===== */
.conformite {
  padding: 100px 0;
  background: var(--gray-50);
}
.regs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.reg-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.reg-card h4 { font-size: 1rem; margin-bottom: 8px; }
.reg-card p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 12px; }
.reg-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.reg-status.compliant { background: var(--green-50); color: var(--green-600); }
.reg-status.partial { background: var(--orange-50); color: var(--orange-600); }

/* ===== TARIFS ===== */
.tarifs {
  padding: 100px 0;
  background: var(--white);
}
.pricing-table {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.pricing-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--gray-100);
}
.pricing-row:last-child { border-bottom: none; }
.pricing-cell {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
}
.feature-name { font-weight: 500; color: var(--gray-700); }
.header-row { background: var(--gray-50); }
.header-row .pricing-cell {
  font-weight: 700;
  color: var(--blue-900);
  font-size: 0.95rem;
}
.total-row .pricing-cell { font-size: 1.1rem; }
.starter { color: var(--blue-600) !important; }
.pro { color: var(--blue-700) !important; }
.enterprise { color: var(--blue-800) !important; }

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--gray-50);
}
.contact-form {
  max-width: 680px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-group input { width: auto; margin-top: 3px; }
.checkbox-group label { font-weight: 400; font-size: 0.8rem; color: var(--gray-500); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--blue-900);
  color: var(--gray-300);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .logo .light { color: var(--blue-300); }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-links h5 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-400);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ===== DROPDOWN RSSI ===== */
.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}
.nav-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s;
  z-index: 100;
}
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu .nav-link {
  display: block;
  width: 100%;
  border-radius: 6px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
    background: transparent;
  }
  .nav-dropdown.open .dropdown-menu {
    max-height: 300px;
  }
  .dropdown-menu .nav-link {
    font-size: 0.82rem;
    padding: 10px 16px;
  }
}

/* ===== SCROLL TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--blue-700); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .container { padding: 0 16px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { width: 100%; padding: 12px 16px; }
  .nav-cta { margin-left: 0; width: 100%; text-align: center; }
  .mobile-toggle { display: flex; }
  .pricing-row { grid-template-columns: 1fr 1fr 1fr; }
  .pricing-row .feature-name { grid-column: 1 / -1; background: var(--gray-50); }
  .form-row { grid-template-columns: 1fr; }
  .offres, .conformite, .tarifs, .contact, .calculator { padding: 60px 0; }

  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-content { padding: 0; text-align: center; }
  .badge { text-align: center; display: inline-block; width: auto; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .hero-stats .stat strong { font-size: 1.3rem; }
  .hero-stats .stat { font-size: 0.85rem; }

  .calculator h2,
  .calculator .section-sub,
  .calculator .section-label,
  .offres h2,
  .offres .section-sub,
  .offres .section-label,
  .conformite h2,
  .conformite .section-sub,
  .conformite .section-label,
  .tarifs h2,
  .tarifs .section-sub,
  .tarifs .section-label,
  .contact h2,
  .contact .section-sub,
  .contact .section-label {
    text-align: center;
    display: block;
  }

  .calc-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .calc-results { text-align: center; }
  .calc-solution { text-align: center; }
  .calc-solution .btn { width: 100%; }

  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar-card { text-align: center; }
  .pillar-card .btn { width: 100%; }
  .pillar-number { right: 16px; }
  .pillar-legal { justify-content: center; }

  .regs-grid { grid-template-columns: 1fr; gap: 12px; }
  .reg-card { text-align: center; }
  .reg-status { text-align: center; }

  .pricing-table { font-size: 0.8rem; overflow-x: auto; }
  .pricing-cell { padding: 10px 12px; justify-content: center; }
  .pricing-cell .btn { font-size: 0.75rem; padding: 6px 12px; }

  .pack-cta { flex-direction: column; text-align: center; padding: 24px; }
  .pack-cta .btn { width: 100%; }
  .pack-info { text-align: center; }

  .contact-form { padding: 24px; }
  .contact-form .btn { width: 100%; }

  .section-sub { margin-bottom: 32px; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .footer-grid .logo { justify-content: center; }
  .footer-links a { padding: 6px 0; }
}
