/* =========================================================
   LMC LAB — STYLESHEET
   Direction : interface d’ingénierie / blueprint / salle de contrôle
   ========================================================= */

:root {
  --lab-bg: #05080d;
  --lab-bg-soft: #09101a;
  --lab-panel: rgba(10, 18, 29, 0.78);
  --lab-panel-strong: rgba(12, 22, 35, 0.96);
  --lab-border: rgba(148, 163, 184, 0.16);
  --lab-border-strong: rgba(56, 189, 248, 0.36);
  --lab-text: #f8fafc;
  --lab-muted: #94a3b8;
  --lab-muted-dark: #64748b;
  --lab-accent: #38bdf8;
  --lab-accent-soft: rgba(56, 189, 248, 0.12);
  --lab-success: #4ade80;
  --lab-container: 1240px;
  --lab-radius: 4px;
  --lab-transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--lab-bg);
  color: var(--lab-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.lab-container {
  width: min(calc(100% - 48px), var(--lab-container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   FOND TECHNIQUE
   ========================================================= */

.lab-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.lab-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 0%, black 68%, transparent 100%);
}

.lab-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.09;
}

.lab-glow--one {
  top: -180px;
  right: -120px;
  background: var(--lab-accent);
}

.lab-glow--two {
  top: 52%;
  left: -280px;
  background: #2563eb;
}

/* =========================================================
   TITRE HERO — MOTS EN CONTOUR
   Renforcement de la lisibilité sans changer les couleurs.
   ========================================================= */

.lab-hero h1 span {
  color: rgba(248, 250, 252, 0.035);

  -webkit-text-stroke: 1.5px rgba(248, 250, 252, 0.68);

  text-shadow:
    0 0 1px rgba(248, 250, 252, 0.55),
    0 0 22px rgba(56, 189, 248, 0.045);
}

/* =========================================================
   IDENTITÉ LMC — LOGO CONSTRUIT EN HTML/CSS
   Aucun fichier image n’est nécessaire.
   ========================================================= */

.lab-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;

  color: #ffffff;
  text-decoration: none;
}

/* Bloc graphique contenant les lettres LMC */
.lab-brand__mark {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;

  min-width: 52px;
  height: 42px;
  padding: 0 7px;

  border: 1px solid rgba(56, 189, 248, 0.35);

  background:
    linear-gradient(
      135deg,
      rgba(56, 189, 248, 0.13),
      rgba(255, 255, 255, 0.02)
    );

  overflow: hidden;
}

/* Ligne technique supérieure */
.lab-brand__mark::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    #38bdf8,
    transparent
  );
}

/* Lettres L M C */
.lab-brand__letter {
  position: relative;
  z-index: 1;

  color: #ffffff;

  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}

/* Partie texte à droite du symbole */
.lab-brand__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* Nom principal */
.lab-brand__name {
  color: #ffffff;

  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
}

/* Mention LAB */
.lab-brand__division {
  color: #38bdf8;

  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.lab-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}


.lab-nav {
  display: flex;
  align-items: center;
  gap: 29px;
}

.lab-nav a {
  position: relative;
  color: var(--lab-muted);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: color var(--lab-transition);
}

.lab-nav a:hover,
.lab-nav a.is-active {
  color: var(--lab-text);
}

.lab-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -29px;
  height: 2px;
  background: var(--lab-accent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

.lab-nav__contact {
  padding: 10px 16px;
  border: 1px solid var(--lab-border-strong);
  color: var(--lab-text) !important;
}

.lab-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--lab-border);
  background: transparent;
  cursor: pointer;
}

.lab-menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--lab-text);
}

/* =========================================================
   HERO
   ========================================================= */

.lab-hero {
  padding: 112px 0 94px;
  border-bottom: 1px solid var(--lab-border);
}

.lab-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 92px;
  align-items: center;
}

.lab-kicker {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(74, 222, 128, 0.18);
  background: rgba(74, 222, 128, 0.04);
  color: #bbf7d0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lab-kicker__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lab-success);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: labPulse 2s infinite;
}

.lab-hero h1 {
  max-width: 820px;
  margin-top: 14px;
  font-size: clamp(3rem, 6.5vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.lab-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(248, 250, 252, 0.56);
}

.lab-hero__intro {
  max-width: 700px;
  margin-top: 30px;
  color: var(--lab-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.lab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 40px;
}

/* =========================================================
   TERMINAL
   ========================================================= */

.lab-terminal {
  position: relative;
  border: 1px solid var(--lab-border-strong);
  background: linear-gradient(180deg, rgba(11, 21, 34, 0.94), rgba(6, 12, 20, 0.96));
  box-shadow: 24px 24px 0 rgba(56, 189, 248, 0.025);
}

.lab-terminal::before,
.lab-terminal::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.lab-terminal::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--lab-accent);
  border-left: 2px solid var(--lab-accent);
}

.lab-terminal::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--lab-accent);
  border-bottom: 2px solid var(--lab-accent);
}

.lab-terminal__topbar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 17px;
  border-bottom: 1px solid var(--lab-border);
  color: var(--lab-muted);
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
}

.lab-terminal__status {
  color: var(--lab-success);
}

.lab-terminal__body {
  padding: 25px;
}

.lab-terminal__line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.13);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.lab-terminal__label {
  color: var(--lab-muted-dark);
}

.lab-terminal__line strong {
  color: var(--lab-accent);
  font-weight: 700;
}

.lab-terminal__diagram {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  margin: 35px 0 31px;
}

.terminal-node {
  min-width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lab-border);
  color: var(--lab-muted);
  font-family: "Courier New", monospace;
  font-size: 0.64rem;
  font-weight: 800;
}

.terminal-node--source,
.terminal-node--end {
  border-color: var(--lab-border-strong);
  color: var(--lab-accent);
}

.terminal-link {
  position: relative;
  height: 1px;
  background: var(--lab-border-strong);
}

.terminal-link::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lab-accent);
  box-shadow: 0 0 8px var(--lab-accent);
  animation: labFlow 2.6s linear infinite;
}

.lab-terminal__note {
  color: var(--lab-muted-dark);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.lab-toolbar {
  padding: 72px 0 28px;
}

.lab-toolbar__layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 50px;
  align-items: end;
}

.lab-toolbar h2,
.lab-method h2,
.lab-cta h2 {
  margin-top: 11px;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.lab-toolbar__controls {
  display: grid;
  gap: 16px;
  justify-items: end;
}

.lab-search {
  width: min(100%, 520px);
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--lab-border);
  background: rgba(255, 255, 255, 0.018);
}

.lab-search:focus-within {
  border-color: var(--lab-border-strong);
}

.lab-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--lab-text);
  font-size: 0.84rem;
}

.lab-search input::placeholder {
  color: var(--lab-muted-dark);
}

.lab-search > span:last-child {
  color: var(--lab-accent);
}

.lab-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lab-filter {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--lab-border);
  background: transparent;
  color: var(--lab-muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--lab-transition);
}

.lab-filter:hover,
.lab-filter.is-active {
  border-color: var(--lab-border-strong);
  background: var(--lab-accent-soft);
  color: var(--lab-text);
}

/* =========================================================
   OUTILS
   ========================================================= */

.lab-tools-section {
  padding: 32px 0 112px;
}

.lab-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--lab-border);
  border-left: 1px solid var(--lab-border);
}

.lab-tool {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-right: 1px solid var(--lab-border);
  border-bottom: 1px solid var(--lab-border);
  background: rgba(8, 15, 24, 0.48);
  transition:
    background var(--lab-transition),
    transform var(--lab-transition),
    border-color var(--lab-transition);
}

.lab-tool:hover {
  z-index: 2;
  background: rgba(12, 23, 37, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.lab-tool--featured {
  position: relative;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.12), transparent 52%),
    rgba(8, 18, 29, 0.8);
}

.lab-tool--featured::before {
  content: "PREMIER MODULE";
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 9px;
  background: var(--lab-accent);
  color: #03111b;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lab-tool[hidden] {
  display: none;
}

.lab-tool__header,
.lab-tool__meta,
.lab-tool__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.lab-tool__code {
  color: var(--lab-muted-dark);
  font-family: "Courier New", monospace;
  font-size: 0.69rem;
  font-weight: 700;
}

.lab-tool__state {
  padding: 5px 8px;
  border: 1px solid var(--lab-border);
  color: var(--lab-muted-dark);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lab-tool__state--available {
  border-color: rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.05);
  color: #bbf7d0;
}

.lab-tool__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 36px 0 28px;
  border: 1px solid var(--lab-border-strong);
  background: var(--lab-accent-soft);
  color: var(--lab-accent);
  font-family: "Courier New", monospace;
  font-size: 1.15rem;
  font-weight: 800;
}

.lab-tool__content h3 {
  margin-top: 7px;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.lab-tool__content > p:last-child {
  margin-top: 15px;
  color: var(--lab-muted);
  font-size: 0.86rem;
  line-height: 1.75;
}

.lab-tool__meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 28px;
}

.lab-tool__meta span {
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.11);
  color: var(--lab-muted-dark);
  font-size: 0.61rem;
  font-weight: 750;
}

.lab-tool__link {
  margin-top: 23px;
  padding-top: 17px;
  border-top: 1px solid var(--lab-border);
  color: var(--lab-text);
  font-size: 0.76rem;
  font-weight: 800;
}

.lab-tool__link span {
  color: var(--lab-accent);
  transition: transform var(--lab-transition);
}

.lab-tool__link:hover span {
  transform: translate(2px, -2px);
}

.lab-empty-state {
  margin-top: 36px;
  padding: 28px;
  border: 1px dashed var(--lab-border);
  color: var(--lab-muted);
  text-align: center;
}

/* =========================================================
   MÉTHODE
   ========================================================= */

.lab-method {
  padding: 110px 0;
  border-top: 1px solid var(--lab-border);
  border-bottom: 1px solid var(--lab-border);
  background: rgba(8, 14, 22, 0.5);
}

.lab-method__layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 90px;
  align-items: start;
}

.lab-method__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--lab-border);
  border-left: 1px solid var(--lab-border);
}

.lab-method__steps article {
  min-height: 245px;
  padding: 25px;
  border-right: 1px solid var(--lab-border);
  border-bottom: 1px solid var(--lab-border);
}

.lab-method__steps span {
  color: var(--lab-accent);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.lab-method__steps h3 {
  margin-top: 67px;
  font-size: 1.14rem;
}

.lab-method__steps p {
  margin-top: 11px;
  color: var(--lab-muted);
  font-size: 0.82rem;
}

/* =========================================================
   AVERTISSEMENT
   ========================================================= */

.lab-disclaimer {
  padding: 58px 0;
}

.lab-disclaimer__box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  background: rgba(250, 204, 21, 0.025);
}

.lab-disclaimer__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde68a;
  font-weight: 900;
}

.lab-disclaimer__title {
  margin-bottom: 5px;
  color: #fef3c7;
  font-size: 0.81rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lab-disclaimer__box p:last-child {
  color: var(--lab-muted);
  font-size: 0.78rem;
}

/* =========================================================
   CTA
   ========================================================= */

.lab-cta {
  padding: 100px 0;
  border-top: 1px solid var(--lab-border);
}

.lab-cta__layout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.lab-cta__layout > div {
  max-width: 790px;
}

.lab-cta__layout > div > p:last-child {
  max-width: 620px;
  margin-top: 20px;
  color: var(--lab-muted);
}

/* =========================================================
   FOOTER
   ========================================================= */

.lab-footer {
  padding: 34px 0;
  border-top: 1px solid var(--lab-border);
  background: #030609;
}

.lab-footer__layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 50px;
  align-items: center;
}

.lab-footer strong {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.lab-footer p,
.lab-footer a {
  color: var(--lab-muted-dark);
  font-size: 0.72rem;
}

.lab-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.lab-footer__links a:hover {
  color: var(--lab-text);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes labPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.48);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

@keyframes labFlow {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 5px);
  }
}

/* Respect du réglage système pour les personnes sensibles aux animations. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .lab-nav {
    gap: 18px;
  }

  .lab-hero__layout,
  .lab-toolbar__layout,
  .lab-method__layout {
    grid-template-columns: 1fr;
  }

  .lab-terminal {
    max-width: 680px;
  }

  .lab-toolbar__controls {
    justify-items: start;
  }

  .lab-filters {
    justify-content: flex-start;
  }

  .lab-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-method__steps {
    max-width: 780px;
  }
}

@media (max-width: 820px) {
  .lab-header {
    height: 70px;
  }

  .lab-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--lab-border);
    background: rgba(5, 8, 13, 0.98);
  }

  .lab-nav.is-open {
    display: flex;
  }

  .lab-nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }

  .lab-nav a.is-active::after {
    display: none;
  }

  .lab-nav__contact {
    margin-top: 10px;
    padding-inline: 14px !important;
  }

  .lab-menu-button {
    display: block;
  }

  .lab-hero {
    padding: 82px 0 72px;
  }

  .lab-hero__layout {
    gap: 58px;
  }

  .lab-cta__layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .lab-footer__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 650px) {
  .lab-container {
    width: min(calc(100% - 30px), var(--lab-container));
  }

  .lab-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.3rem);
  }

  .lab-terminal__diagram {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }

  .terminal-link {
    display: none;
  }

  .lab-tools-grid,
  .lab-method__steps {
    grid-template-columns: 1fr;
  }

  .lab-tool {
    min-height: 440px;
  }

  .lab-toolbar,
  .lab-tools-section,
  .lab-method,
  .lab-cta {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .lab-filters {
    width: 100%;
  }

  .lab-filter {
    flex: 1 1 calc(50% - 8px);
  }
}

/* =========================================================
   PAGE ACTIVE DANS LA NAVIGATION PRINCIPALE
   Utilise la couleur déjà définie par le site principal.
   ========================================================= */

.main-nav a.is-current {
  color: var(--accent-color);
}
