/* =============================================================================
   ESEOLAB — FEUILLE DE STYLE OFFICIELLE
   Charte graphique v1.0 — 2025-2026
   ============================================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* --- Variables couleurs (charte graphique) --- */
:root {
  /* Couleurs principales */
  --bg-primary:    #0A0A0A;
  --blue-electric: #3B9EFF;
  --green-neon:    #39FF14;
  --teal:          #00E5CC;

  /* Couleurs secondaires */
  --bg-secondary:  #111111;
  --bg-card:       #1A1A1A;
  --blue-deep:     #2176D2;
  --green-dark:    #22CC00;

  /* Neutres */
  --white:         #FFFFFF;
  --white-muted:   #CCCCCC;
  --gray-light:    #AAAAAA;
  --gray-dark:     #444444;
  --border-subtle: #2A2A2A;

  /* Typo */
  --font-main:  'Exo 2', 'Aptos', 'Calibri', sans-serif;
  --font-mono:  'JetBrains Mono', 'Consolas', monospace;

  /* Spacing */
  --radius:     6px;
  --card-pad:   1.5rem;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--white-muted);
  line-height: 1.6;
  font-size: 1rem;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =============================================================================
   MOTIF CIRCUIT (fond)
   ============================================================================= */
.circuit-bg {
  background-image:
    radial-gradient(circle at 1px 1px, #2A2A2A 1px, transparent 0);
  background-size: 32px 32px;
}

/* =============================================================================
   LOGO SVG INLINE
   ============================================================================= */
.logo-svg { height: 38px; width: auto; }

/* =============================================================================
   HEADER / NAVIGATION
   ============================================================================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}

nav a:hover {
  color: var(--white);
  background: rgba(59,158,255,0.1);
}

.header-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bg-primary) !important;
  background: var(--blue-electric) !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius) !important;
  letter-spacing: 0.05em;
  transition: opacity 0.2s !important;
}
.header-cta:hover { opacity: 0.85; }

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================================================
   HERO
   ============================================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

/* Fond circuit animé */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,158,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,158,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Halo lumineux */
.hero::after {
  content: '';
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,158,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-halo 6s ease-in-out infinite alternate;
}

@keyframes pulse-halo {
  from { transform: translate(0, 0) scale(1); opacity: 0.6; }
  to   { transform: translate(80px, 60px) scale(1.15); opacity: 1; }
}

/* Circuit décoratif SVG */
.hero-circuit {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0.13;
  width: 480px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(57,255,20,0.1);
  border: 1px solid rgba(57,255,20,0.25);
  color: var(--green-neon);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--green-neon);
  border-radius: 50%;
  animation: blink 2s step-end infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero h1 .accent-blue { color: var(--blue-electric); }
.hero h1 .accent-green { color: var(--green-neon); }

.hero-tagline {
  font-size: 1rem;
  font-family: var(--font-mono);
  color: var(--gray-light);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--white-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =============================================================================
   BOUTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-primary {
  background: var(--blue-electric);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(59,158,255,0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 32px rgba(59,158,255,0.55);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--blue-electric);
  color: var(--blue-electric);
}

/* =============================================================================
   LAYOUT GÉNÉRAL
   ============================================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* =============================================================================
   SECTION HEADER (titre de section)
   ============================================================================= */
.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green-neon);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green-neon);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  /* Barre d'accent verticale gauche */
  padding-left: 1rem;
  border-left: 4px solid var(--blue-electric);
}

.section-sub {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 4px solid transparent; /* alignement */
  color: var(--gray-light);
  font-size: 0.95rem;
}

/* Séparateur */
.sep {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* =============================================================================
   STATS
   ============================================================================= */
#stats {
  padding: 2.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue-electric);
  letter-spacing: -0.03em;
  font-family: var(--font-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* =============================================================================
   CARTES (carte sombre — signature ESEOLab)
   ============================================================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: var(--card-pad);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Barre d'accent gauche (signature ESEOLab) */
.card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--blue-electric);
}

.card.green::before  { background: var(--green-neon); }
.card.teal::before   { background: var(--teal); }
.card.blue::before   { background: var(--blue-electric); }

/* =============================================================================
   À PROPOS
   ============================================================================= */
#about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.about-card-title i {
  color: var(--blue-electric);
  font-size: 1rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.7;
}

/* =============================================================================
   RÉSEAUX SOCIAUX
   ============================================================================= */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.social-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.social-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.icon-blue  { background: rgba(59,158,255,0.15); color: var(--blue-electric); }
.icon-green { background: rgba(57,255,20,0.1);   color: var(--green-neon); }
.icon-teal  { background: rgba(0,229,204,0.12);  color: var(--teal); }

.social-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.social-info p {
  font-size: 0.82rem;
  color: var(--gray-light);
  line-height: 1.5;
}

.social-link-arrow {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.link-blue  { color: var(--blue-electric); }
.link-green { color: var(--green-neon); }
.link-teal  { color: var(--teal); }

.social-card:hover .social-link-arrow {
  text-decoration: underline;
}

/* =============================================================================
   PROJETS
   ============================================================================= */
#projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.project-card .project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.project-desc {
  font-size: 0.87rem;
  color: var(--white-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray-light);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* =============================================================================
   BADGES STATUT
   ============================================================================= */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  color: var(--bg-primary);
}

.badge-actif    { background: var(--green-neon); }
.badge-en_cours { background: var(--blue-electric); }
.badge-pause    { background: var(--gray-dark); color: var(--white-muted); }
.badge-termine  { background: var(--teal); }

/* =============================================================================
   ÉQUIPE
   ============================================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.avatar-blue  { background: rgba(59,158,255,0.2);  color: var(--blue-electric); border: 2px solid var(--blue-electric); }
.avatar-green { background: rgba(57,255,20,0.1);   color: var(--green-neon);    border: 2px solid var(--green-neon); }
.avatar-teal  { background: rgba(0,229,204,0.12);  color: var(--teal);          border: 2px solid var(--teal); }

.team-info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.team-info span {
  font-size: 0.78rem;
  color: var(--gray-light);
  font-family: var(--font-mono);
}

/* =============================================================================
   CONTACT
   ============================================================================= */
#contact {
  background: var(--bg-primary);
  text-align: center;
}

.contact-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(59,158,255,0.07);
  position: relative;
  overflow: hidden;
}

/* Lueur de fond */
.contact-box::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(57,255,20,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.6rem;
  border-left: none;
}

.contact-box p {
  color: var(--gray-light);
  font-size: 0.93rem;
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--blue-electric);
  background: rgba(59,158,255,0.08);
  border: 1px solid rgba(59,158,255,0.2);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}
.contact-email:hover {
  background: rgba(59,158,255,0.16);
  border-color: var(--blue-electric);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-dark);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--gray-dark);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white-muted); }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 2rem;
    gap: 0.5rem;
  }
  .burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.8rem; }
  .hero-circuit { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* =============================================================================
   ANIMATIONS D'ENTRÉE
   ============================================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: fadeUp 0.7s ease both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero-content > *:nth-child(4) { animation-delay: 0.46s; }
.hero-content > *:nth-child(5) { animation-delay: 0.58s; }
