:root {
  color-scheme: dark;
  --bg: #050b12;
  --panel: #09151d;
  --text: #e3f4f2;
  --muted: #a9bfbe;
  --cyan: #55f3e5;
  --green: #9cff57;
  --line: rgba(85, 243, 229, 0.28);
  --glow: rgba(85, 243, 229, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(85, 243, 229, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85, 243, 229, 0.035) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0, #10242b 0, var(--bg) 58%);
  background-size: 36px 36px, 36px 36px, auto;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.container {
  width: min(100% - 2rem, 68rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 1;
  padding: 0.7rem 1rem;
  background: var(--green);
  color: #07100a;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  padding: 1.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 24px var(--glow);
}

.site-nav {
  margin-bottom: 2rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--cyan);
  background: var(--glow);
  color: var(--cyan);
}

.nav-links a:focus-visible,
.footer-credit a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--cyan);
  font-size: clamp(2.2rem, 7vw, 4.7rem);
  line-height: 1.05;
  text-shadow: 0 0 22px rgba(85, 243, 229, 0.24);
}

.tagline {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.intro,
.services {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.intro {
  max-width: 52rem;
}

h2 {
  margin: 0 0 1.25rem;
  color: var(--cyan);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.intro p:not(.eyebrow),
.service-list p {
  color: var(--muted);
}

strong {
  color: var(--text);
}

.callout {
  margin-top: 1.8rem;
  padding-left: 1rem;
  border-left: 3px solid var(--green);
  color: var(--text) !important;
}

.signature {
  color: var(--green) !important;
  font-weight: 700;
}

.services {
  border-top: 1px solid var(--line);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(9, 21, 29, 0.88);
  box-shadow: inset 0 0 22px rgba(85, 243, 229, 0.025);
}

.service-list h3 {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1.35;
}

.service-list p {
  margin: 0;
  font-size: 0.96rem;
}

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .site-nav {
  margin-bottom: 1rem;
}

.footer-credit {
  margin: 0;
}

.footer-credit a {
  color: var(--cyan);
  text-underline-offset: 0.2em;
}

.footer-credit a:hover {
  color: var(--green);
}

@media (max-width: 40rem) {
  .site-header {
    padding-top: 1rem;
  }

  .site-nav {
    margin-bottom: 1.5rem;
  }

  .nav-links {
    gap: 0.35rem;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.92rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Décor animé : traînées discrètes derrière le contenu */
.matrix-rain {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.matrix-trail {
  position: absolute;
  top: 0;
  display: block;
  color: var(--green);
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: clamp(0.7rem, 1.1vw, 0.95rem);
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 0 8px rgba(156, 255, 87, 0.65);
  opacity: 0;
  animation-name: matrix-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform, opacity;
}

/* Positions distinctes pour limiter le chevauchement */
.trail-1 {
  left: 9%;
  animation-duration: 24s;
  animation-delay: -11s;
}

.trail-2 {
  left: 29%;
  animation-duration: 31s;
  animation-delay: -22s;
}

.trail-3 {
  left: 49%;
  animation-duration: 27s;
  animation-delay: -7s;
}

.trail-4 {
  left: 69%;
  animation-duration: 35s;
  animation-delay: -25s;
}

.trail-5 {
  left: 89%;
  animation-duration: 29s;
  animation-delay: -16s;
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-120vh);
    opacity: 0;
  }

  12% {
    opacity: 0.11;
  }

  68% {
    opacity: 0.09;
  }

  82% {
    opacity: 0;
  }

  100% {
    transform: translateY(110vh);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .matrix-rain {
    display: none;
  }
}

.experience {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.experience h2 {
  max-width: 48rem;
}

.employer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.employer-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 10rem;
  place-items: center;
  overflow: hidden;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(9, 21, 29, 0.88);
  box-shadow: inset 0 0 22px rgba(85, 243, 229, 0.025);
}

.employer-card img {
  display: block;
  width: 100%;
  max-width: 13rem;
  height: 7rem;
  object-fit: contain;
}

.employer-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.employer-caption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--cyan);
  background: rgba(5, 11, 18, 0.92);
  color: var(--green);
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 160ms ease;
}

.employer-card:hover .employer-caption,
.employer-card:focus .employer-caption {
  opacity: 1;
}

.zeop-note {
  margin-top: 2rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .employer-caption {
    transition: none;
  }
}

/* cm.html — styles spécifiques */
.cm-page {
  --cm-accent: #69e7c2;
  --cm-panel: rgba(8, 22, 30, 0.94);
  --cm-border: rgba(105, 231, 194, 0.24);
}

.cm-page section {
  scroll-margin-top: 6rem;
  margin-block: 2.5rem;
}

.cm-intro {
  max-width: 75ch;
}

.cm-subnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.7rem max(1rem, calc((100vw - 1200px) / 2));
  border-bottom: 1px solid var(--cm-border);
  background: rgba(5, 12, 18, 0.96);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}

.cm-subnav a {
  flex: 0 0 auto;
  padding: 0.48rem 0.8rem;
  border: 1px solid rgba(105, 231, 194, 0.3);
  border-radius: 0.65rem;
  background: rgba(35, 75, 75, 0.35);
  color: var(--cm-accent);
  font-size: 0.88rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.cm-subnav a:hover,
.cm-subnav a:focus-visible {
  border-color: var(--cm-accent);
  background: rgba(49, 110, 100, 0.5);
}

.cm-subnav a:focus-visible,
.cm-card a:focus-visible {
  outline: 2px solid var(--cm-accent);
  outline-offset: 3px;
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
}

.cm-card {
  padding: 1.1rem;
  border: 1px solid var(--cm-border);
  border-radius: 0.9rem;
  background: var(--cm-panel);
}

.cm-card h3 {
  margin-top: 0;
}

.cm-card p:last-child {
  margin-bottom: 0;
}

.cm-card a {
  color: var(--cm-accent);
  overflow-wrap: anywhere;
}

.cm-list {
  padding-left: 1.25rem;
}

.cm-list li {
  margin-block: 0.55rem;
}

.cm-note {
  padding: 1rem;
  border-left: 3px solid var(--cm-accent);
  background: rgba(105, 231, 194, 0.07);
}

.cm-placeholder {
  border-style: dashed;
}

.cm-feed-list code {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .cm-subnav a {
    transition: none;
  }
}



/* Générateur DNS — cm.html */
.dns-generator { margin-top: 1.25rem; }
.dns-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 1rem; }
.dns-fieldset { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--cm-border); border-radius: .75rem; background: rgba(3, 12, 17, .45); }
.dns-fieldset legend { padding-inline: .4rem; color: var(--cm-accent); font-weight: 750; }
.dns-generator label, .dns-generator input:not([type=checkbox]), .dns-generator select { max-width: 100%; }
.dns-generator select, .dns-generator input[type=text] { display: block; width: 100%; margin-top: .35rem; padding: .65rem .75rem; border: 1px solid var(--cm-border); border-radius: .45rem; color: var(--text); background: #06121a; font: inherit; }
.dns-generator input[type=checkbox] { accent-color: var(--cm-accent); width: 1rem; height: 1rem; }
.dns-provider-info, .dns-generator small, .dns-help { color: var(--muted); font-size: .9rem; }
.dns-check-row { display: flex; align-items: flex-start; gap: .55rem; margin-block: .6rem; }
.dns-check-row input { margin-top: .4rem; flex: 0 0 auto; }
.dns-query-options { margin: .7rem 0 1rem; padding: .85rem; border-left: 2px solid var(--cm-accent); background: rgba(105, 231, 194, .04); }
.dns-query-options[hidden], .dns-output[hidden], #dns-custom-wrap[hidden] { display: none !important; }
.dns-type-heading { margin: .85rem 0 .4rem; font-weight: 700; }
.dns-types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: .4rem .8rem; }
.dns-types-grid > div { display: flex; gap: .45rem; align-items: flex-start; }
.dns-types-grid label { font-size: .9rem; }
.dns-generator-actions { margin-top: 1rem; }
.dns-generate-btn, .dns-copy-btn { cursor: pointer; border: 1px solid var(--cm-accent); border-radius: .55rem; padding: .65rem 1rem; color: #06120f; background: var(--cm-accent); font: inherit; font-weight: 750; }
.dns-generate-btn:hover, .dns-copy-btn:hover { filter: brightness(1.1); }
.dns-validation { color: #ffca7a; }
.dns-output { display: grid; gap: 1rem; margin-top: 1.2rem; }
.dns-output-block { min-width: 0; padding: 1rem; border: 1px solid var(--cm-border); border-radius: .75rem; background: rgba(2, 8, 13, .65); }
.dns-output-block h3 { margin-top: 0; }
.dns-output-block pre { max-height: 28rem; overflow: auto; padding: .85rem; border: 1px solid rgba(105, 231, 194, .15); border-radius: .45rem; background: #02080c; white-space: pre-wrap; overflow-wrap: anywhere; }
.dns-output-block code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.dns-copy-btn { margin-top: .3rem; }
.dns-disclaimer { margin-top: 1rem; }
@media (max-width: 40rem) { .dns-output-block pre { max-height: 20rem; } .dns-types-grid { grid-template-columns: 1fr 1fr; } }

/* DNS generator: warning, explanation controls */
.dns-generator-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; }
.dns-risk-warning { margin: 0; max-width: 62rem; color: var(--muted); font-size: .88rem; padding: .5rem .7rem; border: 1px solid rgba(255, 193, 95, .4); border-radius: .55rem; background: rgba(255, 193, 95, .07); }
.dns-output-buttons { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-top: .35rem; }
.dns-explain-btn { cursor: pointer; border: 1px solid var(--cm-border); border-radius: .55rem; padding: .65rem 1rem; color: var(--text); background: transparent; font: inherit; }
.dns-explain-btn:hover { border-color: var(--cm-accent); }
/* Explications pédagogiques détaillées */
.dns-explanation {
  margin-top: 0.95rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(105, 231, 194, 0.28);
  border-radius: 0.65rem;
  background: rgba(6, 19, 27, 0.9);
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--muted);
}

.dns-explanation[hidden] {
  display: none !important;
}

.dns-explanation-intro {
  margin: 0 0 0.85rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(105, 231, 194, 0.22);
  color: var(--text);
  font-size: 0.88rem;
}

.dns-explanation section + section {
  border-top: 1px solid rgba(105, 231, 194, 0.16);
  margin-top: 0.95rem;
  padding-top: 0.95rem;
}

.dns-explanation-title {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cm-accent);
  font-size: 0.94rem;
  font-weight: 750;
}

.dns-explanation-code {
  display: block;
  margin: 0.45rem 0 0.6rem;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--cm-accent);
  border-radius: 0.35rem;
  background: #02080c;
  color: #bdfbf0;
  font-family: ui-monospace, "Cascadia Code", SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dns-explanation p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
}

.dns-explanation p strong {
  color: var(--text);
}

.dns-explanation code {
  padding: 0.08rem 0.32rem;
  border-radius: 0.25rem;
  background: rgba(105, 231, 194, 0.1);
  color: #d6fff8;
  font-family: ui-monospace, "Cascadia Code", SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
}

.dns-security-tip {
  margin-top: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--green);
  border-radius: 0.35rem;
  background: rgba(156, 255, 87, 0.06);
  color: var(--text);
  font-size: 0.83rem;
}

.dns-security-tip-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 40rem) { .dns-generator-actions { flex-direction: column; } }

/* DNS output selection and script-download actions */
.dns-output-choice { margin-top: 1rem; }
.dns-output-choice .dns-check-row { margin-block: .35rem; }
.dns-output-choice input[type=checkbox] { accent-color: var(--cm-accent); width: 1rem; height: 1rem; }
.dns-script-btn { cursor: pointer; border: 1px solid var(--cm-accent); border-radius: .55rem; padding: .65rem 1rem; color: var(--cm-accent); background: transparent; font: inherit; font-weight: 700; }
.dns-script-btn:hover { background: rgba(105, 231, 194, .08); }
.dns-copy-btn, .dns-explain-btn, .dns-script-btn { min-height: 2.5rem; }
@media (max-width: 40rem) { .dns-output-buttons > button { width: 100%; } }
