/* TECH-LINUX - charte du kit logo (bouclier + pingouin réseau) */
:root {
  --bg: #060B18;
  --bg-alt: #0A1631;
  --surface: #0F2148;
  --line: #1E3A8A;
  --line-soft: rgb(30 58 138 / .45);
  --text: #E0E9F7;
  --muted: #B9C6DC;
  --blue: #3B82F6;
  --blue-deep: #1D4ED8;
  --blue-light: #60A5FA;
  --cyan: #22D3EE;
  --amber: #F59E0B;
  --green: #34D399;
  --red: #F87171;
  --radius: 14px;
  --ombre: 0 10px 40px rgb(0 0 0 / .35);
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--blue-light); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
::selection { background: var(--blue-deep); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--amber); color: #000; padding: 8px 12px; border-radius: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Barre de lecture */
.progression { position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; z-index: 40; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgb(6 11 24 / .72);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.top.defile { border-bottom-color: var(--line-soft); background: rgb(6 11 24 / .9); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.12rem/1 var(--sans); letter-spacing: .05em; }
.brand:hover { color: var(--text); }
.brand img { transition: transform .4s; }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand b { color: var(--amber); }
#menu { display: flex; gap: 6px; }
#menu a { position: relative; color: var(--muted); text-decoration: none; font-size: .95rem; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
#menu a:hover { color: var(--text); background: rgb(59 130 246 / .12); }
#menu a[aria-current="page"] { color: var(--text); }
#menu a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, background .3s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; right: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff; text-decoration: none; font: 600 1rem var(--sans);
  border: 1px solid var(--blue); cursor: pointer; box-shadow: 0 6px 24px rgb(29 78 216 / .35);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgb(59 130 246 / .45); filter: brightness(1.08); }
.btn--ghost { background: rgb(15 33 72 / .5); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { color: var(--text); background: var(--surface); box-shadow: none; }
.btn--large { padding: 14px 32px; font-size: 1.05rem; }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.lien-fleche { color: var(--cyan); text-decoration: none; font-weight: 600; white-space: nowrap; }
.lien-fleche::after { content: " →"; display: inline-block; transition: transform .2s; }
.lien-fleche:hover::after { transform: translateX(4px); }

/* Accueil : bandeau */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 11vw, 130px) 0 clamp(90px, 11vw, 150px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(55% 70% at 78% 35%, rgb(29 78 216 / .38), transparent 70%), radial-gradient(40% 50% at 15% 75%, rgb(34 211 238 / .08), transparent 70%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.reseau { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .8; }
.hero__in { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 56px; }
.badge { display: inline-block; font: 500 .85rem var(--mono); color: var(--cyan); background: rgb(34 211 238 / .08); border: 1px solid rgb(34 211 238 / .3); padding: 6px 14px; border-radius: 999px; margin: 0 0 22px; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -.02em; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-light), var(--cyan), var(--blue-light)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brille 6s linear infinite; }
@keyframes brille { to { background-position: 200% center; } }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.terminal { background: rgb(4 9 22 / .88); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--ombre), 0 0 60px rgb(59 130 246 / .18); overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgb(15 33 72 / .7); border-bottom: 1px solid var(--line-soft); }
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.terminal__bar i:nth-child(2) { background: var(--amber); }
.terminal__bar i:nth-child(3) { background: var(--green); }
.terminal__bar span { margin-left: 10px; font: .8rem var(--mono); color: var(--muted); }
.terminal__ecran { margin: 0; padding: 18px 20px; height: 250px; overflow: hidden; font: .92rem/1.75 var(--mono); color: var(--text); white-space: pre-wrap; word-break: break-all; }
.terminal__ecran .p, .erreur__term .p { color: var(--cyan); }
.terminal__ecran .ok { color: var(--green); }
.curseur { display: inline-block; width: .6em; height: 1.1em; vertical-align: text-bottom; background: var(--cyan); animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }

.defiler { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line); border-radius: 14px; }
.defiler::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: molette 2s infinite; }
@keyframes molette { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Sections */
.band { padding: clamp(60px, 8vw, 100px) 0; position: relative; }
.band--alt { background: linear-gradient(180deg, var(--bg-alt), #081227); }
.band--serre { padding-top: 24px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.num { font: 600 .9rem var(--mono); color: var(--amber); vertical-align: middle; margin-right: 8px; }
.intro { color: var(--muted); max-width: 70ch; }
.titre-section { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.titre-section h2 { margin: 0; }

/* Cartes des thèmes */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.card { position: relative; display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card::before, .tuto-carte::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(34 211 238 / .13), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover, .tuto-carte:hover { color: var(--text); transform: translateY(-6px); border-color: var(--blue); box-shadow: var(--ombre); }
.card:hover::before, .tuto-carte:hover::after { opacity: 1; }
.card__ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; font: 700 1.2rem var(--mono); color: var(--c); background: rgb(255 255 255 / .04); border: 1px solid currentColor; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Cartes de tutos */
.grille-tutos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.tuto-carte { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.tuto-carte::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); }
.tuto-carte h3 { font-size: 1.18rem; margin: 14px 0 10px; }
.tuto-carte p { color: var(--muted); font-size: .95rem; margin: 0 0 18px; flex: 1; }
.tuto-carte .lire { color: var(--cyan); font-weight: 600; font-size: .92rem; }
.theme-serveurs { --c: var(--cyan); }
.theme-reseau { --c: var(--blue-light); }
.theme-securite { --c: var(--amber); }
.theme-linux { --c: var(--green); }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; }
.etiquette { font: 500 .76rem var(--mono); padding: 3px 9px; border-radius: 999px; background: rgb(255 255 255 / .05); border: 1px solid var(--line-soft); color: var(--muted); }
.etiquette--theme { color: var(--c, var(--cyan)); border-color: currentColor; background: transparent; }

/* Tutos : recherche et filtres */
.filtres { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.recherche { flex: 1 1 320px; max-width: 460px; position: relative; }
.recherche::before { content: "⌕"; position: absolute; left: 16px; top: 50%; transform: translateY(-52%); font-size: 1.3rem; color: var(--muted); }
.recherche input { width: 100%; padding: 13px 16px 13px 44px; font: 1rem var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
.recherche input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgb(34 211 238 / .15); }
.puces { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { font: 600 .9rem var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.puce:hover { color: var(--text); border-color: var(--blue); }
.puce.actif { color: #fff; background: var(--blue-deep); border-color: var(--blue); }
.vide { text-align: center; color: var(--muted); margin-top: 40px; }
.tuto-carte.masque { display: none; }
.no-js .filtres { display: none; }

/* En-tête des pages intérieures */
.page-tete { position: relative; padding: 56px 0 32px; background: radial-gradient(50% 120% at 85% 0%, rgb(29 78 216 / .28), transparent 70%); }
.page-tete h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.fil { font: .85rem var(--mono); color: var(--muted); margin: 0 0 16px; }
.fil a { color: var(--muted); text-decoration: none; }
.fil a:hover { color: var(--cyan); }

/* Article de tuto */
.tuto-tete .etiquettes { margin-top: 18px; }
.tuto-corps { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; align-items: start; }
.sommaire { position: sticky; top: 92px; font-size: .92rem; border-left: 2px solid var(--line-soft); padding-left: 18px; }
.sommaire strong { display: block; font: 600 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sommaire ul { list-style: none; margin: 0; padding: 0; }
.sommaire li { margin: 0 0 9px; }
.sommaire ul ul { padding-left: 12px; margin-top: 8px; }
.sommaire a { color: var(--muted); text-decoration: none; transition: color .2s; }
.sommaire a:hover, .sommaire a.actif { color: var(--cyan); }
.sommaire a.actif { font-weight: 600; }
.article { min-width: 0; max-width: 780px; }
.article h2 { font-size: 1.55rem; margin-top: 2.2em; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1.2rem; margin-top: 1.8em; }
.article p, .article li { color: #cfdaee; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: .3em 0; }
.article code { font: .88em var(--mono); background: rgb(59 130 246 / .12); border: 1px solid var(--line-soft); padding: .1em .4em; border-radius: 6px; color: #dbeafe; }
.article pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.article table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.article th, .article td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.article th { color: var(--text); background: var(--surface); }
.article blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid var(--blue); color: var(--muted); }

.code { position: relative; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; background: #040916; overflow: hidden; }
.code__bar { display: flex; justify-content: space-between; align-items: center; min-height: 38px; padding: 5px 8px 5px 16px; background: rgb(15 33 72 / .65); border-bottom: 1px solid var(--line-soft); font: .78rem var(--mono); color: var(--muted); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: .88rem/1.65 var(--mono); color: #dbe7fb; tab-size: 4; }
.copier { font: 600 .78rem var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; transition: all .2s; }
.copier:hover { color: var(--text); border-color: var(--blue); }
.copier.ok { color: var(--green); border-color: var(--green); }
.no-js .copier { display: none; }
/* Coloration syntaxique (classes générées par pandoc) */
.code .kw, .code .cf { color: #7dd3fc; }
.code .bu, .code .fu { color: #60a5fa; }
.code .st, .code .ss, .code .ch, .code .vs { color: #a7f3d0; }
.code .co, .code .cm { color: #64748b; font-style: italic; }
.code .dv, .code .fl, .code .bn, .code .cn { color: #fcd34d; }
.code .va, .code .at, .code .dt { color: #c4b5fd; }
.code .op, .code .ot, .code .sc { color: #f9a8d4; }
.code .ex, .code .im { color: #22d3ee; }
.code pre a { display: none; }

.encart { margin: 1.6em 0; padding: 14px 20px 14px 54px; border-radius: 12px; position: relative; border: 1px solid; }
.encart p { margin: .3em 0; color: inherit; }
.encart::before { position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 .85rem var(--mono); color: #000; }
.encart--info { background: rgb(34 211 238 / .07); border-color: rgb(34 211 238 / .35); color: #cff7fe; }
.encart--info::before { content: "i"; background: var(--cyan); }
.encart--attention { background: rgb(245 158 11 / .08); border-color: rgb(245 158 11 / .4); color: #fde9c0; }
.encart--attention::before { content: "!"; background: var(--amber); }
.tuto-pied { margin-top: 56px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.tuto-pied p { margin: 0; color: var(--muted); }

/* À propos */
.moi { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.moi__photo, .profil__carte img { border-radius: 50%; border: 3px solid var(--blue); box-shadow: 0 0 0 8px rgb(59 130 246 / .12), 0 0 50px rgb(59 130 246 / .35); }
.moi__photo { width: 200px; }
.profil { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
.profil__carte { position: sticky; top: 96px; text-align: center; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 32px 24px; }
.profil__carte img { width: 180px; margin-bottom: 18px; }
.profil__carte h2 { font-size: 1.5rem; margin-bottom: 6px; }
.profil__role { color: var(--cyan); font: .9rem var(--mono); margin: 0 0 18px; }
.profil__liens { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.profil__liens a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: .9rem; transition: all .2s; }
.profil__liens a:hover { border-color: var(--cyan); color: var(--cyan); }
.profil__texte h2 { font-size: 1.6rem; margin-top: 1.6em; }
.profil__texte h2:first-child { margin-top: 0; }
.profil__texte p { color: var(--muted); }
.frise { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px solid var(--line); }
.frise li { position: relative; margin-bottom: 26px; }
.frise li::before { content: ""; position: absolute; left: -35px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); }
.frise span { font: 600 .85rem var(--mono); color: var(--amber); }
.frise strong { display: block; font-size: 1.08rem; }
.frise p { margin: 4px 0 0; }
.competences { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.competences li { padding: 8px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); font: .9rem var(--mono); color: var(--text); transition: all .2s; }
.competences li:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* Appel à l'aide */
.aide { text-align: center; max-width: 700px; }
.aide p { color: var(--muted); margin-bottom: 26px; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.fiche { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--ombre); }
.onglets { display: inline-flex; padding: 5px; margin: 0 0 26px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.onglets label { cursor: pointer; position: relative; }
.onglets input { position: absolute; opacity: 0; pointer-events: none; }
.onglets span { display: block; padding: 9px 26px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: all .25s; }
.onglets input:checked + span { color: #fff; background: linear-gradient(135deg, var(--blue-deep), var(--blue)); box-shadow: 0 4px 16px rgb(29 78 216 / .4); }
.onglets input:focus-visible + span { outline: 3px solid var(--amber); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champ { display: flex; flex-direction: column; gap: 7px; }
.champ--large, .support-seul { grid-column: 1 / -1; }
.support-seul { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; overflow: hidden; max-height: 0; opacity: 0; margin-bottom: -18px; transition: max-height .4s ease, opacity .3s, margin .4s; }
.fiche.support .support-seul { max-height: 260px; opacity: 1; margin-bottom: 0; }
.champ > span { font-size: .9rem; font-weight: 600; color: var(--text); }
.champ em { font-weight: 400; color: var(--muted); font-style: normal; }
.champ input, .champ select, .champ textarea { width: 100%; padding: 12px 14px; font: 1rem var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.champ textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgb(34 211 238 / .14); }
.champ .invalide { border-color: var(--red); box-shadow: 0 0 0 4px rgb(248 113 113 / .12); }
.compteur { align-self: flex-end; font: .78rem var(--mono); color: var(--muted); }
.pot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.case input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.case.invalide span { color: var(--red); }
.fiche .btn { margin-top: 26px; }
.statut { margin: 18px 0 0; font-weight: 600; min-height: 1.6em; }
.statut--ok { color: var(--green); }
.statut--erreur { color: var(--red); }
.statut--cours { color: var(--cyan); }
.rouage { width: 16px; height: 16px; border: 2px solid rgb(255 255 255 / .35); border-top-color: #fff; border-radius: 50%; animation: tourne .8s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.envoye { text-align: center; padding: 30px 10px; }
.envoye__coche { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: var(--green); border: 2px solid var(--green); box-shadow: 0 0 40px rgb(52 211 153 / .3); animation: apparait .5s ease; }
.envoye p { color: var(--muted); }
@keyframes apparait { from { transform: scale(.4); opacity: 0; } }
.contact-infos { display: grid; gap: 18px; }
.info { background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px 24px; }
.info h2 { font-size: 1.08rem; margin-bottom: 10px; }
.info ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .94rem; }
.info li { margin: 5px 0; }
.info p { margin: 6px 0; }
.petit { color: var(--muted); font-size: .9rem; }

/* Texte simple (mentions légales) */
.texte { max-width: 820px; }
.texte h2 { font-size: 1.3rem; margin-top: 1.8em; }
.texte p { color: var(--muted); }

/* Pages d'erreur */
.erreur { position: relative; overflow: hidden; min-height: calc(100vh - 260px); display: grid; place-items: center; text-align: center; padding: 60px 0; isolation: isolate; }
.erreur img { margin-bottom: 20px; filter: drop-shadow(0 0 30px rgb(59 130 246 / .5)); animation: flotte 5s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-10px); } }
.erreur__term { display: inline-block; max-width: 100%; text-align: left; margin: 0 auto 22px; padding: 14px 20px; border-radius: 12px; border: 1px solid var(--line); background: rgb(4 9 22 / .85); font: .9rem/1.7 var(--mono); white-space: pre-wrap; }
.erreur__term .err { color: var(--red); }
.erreur h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: .3em; }
.erreur p { color: var(--muted); }
.erreur .cta { justify-content: center; }

/* Pied de page */
.foot { border-top: 1px solid var(--line-soft); padding: 40px 0 32px; font-size: .92rem; color: var(--muted); background: #040814; }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 22px 40px; align-items: center; }
.foot__brand { display: flex; gap: 14px; align-items: center; }
.foot__brand strong { display: block; color: var(--text); letter-spacing: .05em; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__nav a { color: var(--muted); text-decoration: none; }
.foot__nav a:hover { color: var(--cyan); }
.foot__copy { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgb(30 58 138 / .25); font-size: .85rem; }

/* Apparition au défilement (seulement si le JS tourne) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--delai, 0s); }
.js .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .grille-tutos { grid-template-columns: repeat(2, 1fr); }
  .tuto-corps { grid-template-columns: 1fr; }
  .sommaire { display: none; }
  .profil { grid-template-columns: 1fr; }
  .profil__carte { position: static; }
  .contact-grille { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  #menu { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: rgb(6 11 24 / .97); border-bottom: 1px solid var(--line-soft); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s; }
  #menu.ouvert { transform: none; opacity: 1; visibility: visible; }
  #menu a { padding: 12px; font-size: 1.05rem; }
  #menu a[aria-current="page"]::after { right: auto; width: 30px; bottom: 6px; }
  .no-js #menu { position: static; flex-direction: row; flex-wrap: wrap; opacity: 1; visibility: visible; transform: none; padding: 0; background: none; border: 0; }
  .no-js .burger { display: none; }
  .moi { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .moi__photo { margin: 0 auto; width: 150px; }
  .champs, .support-seul { grid-template-columns: 1fr; }
  .fiche.support .support-seul { max-height: 420px; }
  .foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .grille-tutos { grid-template-columns: 1fr; }
  .terminal__ecran { font-size: .8rem; height: 210px; }
  .defiler { display: none; }
  .onglets span { padding: 9px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Cours ---------- */
.cours-carte .lire { color: var(--amber); }
.cours-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 3em 0 1.5em; }
.cours-nav a { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 20px; font-weight: 600; transition: border-color .2s, transform .2s; }
.cours-nav a:hover { border-color: var(--blue); transform: translateY(-3px); }
.cours-nav span { display: block; font: 600 .8rem var(--mono); color: var(--amber); margin-bottom: 4px; }
.cours-nav__suiv { text-align: right; }
.article details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 18px; margin: 1em 0; }
.article details[open] { border-color: var(--line); }
.article summary { cursor: pointer; font-weight: 600; color: var(--cyan); }
.article details > :not(summary) { margin-top: .8em; }
@media (max-width: 640px) { .cours-nav { grid-template-columns: 1fr; } .cours-nav__suiv { text-align: left; } }
.onglets { margin-bottom: 28px; }
.onglet .compte { display: inline-block; min-width: 1.5em; margin-left: 4px; padding: 0 6px; border-radius: 999px; font: 600 .75rem var(--mono); background: rgb(255 255 255 / .08); }
.panneau + .panneau { margin-top: 48px; }
.panneau__titre { font-size: 1.4rem; }
.js .panneau__titre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .panneau + .panneau { margin-top: 0; }
.panneau .grille-tutos { margin-top: 0; }

/* ---------- Antisèche ---------- */
.grille-astuces { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.astuce { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; }
.astuce h3 { font-size: 1.02rem; margin: 0 0 12px; }
.astuce .code { margin: 0; }
.astuce pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.astuce ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.astuce.masque { display: none; }
.etiquette--teste { color: #34D399; border-color: rgb(52 211 153 / .5); }
@media (max-width: 760px) { .grille-astuces { grid-template-columns: 1fr; } }

/* ---------- Par où commencer ---------- */
.parcours { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.parcours__carte { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 28px; }
.parcours__ico { font-size: 1.8rem; }
.parcours__carte h3 { font-size: 1.3rem; margin: 10px 0 8px; }
.parcours__carte p { color: var(--muted); margin: 0 0 14px; }
.parcours__carte ol { margin: 0; padding-left: 20px; }
.parcours__carte li { margin: 6px 0; }
.puces--niveau { margin-top: 10px; }
@media (max-width: 760px) { .parcours { grid-template-columns: 1fr; } }

/* ---------- Actus : bandeau d'accueil, billets, veille ---------- */
.une { background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.une a { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--text); text-decoration: none; flex-wrap: wrap; }
.une a:hover .une__titre { color: var(--blue-light); }
.une__type { font: 700 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--blue-deep); padding: 4px 10px; border-radius: 999px; }
.une--alerte .une__type { background: var(--amber); color: #111; }
.une__titre { font-weight: 600; flex: 1 1 240px; transition: color .2s; }
.une__suite { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.actu-carte--alerte { border-color: rgb(245 158 11 / .55); }
.actu-carte--alerte .etiquette--theme { color: #111; background: var(--amber); border-color: var(--amber); }
.intro-section { color: var(--muted); margin: 8px 0 24px; }
.veille .puces { margin-bottom: 18px; }
.veille__liste { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.veille__item + .veille__item { border-top: 1px solid var(--line-soft); }
.veille__lien { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: baseline; padding: 14px 18px; color: var(--text); text-decoration: none; transition: background .2s; }
.veille__lien:hover, .veille__lien:focus-visible { background: var(--surface); }
.veille__source { font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--cyan); }
.veille__source--cert-fr-alerte { color: var(--red); }
.veille__source--cert-fr-avis { color: var(--amber); }
.veille__source--debian { color: #F472B6; }
.veille__source--noyau { color: var(--green); }
.veille__date { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.veille__maj { color: var(--muted); font-size: .85rem; margin-top: 12px; }
.veille__sources { color: var(--muted); font-size: .92rem; margin-top: 28px; padding-left: 18px; }
.veille__sources li { margin: 4px 0; }
@media (max-width: 640px) {
  .veille__lien { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
}
