:root{
  --bg: #070a12;
  --bg2:#050812;
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.06);
  --text:#e7eefc;
  --muted:#b7c4df;
  --line: rgba(255,255,255,.08);
  --accent:#16d0d0;
  --accent2:#2f77ff;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --radius: 16px;
}

*{ box-sizing: border-box; }
html{ min-height:100%; background: var(--bg2); }
body{ min-height:100vh; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 30% 0%, rgba(47,119,255,.15), transparent 70%),
    radial-gradient(900px 620px at 70% 0%, rgba(22,208,208,.10), transparent 68%),
    linear-gradient(180deg, #0b1530 0%, var(--bg) 42%, var(--bg2) 100%);
  background-color: var(--bg2);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100vh, 100% 100vh, 100% 100vh;
}

a{ color: inherit; }
.container{
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(3,6,14,.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  letter-spacing: .12em;
  font-weight: 700;
}
.brand__bar{
  width: 3px; height: 18px;
  background: var(--accent);
  border-radius: 99px;
}
.brand__text{ font-size: 14px; opacity:.95; }

.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  font-size: 14px;
}
.nav__link{
  text-decoration:none;
  color: var(--muted);
  padding: 10px 8px;
  border-bottom: 2px solid transparent;
}
.nav__link:hover{ color: var(--text); }
.nav__link.is-active{
  color: var(--text);
  border-bottom-color: var(--accent);
}
.nav__dropdown{ position: relative; }
.nav__button{
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.nav__caret{ opacity: .8; margin-left: 6px; }

.nav__menu{
  position:absolute;
  right: 0;
  top: 44px;
  min-width: 220px;
  background: rgba(6,10,22,.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  display:none;
}
.nav__dropdown.is-open .nav__menu{ display:block; }

.nav__item{
  display:block;
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}
.nav__item:hover{
  background: var(--panel2);
  color: var(--text);
}

.main{ padding: 34px 0 64px; }

.card{
  position: relative;
  overflow: hidden;

  background: rgba(8, 12, 24, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

/* Dégradé interne, continu sur toute la carte */
.card::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(900px 420px at 35% 10%, rgba(47,119,255,.14), transparent 60%),
    radial-gradient(700px 380px at 80% 25%, rgba(22,208,208,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%);
}

/* Le contenu passe au-dessus du fond */
.card > *{
  position: relative;
}

.hero{
  display:grid;
  gap: 18px;
}
.cover-page {
  min-height: 520px;
  display: grid;
  align-content: center;
  gap: 28px;
  text-align: center;
}

.cover-heading {
  display: grid;
  gap: 12px;
}

.cover-heading__label {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.cover-heading h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.cover-heading__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.cover-docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__p{ color: var(--muted); line-height: 1.7; }
.hero__p strong{ color: var(--text); }
.hero__img{
  margin-top: 8px;
  width:100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.section-title{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 26px;
  margin-bottom: 10px;
}
.section-title__bar{
  width: 3px; height: 22px;
  background: var(--accent);
  border-radius: 99px;
}
.section-title h2{ margin:0; font-size: 26px; }

.list{ margin: 12px 0 0; color: var(--muted); line-height: 1.7; }
.list li{ margin: 8px 0; }

.grid{
  display:grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .nav{ gap: 10px; }
}

.project{
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.project h3{ margin:0 0 8px; font-size: 18px; }
.project p{ margin:0 0 12px; color: var(--muted); line-height: 1.6; }
.btn{
  display:inline-block;
  text-decoration:none;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47,119,255,.9), rgba(22,208,208,.9));
  color:#061022;
  font-weight: 700;
}

.tabs {
  margin-top: 18px;
}

.tabs__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.tabs__tab {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
}

.tabs__tab:hover {
  color: var(--text);
  background: rgba(255,255,255,.04);
}

.tabs__panel {
  display: none;
}

#tab-failles:checked ~ .tabs__list label[for="tab-failles"],
#tab-presse:checked ~ .tabs__list label[for="tab-presse"],
#tab-tutoriels:checked ~ .tabs__list label[for="tab-tutoriels"],
#tab-sources:checked ~ .tabs__list label[for="tab-sources"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.06);
}

#tab-failles:checked ~ .tabs__panel--failles,
#tab-presse:checked ~ .tabs__panel--presse,
#tab-tutoriels:checked ~ .tabs__panel--tutoriels,
#tab-sources:checked ~ .tabs__panel--sources {
  display: block;
}

.veille-subsections {
  display: grid;
  gap: 22px;
}

.veille-subsection {
  padding-top: 4px;
}

.veille-subsection + .veille-subsection {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.veille-subsection h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.form{
  display:grid;
  gap: 14px;
  max-width: 520px;
}
.field label{ display:block; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.field input, .field textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}
.field textarea{ min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus{
  border-color: rgba(22,208,208,.45);
  box-shadow: 0 0 0 4px rgba(22,208,208,.10);
}

.alert{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.alert--ok{ border-color: rgba(46, 204, 113, .25); }
.alert--err{ border-color: rgba(231, 76, 60, .25); }

.footer{ padding: 24px 0 40px; }
.footer__inner{ color: rgba(255,255,255,.55); }
.footer__line{ height:1px; background: var(--line); margin-bottom: 16px; }
.footer__copy{ text-align:center; font-size: 13px; }

.elk-overview {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  line-height: 1.7;
}

.elk-image {
  text-align: center;
  margin: 20px 0;
}

.elk-image img {
  max-width: 600px; /* Image plus petite */
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.elk-overview h3 {
  margin-top: 25px;
}

.project-docs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.project-docs a {
  display: block;
  text-decoration: none;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 700;
}

.project-docs a:hover {
  border-color: rgba(22,208,208,.45);
  background: rgba(255,255,255,.07);
}

@media (max-width: 640px) {
  .project-docs {
    grid-template-columns: 1fr;
  }
}



.truenas-overview {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  line-height: 1.7;
}

.truenas-image {
  text-align: center;
  margin: 20px 0;
}

.truenas-image img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.truenas-overview h3 {
  margin-top: 25px;
}

.regular-overview {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  line-height: 1.7;
}

.regular-figure {
  margin: 20px 0 28px;
}

.regular-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(255,255,255,.96);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.regular-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.regular-overview h3 {
  margin-top: 25px;
}

.replacement-overview {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  line-height: 1.7;
}

.replacement-overview h3 {
  margin-top: 25px;
}

.replacement-overview a {
  color: var(--accent);
  font-weight: 700;
}

.replacement-figure {
  margin: 20px 0 28px;
}

.replacement-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(255,255,255,.96);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.replacement-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
