/* Sécuritel — Blog (pages HTML statiques, optimisées SEO/GEO) */
/* Charte alignée sur le site : marine #0B2545, rouge #E63946, Inter */

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --marine: #0b2545;
  --marine-deep: #061632;
  --marine-soft: #1a3d6f;
  --red: #e63946;
  --red-deep: #c82a38;
  --gold: #c9a24c;
  --text-primary: #101522;
  --text-secondary: #3a4150;
  --text-muted: #6b7280;
  --mist: #e5e8ed;
  --fog: #f2f4f7;
  --border: rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--marine); text-decoration: none; }
a:hover { color: var(--red); }

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

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo { height: 34px; width: auto; }
.nav__links { display: flex; gap: 1.5rem; align-items: center; font-size: 0.95rem; }
.nav__links a { color: var(--text-secondary); font-weight: 500; }
.nav__cta {
  background: var(--red);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav__cta:hover { background: var(--red-deep); }
@media (max-width: 640px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---- Layout article ---- */
.container { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.container--wide { max-width: 1100px; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin: 2rem 0 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--marine); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.tag {
  display: inline-block;
  background: var(--fog);
  color: var(--marine);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--marine-deep);
  margin: 0.5rem 0 1rem;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--marine-deep);
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.9rem;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--marine);
  margin: 1.8rem 0 0.6rem;
}

p { margin: 0 0 1.2rem; color: var(--text-secondary); }
.lead {
  font-size: 1.18rem;
  color: var(--text-primary);
  font-weight: 400;
}

ul, ol { margin: 0 0 1.4rem; padding-left: 1.3rem; color: var(--text-secondary); }
li { margin-bottom: 0.55rem; }

strong { color: var(--text-primary); font-weight: 600; }

.hero-img {
  width: 100%;
  border-radius: 1.25rem;
  margin: 1.5rem 0 2rem;
  box-shadow: 0 24px 48px rgba(11, 37, 69, 0.1);
}

/* ---- Encadrés ---- */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--marine);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.8rem 0;
}
.callout--price {
  border-left-color: var(--red);
  background: rgba(230, 57, 70, 0.04);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--marine-deep); }

/* Tableau comparatif / prix */
.table-wrap { overflow-x: auto; margin: 1.8rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--mist);
  border-radius: 0.75rem;
  overflow: hidden;
}
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--mist); }
th { background: var(--marine); color: #fff; font-weight: 600; font-size: 0.85rem; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 600; color: var(--marine-deep); }
.price-cell { color: var(--red-deep); font-weight: 700; white-space: nowrap; }

/* FAQ */
.faq { margin: 2.5rem 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.8rem;
  background: var(--surface);
}
.faq-item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--marine-deep); }
.faq-item p { margin: 0; font-size: 0.95rem; }

/* CTA bloc */
.cta-box {
  margin: 3rem 0 1rem;
  background: linear-gradient(120deg, #061632 0%, #0b2545 60%, #1a3d6f 130%);
  color: #fff;
  border-radius: 1.25rem;
  padding: 2.2rem;
  text-align: center;
}
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box p { color: rgba(255, 255, 255, 0.85); }
.cta-btn {
  display: inline-block;
  margin-top: 0.6rem;
  background: var(--red);
  color: #fff !important;
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
}
.cta-btn:hover { background: var(--red-deep); }
.cta-phone { display: block; margin-top: 0.9rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.cta-phone a { color: #fff; font-weight: 600; }

/* ---- Index blog ---- */
.blog-hero { text-align: center; padding: 3rem 1.5rem 1rem; }
.blog-hero h1 { margin-bottom: 0.6rem; }
.blog-hero p { max-width: 600px; margin: 0 auto; color: var(--text-muted); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,37,69,0.12); }
.post-card img { aspect-ratio: 16/10; object-fit: cover; }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.post-card__body h2 { font-size: 1.2rem; margin: 0.6rem 0 0.5rem; line-height: 1.3; }
.post-card__body p { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.post-card__more { color: var(--red); font-weight: 600; font-size: 0.9rem; margin-top: 0.6rem; }

/* ---- Footer ---- */
.site-footer {
  margin-top: 4rem;
  background: var(--marine-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 1.5rem;
  font-size: 0.9rem;
}
.site-footer .container--wide {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; }

.author-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  margin: 2.5rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.author-box strong { color: var(--marine-deep); display: block; }
