/* ============================================================
   Cybercarrière — style.css
   Design: dark purple #1a0a2e, violet #7c3aed, light #f5f3ff
   ============================================================ */

/* ---------- 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: #1e1b4b; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: #7c3aed; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: #7c3aed;
  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: #6d28d9; transform: translateY(-2px); text-decoration: none; }
.btn-outline {
  display: inline-block;
  border: 2px solid #7c3aed;
  color: #7c3aed;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-outline:hover { background: #7c3aed; color: #fff; text-decoration: none; }

/* ---------- Header / Nav ---------- */
header {
  background: #1a0a2e;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.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: #e2e0ff;
  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: #7c3aed; color: #fff; }
.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: #e2e0ff; border-radius: 2px; }

/* ---------- VIDEO HERO ---------- */
.hero-video {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a0a2e;
}
.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,10,46,0.88);
  z-index: 1;
}
.hero-video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 24px;
  max-width: 860px;
}
.hero-video-content h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #f5f3ff;
}
.hero-video-content h1 span { color: #a78bfa; }
.hero-video-content p {
  font-size: 1.25rem;
  color: #c4b5fd;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.hero-badge {
  background: rgba(124,58,237,0.2);
  border: 1px solid #7c3aed;
  color: #c4b5fd;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ---------- Standard Hero ---------- */
.hero-standard { background: #1a0a2e; padding: 80px 0 60px; text-align: center; color: #fff; }
.hero-standard h1 { font-size: 2.2rem; color: #f5f3ff; margin-bottom: 12px; }
.hero-standard p { font-size: 1.1rem; color: #a78bfa; max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: #6d5b8e; margin-bottom: 16px; }
.breadcrumb a { color: #7c3aed; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 800; color: #1a0a2e; margin-bottom: 12px; }
.section-subtitle { font-size: 1.1rem; color: #6b7280; 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 / Cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: #faf5ff;
  border: 1px solid #ede9fe;
  border-radius: 12px;
  padding: 36px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(124,58,237,0.15); transform: translateY(-4px); }
.service-icon { width: 56px; height: 56px; background: #ede9fe; 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: #1a0a2e; margin-bottom: 10px; }
.service-card p { color: #6b7280; font-size: 0.95rem; }

/* ---------- Two-column ---------- */
.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: #1a0a2e; 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; }

/* ---------- Banner ---------- */
.banner-section {
  background-image: url('/images/networking.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(26,10,46,0.82); }
.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: #c4b5fd; 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: #7c3aed; display: block; }
.stat-label { color: #6b7280; font-size: 0.9rem; margin-top: 4px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { border-radius: 12px; overflow: hidden; border: 1px solid #ede9fe; 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: #9ca3af; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 1.05rem; font-weight: 700; color: #1a0a2e; margin-bottom: 10px; }
.blog-card-body p { font-size: 0.9rem; color: #6b7280; margin-bottom: 16px; }
.blog-card-body a { font-size: 0.9rem; font-weight: 600; color: #7c3aed; }

/* ---------- Article ---------- */
.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(26,10,46,0.88) 0%, transparent 55%); 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: #1a0a2e; margin: 36px 0 12px; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: #1a0a2e; 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: #9ca3af; margin-bottom: 32px; }
.article-meta span { margin-right: 16px; }

/* ---------- CTA section ---------- */
.cta-section { background: #f5f3ff; padding: 80px 0; }

/* ---------- Client paragraph ---------- */
.client-para {
  background: #faf5ff;
  border-left: 4px solid #7c3aed;
  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: #7c3aed; 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: #1a0a2e; margin-bottom: 16px; }
.contact-info p { color: #6b7280; 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: #1a0a2e; font-size: 0.9rem; margin-bottom: 2px; }
.contact-detail-text span { color: #6b7280; 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 #ede9fe; border-radius: 6px; font-size: 1rem; color: #1e1b4b; background: #fff; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: #7c3aed; }
.contact-form textarea { height: 140px; resize: vertical; }

/* ---------- Table ---------- */
.diag-table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.diag-table th { background: #1a0a2e; color: #fff; padding: 14px 18px; text-align: left; font-size: 0.9rem; }
.diag-table td { padding: 12px 18px; border-bottom: 1px solid #ede9fe; font-size: 0.9rem; color: #475569; }
.diag-table tr:hover td { background: #f5f3ff; }
.badge-green { background: #dcfce7; color: #166534; padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.badge-violet { background: #ede9fe; color: #5b21b6; 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; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid #ede9fe; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px 0; font-size: 1rem; font-weight: 600; color: #1a0a2e; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.4rem; color: #7c3aed; }
.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: #1a0a2e; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #7c3aed; }
.sitemap-col ul { list-style: none; }
.sitemap-col ul li { margin-bottom: 8px; }
.sitemap-col ul li a { color: #6b7280; font-size: 0.95rem; }
.sitemap-col ul li a:hover { color: #7c3aed; }

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

/* ---------- Footer ---------- */
footer { background: #1a0a2e; color: #a78bfa; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #2d1b69; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; color: #a78bfa; }
.footer-col h4 { color: #f5f3ff; 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: #a78bfa; font-size: 0.9rem; }
.footer-col ul li a:hover { color: #7c3aed; }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-bottom a { color: #6d5b8e; }
.footer-bottom a:hover { color: #7c3aed; }

/* ---------- 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-video-content h1 { font-size: 2rem; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .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: #1a0a2e; 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-video-content h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
  .sitemap-grid { grid-template-columns: 1fr; }
}
