/* ============================================================
   A-bitat Diagnostic — style.css
   Design: dark navy #0f172a, teal #0d9488, light #f0fdfa
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #1e293b;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #0d9488; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: #0d9488;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #0f766e; transform: translateY(-2px); text-decoration: none; }
.btn-outline {
  display: inline-block;
  border: 2px solid #0d9488;
  color: #0d9488;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: #0d9488; color: #fff; text-decoration: none; }

/* ---------- Header / Nav ---------- */
header {
  background: #0f172a;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
}
.nav-logo img { height: 48px; width: auto; }
nav ul { list-style: none; display: flex; gap: 8px; }
nav ul li a {
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
nav ul li a:hover, nav ul li a.active {
  background: #0d9488;
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ---------- SPLIT HERO (index) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.hero-img-half {
  position: relative;
  overflow: hidden;
}
.hero-text-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  background: #0f172a;
  color: #fff;
}
.hero-text-half h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #f0fdfa;
}
.hero-text-half h1 span { color: #0d9488; }
.hero-text-half p {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero-badge {
  background: rgba(13,148,136,0.15);
  border: 1px solid #0d9488;
  color: #5eead4;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ---------- Standard Hero (inner pages) ---------- */
.hero-standard {
  background: #0f172a;
  padding: 80px 0 60px;
  text-align: center;
  color: #fff;
}
.hero-standard h1 { font-size: 2.2rem; color: #f0fdfa; margin-bottom: 12px; }
.hero-standard p { font-size: 1.1rem; color: #94a3b8; max-width: 600px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 16px;
}
.breadcrumb a { color: #0d9488; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 48px;
  max-width: 600px;
}
.section-header { margin-bottom: 48px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto 48px; }

/* ---------- Services Grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 36px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(13,148,136,0.12); transform: translateY(-4px); }
.service-icon {
  width: 56px;
  height: 56px;
  background: #f0fdfa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.service-card p { color: #64748b; font-size: 0.95rem; }

/* ---------- Two-column sections ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col img { border-radius: 12px; width: 100%; object-fit: cover; max-height: 420px; }
.two-col h2 { font-size: 1.9rem; font-weight: 800; color: #0f172a; margin-bottom: 16px; }
.two-col p { color: #475569; margin-bottom: 16px; }
.two-col ul { color: #475569; padding-left: 20px; margin-bottom: 24px; }
.two-col ul li { margin-bottom: 8px; }
.two-col-reverse { }

/* ---------- Banner (CSS bg) ---------- */
.banner-section {
  background-image: url('/images/vue-paris.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: #fff;
}
.banner-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.78);
}
.banner-section .container { position: relative; z-index: 1; }
.banner-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.banner-section p { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { padding: 32px 16px; }
.stat-number { font-size: 2.8rem; font-weight: 900; color: #0d9488; display: block; }
.stat-label { color: #64748b; font-size: 0.9rem; margin-top: 4px; }

/* ---------- Blog / Articles ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.10); transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-meta { font-size: 0.8rem; color: #94a3b8; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.blog-card-body p { font-size: 0.9rem; color: #64748b; margin-bottom: 16px; }
.blog-card-body a { font-size: 0.9rem; font-weight: 600; color: #0d9488; }

/* ---------- Article page ---------- */
.article-hero { position: relative; height: 420px; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}
.article-hero-overlay h1 { color: #fff; font-size: 2rem; max-width: 760px; }
.article-content { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin: 36px 0 12px; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin: 28px 0 10px; }
.article-content p { color: #475569; margin-bottom: 18px; }
.article-content ul, .article-content ol { color: #475569; padding-left: 24px; margin-bottom: 18px; }
.article-content ul li, .article-content ol li { margin-bottom: 8px; }
.article-content img { border-radius: 10px; margin: 28px auto; max-height: 400px; width: 100%; object-fit: cover; }
.article-meta { font-size: 0.85rem; color: #94a3b8; margin-bottom: 32px; }
.article-meta span { margin-right: 16px; }

/* ---------- CTA two-col (dpe-etiquette) ---------- */
.cta-section { background: #f0fdfa; padding: 80px 0; }
.cta-section .two-col h2 { color: #0f172a; }

/* ---------- Client paragraph ---------- */
.client-para {
  background: #f8fafc;
  border-left: 4px solid #0d9488;
  padding: 40px 48px;
  border-radius: 0 12px 12px 0;
  margin: 80px 0;
}
.client-para p { color: #475569; margin-bottom: 14px; font-size: 1rem; }
.client-para a { color: #0d9488; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info h2 { font-size: 1.8rem; font-weight: 800; color: #0f172a; margin-bottom: 16px; }
.contact-info p { color: #64748b; margin-bottom: 24px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon { font-size: 1.4rem; flex-shrink: 0; }
.contact-detail-text strong { display: block; color: #0f172a; font-size: 0.9rem; margin-bottom: 2px; }
.contact-detail-text span { color: #64748b; font-size: 0.95rem; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; font-size: 0.9rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #0d9488;
}
.contact-form textarea { height: 140px; resize: vertical; }

/* ---------- Table ---------- */
.diag-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.diag-table th {
  background: #0f172a;
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9rem;
}
.diag-table td { padding: 12px 18px; border-bottom: 1px solid #e2e8f0; font-size: 0.9rem; color: #475569; }
.diag-table tr:hover td { background: #f0fdfa; }
.badge-green { background: #dcfce7; color: #166534; padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.badge-orange { background: #fef3c7; color: #92400e; padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.badge-red { background: #fee2e2; color: #991b1b; padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }

/* ---------- Accordion (FAQ) ---------- */
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: #0d9488; }
.faq-question.open::after { content: '−'; }
.faq-answer { display: none; padding: 0 0 20px; color: #475569; }
.faq-answer.open { display: block; }

/* ---------- Sitemap ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.sitemap-col h3 { font-size: 1.1rem; font-weight: 700; color: #0f172a; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #0d9488; }
.sitemap-col ul { list-style: none; }
.sitemap-col ul li { margin-bottom: 8px; }
.sitemap-col ul li a { color: #64748b; font-size: 0.95rem; }
.sitemap-col ul li a:hover { color: #0d9488; }

/* ---------- 404 ---------- */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0f172a;
  color: #fff;
}
.page-404 h1 { font-size: 8rem; font-weight: 900; color: #0d9488; line-height: 1; }
.page-404 h2 { font-size: 2rem; margin: 16px 0; }
.page-404 p { color: #94a3b8; margin-bottom: 32px; }

/* ---------- Footer ---------- */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1e293b;
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: #f0fdfa; font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #94a3b8; font-size: 0.9rem; }
.footer-col ul li a:hover { color: #0d9488; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #0d9488; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-img-half { height: 300px; }
  .hero-text-half { padding: 40px 24px; }
  .hero-text-half h1 { font-size: 1.8rem; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col-reverse .two-col-img { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  nav { display: none; }
  nav.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: #0f172a; padding: 16px; }
  nav.open ul { flex-direction: column; gap: 4px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .client-para { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-text-half h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
