/* ═══════════════════════════════════════════════
   L'atelier iTech — Domotique / Home Assistant
   ═══════════════════════════════════════════════ */

/* ── HERO ── */
.domo-hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  background:
    linear-gradient(135deg, rgba(13,13,13,0.92) 0%, rgba(13,20,35,0.88) 100%),
    url('images/hero-bg.jpg') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.domo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(24,118,210,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.domo-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}

.domo-hero h1 em { font-style: italic; color: #64b5f6; }

.domo-hero p {
  color: #888;
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
}

.ha-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(24,118,210,0.12);
  border: 1px solid rgba(24,118,210,0.3);
  color: #64b5f6;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

/* ── POURQUOI HOME ASSISTANT ── */
.why-section {
  background: var(--charcoal);
  padding: 5rem 2rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}

.why-card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100,181,246,0.4);
}

.why-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }

.why-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.why-card p { font-size: 0.82rem; color: #777; line-height: 1.6; }

/* ── SERVICES DOMOTIQUE ── */
.domo-services { padding: 5rem 2rem; }

.services-domo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}

.domo-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.domo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, #1876d2, #64b5f6);
  opacity: 0;
  transition: opacity 0.3s;
}

.domo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  border-color: rgba(100,181,246,0.4);
}

.domo-card:hover::before { opacity: 1; }

.domo-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.domo-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.domo-card .domo-desc {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.domo-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.domo-card ul li {
  font-size: 0.83rem;
  color: #999;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.domo-card ul li::before {
  content: '✓';
  color: #64b5f6;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── APPAREILS COMPATIBLES ── */
.compat-section {
  background: var(--charcoal);
  padding: 5rem 2rem;
}

.compat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  max-width: 900px;
  margin: 2.5rem auto 0;
}

.compat-tag {
  background: var(--dark);
  border: 1px solid var(--border);
  color: #aaa;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: border-color 0.3s, color 0.3s;
  cursor: default;
}

.compat-tag:hover {
  border-color: rgba(100,181,246,0.5);
  color: #64b5f6;
}

/* ── TARIFS DOMOTIQUE ── */
.domo-tarifs { padding: 5rem 2rem; }

.tarifs-domo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.3rem;
  max-width: 1100px;
  margin: 3rem auto 0;
}

.domo-tarif-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.domo-tarif-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.domo-tarif-card.bleu::before   { background: #1876d2; }
.domo-tarif-card.cyan::before   { background: #00acc1; }
.domo-tarif-card.violet::before { background: #7b1fa2; }
.domo-tarif-card.vert::before   { background: #388e3c; }
.domo-tarif-card.orange::before { background: #f57c00; }

.domo-tarif-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-color: rgba(100,181,246,0.4);
}

.domo-tarif-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.domo-price {
  display: inline-block;
  background: rgba(100,181,246,0.1);
  border: 1px solid rgba(100,181,246,0.25);
  color: #64b5f6;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.25rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 0.8rem;
}

.domo-tarif-card .tarif-desc {
  font-size: 0.82rem;
  color: #777;
  font-style: italic;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.domo-tarif-card .tarif-features { list-style: none; }

.domo-tarif-card .tarif-features li {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.81rem;
  color: #888;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

.domo-tarif-card .tarif-features li::before {
  content: '✓';
  color: #64b5f6;
  font-weight: 700;
  flex-shrink: 0;
}

.domo-tarif-card.featured-domo {
  border-color: rgba(100,181,246,0.4);
  background: rgba(24,118,210,0.05);
}

.featured-domo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #1876d2, #64b5f6);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.domo-note {
  max-width: 700px;
  margin: 2rem auto 0;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  line-height: 1.7;
}

/* ── PROCESSUS ── */
.process-section {
  padding: 5rem 2rem;
  background: var(--charcoal);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--border), rgba(100,181,246,0.3), var(--border));
}

.process-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid rgba(100,181,246,0.4);
  color: #64b5f6;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.process-step h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.process-step p { font-size: 0.78rem; color: #777; line-height: 1.5; }

/* ── CTA FINAL ── */
.domo-cta {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(13,13,13,1) 0%, rgba(13,20,35,1) 100%);
  border-top: 1px solid var(--border);
}

.domo-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: #fff;
  margin-bottom: 1rem;
}

.domo-cta p { color: #888; font-size: 1rem; margin-bottom: 2rem; }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .process-steps::before { display: none; }
  .services-domo-grid    { grid-template-columns: 1fr; }
  .tarifs-domo-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .domo-hero      { padding: 6rem 1.2rem 3rem; }
  .why-section,
  .domo-services,
  .compat-section,
  .domo-tarifs,
  .process-section,
  .domo-cta       { padding: 3.5rem 1.2rem; }
  .tarifs-domo-grid { grid-template-columns: 1fr; }
  .process-steps  { gap: 1.5rem; }
  .cta-buttons    { flex-direction: column; align-items: center; }
}
