/* =============================================
   Campus Numérique Lons — style.css
   Design: Dark tech/3D education
   Colors: #0a1628 (dark blue), #06b6d4 (cyan), #f0f9ff (light)
   ============================================= */

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

:root {
  --dark:    #0a1628;
  --dark2:   #0f2044;
  --dark3:   #162a52;
  --cyan:    #06b6d4;
  --cyan2:   #0891b2;
  --cyan3:   #67e8f9;
  --light:   #f0f9ff;
  --white:   #ffffff;
  --grey:    #94a3b8;
  --grey2:   #64748b;
  --accent:  #7c3aed;
  --font-head: 'Exo 2', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --radius: 8px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; color: #c0d0e8; }
a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cyan3); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-cyan { color: var(--cyan); }
.text-center { text-align: center; }

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--cyan);
  color: var(--dark);
  border-color: var(--cyan);
}
.btn-primary:hover { background: var(--cyan3); border-color: var(--cyan3); color: var(--dark); }
.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn-outline:hover { background: var(--cyan); color: var(--dark); }

/* ---- HEADER / NAV ---- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  height: 70px;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.logo img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--light);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.nav-cta {
  background: var(--cyan);
  color: var(--dark) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius);
  border-bottom: none !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--cyan3) !important; color: var(--dark) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--light);
  transition: all var(--transition);
}

/* ---- VIDEO HERO ---- */
.video-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}
.video-hero video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 22, 40, 0.90);
  z-index: 1;
}
.video-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 2rem 1.5rem;
}
.video-hero-content .badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.video-hero-content h1 { margin-bottom: 1.5rem; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.video-hero-content p { font-size: 1.15rem; color: #c8ddf0; margin-bottom: 2rem; max-width: 650px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:0.4;transform:scaleY(0.5)} }

/* ---- CSS BG HERO (non-video pages) ---- */
.hero-bg {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 120px 0 5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.88);
}
.hero-bg .container { position: relative; z-index: 1; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .label {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--grey); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---- GRID / CARDS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--dark2);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.1);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(6, 182, 212, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.card p { color: var(--grey); font-size: 0.95rem; margin: 0; }

/* ---- 2-COL IMAGE SECTIONS ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col-img {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.two-col-img img { width: 100%; height: 420px; object-fit: cover; }
.two-col-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
}
.two-col-text h2 { margin-bottom: 1rem; }
.two-col-text p { color: var(--grey); margin-bottom: 1.5rem; }
.two-col-text ul { margin-bottom: 1.5rem; }
.two-col-text ul li {
  padding: 0.4rem 0;
  color: var(--grey);
  padding-left: 1.5rem;
  position: relative;
}
.two-col-text ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ---- BANNER / PARALLAX BG ---- */
.banner-bg {
  position: relative;
  padding: 6rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}
.banner-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.88);
}
.banner-bg .container { position: relative; z-index: 1; }
.banner-bg h2 { margin-bottom: 1rem; }
.banner-bg p { color: #c0d0e8; max-width: 650px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---- STATS ROW ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  background: var(--dark2);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 12px;
  padding: 2.5rem 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { color: var(--grey); font-size: 0.9rem; }

/* ---- BLOG CARDS ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card {
  background: var(--dark2);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(6, 182, 212, 0.3); box-shadow: 0 8px 30px rgba(6,182,212,0.1); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-cat {
  display: inline-block;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.blog-card-body h3 a { color: var(--white); }
.blog-card-body h3 a:hover { color: var(--cyan); }
.blog-card-body p { font-size: 0.9rem; color: var(--grey); margin: 0; }
.blog-card-meta { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.8rem; color: var(--grey2); }

/* ---- ARTICLE PAGE ---- */
.article-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}
.article-meta { display: flex; gap: 1.5rem; color: var(--grey2); font-size: 0.85rem; margin-bottom: 2rem; flex-wrap: wrap; }
.article-body h2 { font-size: 1.6rem; margin: 2rem 0 1rem; color: var(--cyan3); }
.article-body h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul { margin: 1rem 0 1.5rem 1.5rem; list-style: disc; }
.article-body ul li { color: var(--grey); margin-bottom: 0.5rem; }
.article-body img { border-radius: 8px; margin: 2rem 0; width: 100%; height: 340px; object-fit: cover; }
.article-body a { color: var(--cyan); text-decoration: underline; }
.article-wrapper { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--grey2);
  font-size: 0.85rem;
  padding: 1rem 0;
}
.breadcrumb a { color: var(--grey2); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--grey); }

/* ---- CONTACT FORM ---- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--light); font-size: 0.9rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark2);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--light);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select option { background: var(--dark2); }

/* ---- FOOTER ---- */
footer {
  background: #060e1a;
  border-top: 1px solid rgba(6, 182, 212, 0.1);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { color: var(--grey); font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer-col h4 { color: var(--cyan); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--grey); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--grey2);
  font-size: 0.82rem;
}
.footer-logo img { height: 36px; }

/* ---- PLAN DU SITE ---- */
.sitemap-section { padding: 8rem 0 5rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.sitemap-block h3 { color: var(--cyan); font-size: 1rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(6,182,212,0.2); }
.sitemap-block ul li { margin-bottom: 0.5rem; }
.sitemap-block ul li a { color: var(--grey); font-size: 0.9rem; }
.sitemap-block ul li a:hover { color: var(--cyan); }

/* ---- 404 ---- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.error-code { font-size: 8rem; font-weight: 900; color: var(--cyan); line-height: 1; opacity: 0.3; }
.error-page h1 { font-size: 2rem; margin: 1rem 0; }
.error-page p { color: var(--grey); margin-bottom: 2rem; }

/* ---- TAGS ---- */
.tag {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--cyan);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin: 0.2rem;
}

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-left: 4px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(6,182,212,0.2);
  }
  .nav-links.open { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }
  .blog-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
