/* ========================================
   R&L DevLink — Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Colors */
  --navy-deep: #060e1c;
  --navy: #0a1628;
  --navy-card: #10203a;
  --navy-card-hover: #142848;
  --teal: #3ecfb2;
  --teal-dim: #2a9d87;
  --teal-glow: rgba(62, 207, 178, 0.35);
  --red: #e63946;
  --white: #f4f7f8;
  --white-dim: rgba(244, 247, 248, 0.68);
  --white-faint: rgba(244, 247, 248, 0.38);
  --border: rgba(244, 247, 248, 0.1);
  --border-teal: rgba(62, 207, 178, 0.28);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing / layout */
  --container: 1320px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--teal);
}

section { position: relative; padding: 64px 0; }
@media (max-width: 768px) { section { padding: 48px 0; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy-deep);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--teal-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-teal);
  background: rgba(62, 207, 178, 0.06);
}
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 14, 28, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.01em;
}
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  color: var(--white-dim);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 22px; font-size: 14px; }

.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(--white); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--navy); flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 32px 28px; gap: 26px; font-size: 18px; transform: translateX(100%); transition: transform 0.3s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 480px) {
  .nav-cta .btn-primary { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 40px; height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 190px 0 64px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .hero { padding: 150px 0 48px; } }
.hero-circuit {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.3rem);
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--teal); }
.hero p.lead {
  font-size: 18px;
  color: var(--white-dim);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.pulse-node {
  animation: pulse 3.4s ease-in-out infinite;
  transform-origin: center;
}
.pulse-node:nth-child(2n) { animation-delay: 0.9s; }
.pulse-node:nth-child(3n) { animation-delay: 1.7s; }
@keyframes pulse {
  0%, 100% { opacity: 0.35; r: 2.4; }
  50% { opacity: 1; r: 4; }
}
.circuit-line { stroke-dasharray: 6 5; animation: dash 26s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Pillars (Gérer/Digitaliser/Développer) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: linear-gradient(180deg, var(--navy-card), transparent);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.pillar:hover { border-color: var(--border-teal); transform: translateY(-4px); }
.pillar .num { font-family: var(--font-mono); color: var(--teal); font-size: 13px; }
.pillar h3 { font-size: 24px; margin: 16px 0 10px; }
.pillar p { color: var(--white-dim); font-size: 15.5px; line-height: 1.6; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--white-dim); margin-top: 20px; font-size: 17.5px; line-height: 1.7; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 960px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-teal); background: var(--navy-card-hover); }
.service-card .num { font-family: var(--font-mono); color: var(--teal); font-size: 13px; margin-bottom: 18px; }
.service-card h3 { font-size: 23px; margin-bottom: 16px; }
.service-card p.desc { color: var(--white-dim); font-size: 15.5px; line-height: 1.65; margin-bottom: 22px; }
.service-card ul { list-style: none; margin-bottom: 26px; flex-grow: 1; }
.service-card ul li {
  font-size: 14px;
  color: var(--white-dim);
  padding: 7px 0 7px 20px;
  position: relative;
  border-top: 1px solid var(--border);
}
.service-card ul li:first-child { border-top: none; }
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.service-card .btn { align-self: flex-start; margin-top: auto; }

.service-block { margin-bottom: 18px; }
.service-block:last-of-type { margin-bottom: 22px; }
.service-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 6px;
}
.service-block p { color: var(--white-dim); font-size: 14.5px; line-height: 1.6; }
.benefit-list { list-style: none; }
.benefit-list li {
  font-size: 14.5px;
  color: var(--white-dim);
  padding: 4px 0 4px 22px;
  position: relative;
}
.benefit-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-family: var(--font-mono);
}

.step-tagline { font-weight: 600; color: var(--white); font-size: 14.5px; margin-bottom: 8px; }
.step p.step-desc { font-size: 14.5px; color: var(--white-dim); line-height: 1.55; }

.lead-line {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--teal);
  margin-top: 44px;
}

/* Notre mission (accueil) — resserrage de lecture et mise en avant, scopé à cette section uniquement */
.mission-text p { line-height: 1.62; margin-top: 13px; }
.mission-text p:first-of-type { margin-top: 20px; }
.mission-text strong { color: var(--white); font-weight: 700; }
.mission-transition {
  font-weight: 600;
  color: var(--teal) !important;
  margin-top: 22px !important;
  font-size: 16.5px;
}

/* ---------- Why us grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); }
.why-card h3 { font-size: 19px; margin-bottom: 12px; color: var(--teal); }
.why-card p { color: var(--white-dim); font-size: 15.5px; line-height: 1.6; }

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--radius); }
.step .num { font-family: var(--font-mono); font-size: 30px; color: var(--teal); display: block; margin-bottom: 14px; }
.step h3 { font-size: 17px; letter-spacing: 0.02em; margin-bottom: 9px; }
.step p { font-size: 14.5px; color: var(--white-dim); line-height: 1.55; }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px; right: -20px;
  width: 20px; height: 1px;
  background: var(--border-teal);
}
@media (max-width: 900px) { .step::after { display: none; } }

/* ---------- Realisations ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .works-grid { grid-template-columns: 1fr; } }
.work-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
}
.work-card .work-top {
  padding: 26px 26px 0;
}
.work-card .work-sector {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.work-card h3 { font-size: 20px; margin: 10px 0 12px; }
.work-card .work-body { padding: 0 26px 26px; color: var(--white-dim); font-size: 14.5px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.work-card .work-body strong { color: var(--white); font-weight: 600; }
.work-placeholder {
  border: 1px dashed var(--border-teal);
  border-radius: var(--radius);
  padding: 40px 26px;
  text-align: center;
  color: var(--white-faint);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Réalisations v2 : fiches portfolio ---------- */
:root { --amber: #d99a4e; --amber-glow: rgba(217, 154, 78, 0.28); }

.works-wrap { position: relative; }
.works-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
  display: none;
}
@media (min-width: 761px) { .works-links { display: block; } }

.works-grid-v2 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 760px) { .works-grid-v2 { grid-template-columns: 1fr; } }
.works-grid-v2 .work-card-full { grid-column: 1 / -1; max-width: 560px; margin: 0 auto; width: 100%; }

.work-card-v2 {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--navy-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.work-card-v2:hover { transform: translateY(-5px); border-color: var(--border-teal); background: var(--navy-card-hover); }

.work-card-v2-head { display: flex; align-items: center; gap: 16px; }

.medallion {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--border-teal);
  box-shadow: 0 0 14px var(--teal-glow);
  background: rgba(244, 247, 248, 0.92);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.medallion img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }

.work-card-v2-title .num { font-family: var(--font-mono); color: var(--teal); font-size: 12px; display: block; margin-bottom: 3px; }
.work-card-v2-title h3 { font-size: 19px; }
.work-sector-v2 {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.work-desc-v2 { color: var(--white-dim); font-size: 14.5px; line-height: 1.65; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-teal);
  color: var(--teal);
}
.status-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px var(--teal-glow); }
.status-badge.amber { border-color: rgba(217, 154, 78, 0.35); color: var(--amber); }
.status-badge.amber::before { background: var(--amber); box-shadow: 0 0 6px var(--amber-glow); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(62,207,178,0.16), transparent 60%), var(--navy-card);
  border: 1px solid var(--border-teal);
  padding: 70px 50px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 20px; }
.cta-band p { color: var(--white-dim); max-width: 580px; margin: 0 auto 34px; font-size: 17.5px; line-height: 1.65; }
.cta-band .hero-actions { justify-content: center; }
@media (max-width: 600px) { .cta-band { padding: 46px 24px; } }

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  height: fit-content;
}
.contact-info-card h3 { font-size: 21px; margin-bottom: 22px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 15px; color: var(--white-dim); }
.contact-line strong { color: var(--white); }
.contact-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--white-faint); }

form.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13.5px; margin-bottom: 8px; color: var(--white-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 130px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--white-dim); }
.checkbox-row input { margin-top: 3px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-note { font-size: 13px; color: var(--white-faint); }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 64px 0 30px;
  background: var(--navy-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; }
.footer-tagline { color: var(--white-dim); font-size: 14.5px; max-width: 300px; }
footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white-faint); margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500; }
footer .footer-col a, footer .footer-col p { display: block; color: var(--white-dim); font-size: 14.5px; margin-bottom: 12px; }
footer .footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--white-faint);
}
.footer-bottom a { color: var(--white-faint); }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 170px 0 64px; }
@media (max-width: 768px) { .page-hero { padding: 140px 0 48px; } }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin-bottom: 20px; }
.page-hero p { color: var(--white-dim); max-width: 660px; font-size: 17.5px; line-height: 1.7; }

/* ---------- Legal pages ---------- */
.legal-body h2 { font-size: 22px; margin: 36px 0 14px; color: var(--teal); }
.legal-body p, .legal-body li { color: var(--white-dim); font-size: 15.5px; line-height: 1.7; margin-bottom: 10px; }
.legal-body ul { padding-left: 20px; }
.legal-body { max-width: 760px; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
