/* Portfolio theme */
:root {
  --rack: #1d2125;
  --beton: #e9ecea;
  --cable: #1f5fbf;
  --led: #ffb400;
  --lien: #2fb36b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.bg-beton {
  min-height: 100vh;
  margin: 0;
  color: var(--rack);
  font-family: "Familjen Grotesk", system-ui, sans-serif;
  line-height: 1.5;
}

body a {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

header {
  min-height: 76px;
}

header a:first-child {
  color: var(--rack);
  text-decoration: none;
}

nav[aria-label="Sections du portfolio"] {
  margin-bottom: 0;
}

nav[aria-label="Sections du portfolio"] ul {
  min-height: 185px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 35px rgba(29, 33, 37, 0.12);
}

nav[aria-label="Sections du portfolio"] li {
  min-width: 0;
}

main {
  min-height: 55vh;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  letter-spacing: -0.035em;
}

h2 {
  letter-spacing: -0.02em;
}

footer {
  margin-top: 0;
}

input,
textarea,
button,
summary {
  font: inherit;
}

input,
textarea {
  outline: none;
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.15);
}

button,
input,
textarea,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

.tablette,
table,
details,
article,
section > div {
  scroll-margin-top: 2rem;
}

@media (max-width: 767px) {
  header {
    min-height: 68px;
  }

  nav[aria-label="Sections du portfolio"] ul {
    min-height: 260px;
  }

  .cisco-logo {
    right: 0.75rem;
    bottom: 0.55rem;
  }

  h1 {
    font-size: 2.55rem !important;
  }
}

body.bg-beton {
  background-color: #f1f3f6;
  background-image:
    linear-gradient(125deg, transparent 0 56%, rgba(31, 95, 191, 0.045) 56% 72%, transparent 72%),
    linear-gradient(32deg, transparent 0 14%, rgba(47, 179, 107, 0.035) 14% 30%, transparent 30%),
    linear-gradient(155deg, transparent 0 78%, rgba(29, 33, 37, 0.025) 78% 92%, transparent 92%);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100vh;
  background-attachment: fixed;
}

.port {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.8rem 0.25rem;
  border-radius: 0.5rem;
  color: #e9ecea;
  font-size: 0.875rem;
  text-decoration: none;
}

.cisco-logo {
  position: absolute;
  right: 1rem;
  bottom: 0.65rem;
  width: 9rem;
  height: 3.5rem;
  object-fit: contain;
  object-position: right bottom;
}

.port:hover {
  background: #2a3036;
}

.port:focus-visible {
  outline: 2px solid #ffb400;
  outline-offset: 2px;
}

.jack {
  position: relative;
  width: 3rem;
  height: 2.6rem;
  border: 2px solid #3a424a;
  border-radius: 0.25rem;
  background: #0f1214;
}

.jack::before {
  content: "";
  position: absolute;
  inset: 0.4rem 0.45rem auto;
  border-top: 2px dotted #8a949c;
}

.jack::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 1.1rem;
  height: 0.65rem;
  transform: translateX(-50%);
  border-radius: 0.15rem 0.15rem 0 0;
  background: #3a424a;
}

.led {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #3a424a;
}

.port:hover .led {
  background: #ffb400;
  box-shadow: 0 0 10px #ffb400;
  animation: led-balayage 900ms ease-out;
}

.port[aria-current="page"] .led {
  background: #2fb36b;
  box-shadow: 0 0 8px #2fb36b;
}

@keyframes led-balayage {
  0% { box-shadow: 0 0 0 0 rgba(255, 180, 0, 0); }
  35% { box-shadow: -16px 0 12px -4px rgba(255, 180, 0, 0.9), 16px 0 12px -4px rgba(255, 180, 0, 0.25); }
  70% { box-shadow: 16px 0 12px -4px rgba(255, 180, 0, 0.9), -16px 0 12px -4px rgba(255, 180, 0, 0.25); }
  100% { box-shadow: 0 0 8px 1px rgba(255, 180, 0, 0.8); }
}

