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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: radial-gradient(circle at top left, #e0f2fe 0, #f3f4f6 40%, #e5e7eb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HEADER & NAV */
.site-header {
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.25rem;
  gap: 1rem;
}

.logo-main {
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-sub {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav a {
  opacity: 0.9;
}

.nav a:hover {
  opacity: 1;
}

.btn-primary,
.btn-primary-sm {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f9fafb;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn-primary-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover,
.btn-primary-sm:hover {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  text-decoration: none;
}

/* MAIN LAYOUT */
.main {
  padding: 2.5rem 0 3rem;
}

/* HERO */
.hero {
  padding: 2.5rem 0 2rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.25rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  background: rgba(59, 130, 246, 0.08);
  color: #0369a1;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.hero-title {
  font-size: 2.15rem;
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

.hero-text {
  font-size: 0.98rem;
  color: #475569;
  margin-bottom: 1.2rem;
}

.hero-meta {
  font-size: 0.82rem;
  color: #6b7280;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.hero-card {
  background: radial-gradient(circle at top left, #020617 0, #020617 55%);
  color: #e5e7eb;
  border-radius: 1.7rem;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.08rem;
}

.hero-card p {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.55);
}

/* GENERIC CARDS & GRID */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.4rem;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.article-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
}

.article-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.article-body h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.article-body h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.article-body p {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.6;
}

.article-body ul {
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}

.article-body li {
  margin-bottom: 0.25rem;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.article-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.article-item:last-child {
  border-bottom: none;
}

.article-item a {
  font-weight: 500;
  font-size: 0.95rem;
}

.article-item span {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.1rem;
}

/* FEATURE IMAGE */
.feature-image {
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
  display: block;
  margin: 0.7rem 0 1.3rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

/* RELATED ARTICLES */
.related-articles {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid #e5e7eb;
}

.related-articles h2 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.related-articles ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.related-articles li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.related-articles a {
  color: #2563eb;
}

.related-articles a:hover {
  text-decoration: underline;
}

/* FOOTER */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  margin-top: 2.8rem;
  padding: 1.8rem 0 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.1rem;
  font-size: 0.85rem;
}

.footer-inner h3,
.footer-inner h4 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(55, 65, 81, 0.85);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* FLOATING BUTTON */
.devis-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 25px rgba(22, 163, 74, 0.4);
  text-decoration: none;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: 0.25s ease;
}

.devis-float:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  text-decoration: none;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner,
  .grid-2,
  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 2rem;
  }
}
