/* services.css — NextDomotique */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary: #1E2A6B;
  --color-primary-strong: #14205A;
  --color-accent: #16C2D5;
  --color-amber: #F59E0B;
  --color-bg: #F4F6FB;
  --color-surface: #ffffff;
  --color-text: #111827;
  --color-border: #E2E8F0;
  --color-text-muted: #6B7280;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 0.75rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
}

[data-theme="dark"] {
  --color-bg: #0B0F1E;
  --color-surface: #141B30;
  --color-text: #F0F4FF;
  --color-border: #2D3748;
  --color-text-muted: #A0AEC0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 1rem;
}

/* HEADER */
.site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--color-accent); }

.header-nav { display: flex; align-items: center; gap: 1.5rem; }

.header-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover { color: #fff; }

.btn-devis {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: background 0.2s, transform 0.1s;
}

.btn-devis:hover { background: #12a8b9; transform: translateY(-1px); }

.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.theme-toggle:hover { background: rgba(255,255,255,0.1); }

/* MAIN */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
[data-theme="dark"] .breadcrumb a { color: var(--color-accent); }
.breadcrumb-sep { color: var(--color-border); }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(22,194,213,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-intro {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.6;
}

/* CARD */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

/* CONTENT */
.content h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

[data-theme="dark"] .content h2 { color: var(--color-accent); }

.content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.content p { margin-bottom: 1rem; }

.content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content ul li { margin-bottom: 0.4rem; }

/* FAQ */
details {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

summary {
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg);
  transition: background 0.2s;
}

summary:hover { background: var(--color-border); }
summary::before { content: '▸'; color: var(--color-accent); font-size: 0.8rem; }
details[open] summary::before { content: '▾'; }

details > p, details > div { padding: 0.9rem 1.2rem; font-size: 0.95rem; }

/* NAP */
.nap-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, #263580 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.nap-block h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.nap-block p { margin-bottom: 0.3rem; opacity: 0.9; font-size: 0.95rem; }

/* CTA */
.cta-block {
  text-align: center;
  padding: 2rem;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.cta-block h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

[data-theme="dark"] .cta-block h2 { color: var(--color-accent); }

.btn-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.85rem 2.5rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-heading);
}

.btn-cta:hover { background: #12a8b9; transform: translateY(-2px); }

/* LINKS GRID */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.links-grid a {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.links-grid a:hover {
  border-color: var(--color-accent);
  background: var(--color-surface);
}

[data-theme="dark"] .links-grid a { color: var(--color-accent); }

/* FOOTER */
.site-footer {
  background: var(--color-primary-strong);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 2rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-col p { font-size: 0.875rem; margin-bottom: 0.3rem; }

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* PILIER */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.spec-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.spec-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(22,194,213,0.15);
}

.spec-card strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .header-inner { gap: 0.75rem; }
  .header-nav a:not(.btn-devis) { display: none; }
  .hero { padding: 2rem 1.25rem; }
  .container { padding: 1.25rem 1rem; }
}
