/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #0A0F1F;
  --panel: #111832;
  --panel-alt: #0D1428;
  --border: #1E2A4A;
  --accent: #D9A441;
  --accent-soft: rgba(217, 164, 65, 0.14);
  --teal: #5FA8A0;
  --text: #EEF1FA;
  --text-muted: #8D96B4;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --radius-s: 4px;
  --radius-m: 10px;
}

* { box-sizing: border-box; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 10000;
  font-family: var(--font-display);
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 14px; color: var(--text-muted); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a { color: inherit; }

.subtitle {
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 48px;
  font-size: 1.02rem;
}

section {
  padding: 70px 8vw;
}

.section-alt {
  background: var(--panel-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

/* =========================================================
   INTRO SPLASH
   ========================================================= */
#intro {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease, transform 1s ease;
}
#intro.fadeout {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.intro-content { text-align: center; }

.intro-logo {
  width: 150px;
  margin-bottom: 22px;
  transform: scale(0.6);
  opacity: 0;
  animation: logo-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.intro-rule {
  width: 0;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 22px;
  animation: rule-draw 0.6s ease forwards;
  animation-delay: 0.7s;
}

.intro-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  animation: title-fade 0.8s ease forwards;
  animation-delay: 1.05s;
}

@keyframes logo-pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes rule-draw {
  to { width: 64px; }
}

@keyframes title-fade {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   NAV
   ========================================================= */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

.top-nav.scrolled {
  background: rgba(10, 15, 31, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 14px 6vw;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img { height: 64px; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 150px 8vw 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-left h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 620px;
  margin-bottom: 22px;
}

.hero-left p {
  max-width: 520px;
  font-size: 1.08rem;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin: 36px 0 34px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--accent);
  display: block;
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-s);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.92rem;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Hero network graphic */
.hero-graphic {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.hero-graphic svg { width: 100%; height: 100%; }

.hg-line {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.4;
}

.hg-line-anim {
  stroke: var(--accent);
  stroke-width: 1.6;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 2.2s ease forwards 0.4s;
}

.hg-node { fill: var(--panel); stroke: var(--accent); stroke-width: 1.5; }
.hg-node-solid { fill: var(--accent); }

.hg-label {
  font-family: var(--font-display);
  font-size: 11px;
  fill: var(--text-muted);
}

.hg-label-hub {
  fill: var(--text);
  font-weight: 600;
}

.hg-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.5;
  animation: pulse 3s ease-out infinite;
}
.hg-ring:nth-of-type(2) { animation-delay: 1.2s; }

@keyframes pulse {
  0% { r: 4px; opacity: 0.7; }
  100% { r: 16px; opacity: 0; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hg-line-anim { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-graphic { max-width: 320px; margin-top: 20px; }
}

/* =========================================================
   FEATURE LIST (services / expertises)
   ========================================================= */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature-item {
  padding: 28px 26px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.feature-item:nth-child(2n) { border-right: none; }

.feature-item h3 {
  color: var(--text);
  margin-bottom: 8px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.feature-item p { margin: 0; padding-left: 14px; font-size: 0.95rem; }

@media (max-width: 700px) {
  .feature-list { grid-template-columns: 1fr; }
  .feature-item { border-right: none !important; }
}

/* Expertises — cartes avec marque technique */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.expertise-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.expertise-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-s);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.expertise-card h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 8px; }
.expertise-card p { font-size: 0.92rem; margin: 0; }

/* =========================================================
   REALISATIONS (blocs alternés)
   ========================================================= */
.case {
  display: grid;
  grid-template-columns: 0.55fr 1.8fr;
  gap: 48px;
  align-items: start;
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}

.case:last-child { border-bottom: none; }

.case:nth-child(even) { direction: rtl; }
.case:nth-child(even) > * { direction: ltr; }

.case-media img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
}

.case h3 { color: var(--text); font-size: 1.3rem; margin-bottom: 14px; }
.case p { font-size: 0.95rem; }

@media (max-width: 800px) {
  .case, .case:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

/* =========================================================
   A PROPOS / TEAM
   ========================================================= */
.apropos-block {
  max-width: 760px;
  margin-bottom: 56px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.team-card {
  background: var(--panel);
  padding: 30px 26px;
}

.team-card h4 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.team-role {
  color: var(--teal);
  font-size: 0.85rem;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.team-card p { font-size: 0.92rem; }

/* =========================================================
   ZONE D'INTERVENTION — ligne de trajet
   ========================================================= */
.route-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 60px 0 30px;
  padding-top: 6px;
}

.route-track {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.route-stop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.route-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
  z-index: 1;
}

.route-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-align: center;
}

.route-desc {
  font-size: 0.82rem;
  text-align: center;
  max-width: 150px;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .route-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-left: 8px;
  }
  .route-track { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .route-stop { flex-direction: row; align-items: flex-start; text-align: left; }
  .route-label, .route-desc { text-align: left; max-width: none; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.contact-form { max-width: 440px; }

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background-color: var(--panel);
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.contact-form textarea { min-height: 120px; }

.contact-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-m);
  padding: 32px;
}

.contact-card h3 { color: var(--text); margin-bottom: 18px; }

.contact-intro { font-size: 0.95rem; margin-bottom: 24px; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.contact-list svg { flex-shrink: 0; }

.contact-steps {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.contact-icons {
  display: flex;
  gap: 18px;
  margin: 22px 0;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.icon-link:hover { border-color: var(--accent); transform: translateY(-2px); }

.contact-note { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 800px) {
  .two-columns { grid-template-columns: 1fr; }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 32px 8vw 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* =========================================================
   RESPONSIVE NAV
   ========================================================= */
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a {
    padding: 14px 6vw;
    display: block;
    border-top: 1px solid var(--border);
  }
}
