/* Basalt — le site. Les couleurs sont celles du logo : la roche sombre, ses ardoises, la lave. */
:root {
  --roche: #101216;
  --ardoise: #181b20;
  --dalle: #20242a;
  --filet: #2e333b;
  --cendre: #ece8e0;
  --sourd: #9aa2ad;
  --lave: #f26a2e;
  --braise: #ffa15e;
  --vert: #7fd1a0;
  --famille: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
  --rayon: 0.75rem;
  --elan: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--roche); color: var(--cendre); font: 400 1.0625rem/1.6 var(--famille); scroll-behavior: smooth; scroll-padding-top: 5rem; }

body { margin: 0; overflow-x: hidden; }

a { color: var(--braise); text-underline-offset: 0.2em; }

a:hover { color: var(--lave); }

:focus-visible { outline: 2px solid var(--lave); outline-offset: 3px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; margin: 0; text-wrap: balance; }

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }

h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 2.5rem; }

h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; max-width: 62ch; }

code, pre { font-family: var(--mono); font-size: 0.88em; }

:not(pre) > code { background: var(--dalle); border-radius: 0.3rem; padding: 0.1em 0.4em; }

img { height: auto; max-width: 100%; }

.cadre { margin: 0 auto; max-width: 74rem; padding: 0 1.5rem; }

.evitement { background: var(--lave); color: var(--roche); left: 1rem; padding: 0.5rem 1rem; position: absolute; top: -4rem; z-index: 30; }

.evitement:focus { top: 1rem; }

[hidden], [data-cache] { display: none !important; }

/* ---- L'en-tête, qui reste en haut ---- */
.tete { backdrop-filter: blur(14px); background: rgb(16 18 22 / 0.78); border-bottom: 1px solid transparent; position: sticky; top: 0; transition: border-color 0.3s; z-index: 20; }

.tete.defilee { border-bottom-color: var(--filet); }

.tete .cadre { align-items: center; display: flex; gap: 1rem 2rem; justify-content: space-between; min-height: 4.25rem; }

.marque { align-items: center; color: var(--cendre); display: flex; font-size: 1.35rem; font-weight: 700; gap: 0.7rem; text-decoration: none; }

.marque:hover { color: var(--cendre); }

.marque img { border-radius: 0.5rem; height: 2.25rem; transition: transform 0.4s var(--elan); width: 2.25rem; }

.marque:hover img { transform: translateY(-3px); }

.menu { align-items: center; display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }

.menu a { border-radius: 0.5rem; color: var(--sourd); display: block; padding: 0.5rem 0.9rem; position: relative; text-decoration: none; transition: color 0.2s, background 0.2s; }

.menu a:hover { background: var(--dalle); color: var(--cendre); }

.menu a[aria-current="page"] { color: var(--cendre); }

.menu a[aria-current="page"]::after { background: var(--lave); border-radius: 2px; bottom: 0.15rem; content: ""; height: 2px; left: 0.9rem; position: absolute; right: 0.9rem; }

.menu a.hors { border: 1px solid var(--filet); color: var(--cendre); margin-left: 0.6rem; }
/* Le choix de la langue : drapeau et code, la liste dessous */
.langues { margin-left: 0.3rem; position: relative; }

.langues summary { align-items: center; border: 1px solid transparent; border-radius: 0.5rem; color: var(--sourd); cursor: pointer; display: flex; font-size: 0.92rem; font-weight: 600; gap: 0.45rem; list-style: none; padding: 0.5rem 0.7rem; transition: color 0.2s, background 0.2s; }

.langues summary::-webkit-details-marker { display: none; }

.langues summary::after { border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; content: ""; height: 0.4rem; margin: -0.2rem 0 0 0.1rem; transform: rotate(45deg); transition: transform 0.2s; width: 0.4rem; }

.langues[open] summary::after { margin-top: 0.2rem; transform: rotate(225deg); }

.langues summary:hover, .langues[open] summary { background: var(--dalle); color: var(--cendre); }

.langues img { border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); display: block; height: 0.875rem; width: 1.25rem; }

.langues ul { background: var(--ardoise); border: 1px solid var(--filet); border-radius: 0.65rem; box-shadow: 0 14px 36px rgb(0 0 0 / 0.45); list-style: none; margin: 0; min-width: 11rem; padding: 0.35rem; position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 20; }

.langues ul a { align-items: center; border-radius: 0.45rem; color: var(--cendre); display: flex; gap: 0.6rem; padding: 0.55rem 0.7rem; text-decoration: none; }

.langues ul a:hover { background: var(--dalle); }

.langues ul a span { font-weight: 600; width: 1.6rem; }

.langues ul a small { color: var(--sourd); }

.langues ul a[aria-current="true"] { background: var(--dalle); box-shadow: inset 2px 0 0 var(--lave); }

.menu-bouton { display: none; }

/* ---- Boutons et liens ---- */
button, .bouton { align-items: center; background: var(--dalle); border: 1px solid var(--filet); border-radius: 0.55rem; color: var(--cendre); cursor: pointer; display: inline-flex; font: 600 0.98rem var(--famille); justify-content: center; min-height: 2.75rem; padding: 0.5rem 1.15rem; text-decoration: none; transition: transform 0.2s var(--elan), background 0.2s, border-color 0.2s, box-shadow 0.2s; }

button:hover, .bouton:hover { border-color: var(--sourd); color: var(--cendre); transform: translateY(-2px); }

button:active, .bouton:active { transform: translateY(0); }

button:disabled { cursor: progress; opacity: 0.6; transform: none; }

.bouton.plein, button.plein { background: var(--lave); border-color: var(--lave); color: #14161a; }

.bouton.plein:hover, button.plein:hover { background: var(--braise); border-color: var(--braise); box-shadow: 0 8px 28px rgb(242 106 46 / 0.3); color: #14161a; }

button.large { width: 100%; }

button.danger { border-color: #7a3524; color: #ff9c85; }

button.danger:hover { background: #3a1c15; border-color: #c0553b; color: #ffc2b3; }

.lien { align-self: center; font-weight: 600; }

.suite { align-items: center; display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-top: 1.6rem; }

.suite.sans-marge { margin-top: 0; }

.suite.centre { justify-content: center; margin-top: 3rem; }

/* ---- L'accueil : le titre, la console, et les orgues de basalte qui montent ---- */
.accueil { overflow: hidden; padding: 4.5rem 0 0; position: relative; }

.accueil-grille { align-items: center; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); position: relative; z-index: 2; }

.version { color: var(--sourd); font-size: 0.95rem; margin-bottom: 1.4rem; }

.version { align-items: center; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.version a { background: var(--dalle); border: 1px solid var(--filet); border-radius: 2rem; color: var(--cendre); font-weight: 600; padding: 0.25rem 0.8rem; text-decoration: none; transition: border-color 0.2s; }

.version a:hover { border-color: var(--lave); }

.accueil .chapo { color: var(--sourd); font-size: 1.25rem; margin: 1.5rem 0 0; max-width: 44ch; }

.orgues { overflow: visible; display: block; height: clamp(11rem, 26vw, 23.75rem); margin-top: 2.5rem; width: 100%; }

.colonne { transform-box: fill-box; transition: transform 0.35s var(--elan); }

.rang:not(.fond) .colonne:hover { transform: translateY(-12px); }

.lueur { transform-box: fill-box; transform-origin: center; }

.braise { opacity: 0; }

/* ---- Les fenêtres : console, code, dossier ---- */
.fenetre { background: var(--ardoise); border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: 0 24px 60px rgb(0 0 0 / 0.35); min-width: 0; overflow: hidden; }

.fenetre > header, .onglets.dans-fenetre .onglets-barre { align-items: center; background: var(--dalle); border-bottom: 1px solid var(--filet); color: var(--sourd); display: flex; font-size: 0.9rem; gap: 0.9rem; min-height: 2.9rem; padding: 0.35rem 0.5rem 0.35rem 1rem; }

.pastilles { display: flex; gap: 0.4rem; }

.pastilles i { background: var(--filet); border-radius: 50%; height: 0.7rem; width: 0.7rem; }

.fenetre-titre { flex: 1; }

.copier { font-size: 0.85rem; min-height: 2.1rem; padding: 0.2rem 0.8rem; }

.copier.fait { border-color: var(--vert); color: var(--vert); }

.fenetre pre { line-height: 1.7; margin: 0; overflow-x: auto; padding: 1.1rem 1.2rem; }

.accueil-console pre { overflow-wrap: anywhere; white-space: pre-wrap; }

.fenetre .sortie { color: var(--vert); font-family: var(--mono); font-size: 0.88em; margin: 0; padding: 0 1.2rem 1.1rem; }

.frappe .curseur { animation: clignoter 1s steps(1) infinite; background: var(--lave); display: inline-block; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; width: 0.55em; }

.c-com { color: #6f7885; }

.c-txt { color: #b9d99a; }

.c-mot { color: var(--braise); }

.arbre { list-style: none; margin: 0; padding: 0.6rem 0; }

.arbre li { align-items: baseline; border-left: 2px solid transparent; display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; justify-content: space-between; padding: 0.55rem 1.2rem; transition: background 0.2s, border-color 0.2s; }

.arbre li:hover { background: var(--dalle); border-left-color: var(--lave); }

.arbre b { font-family: var(--mono); font-size: 0.92em; font-weight: 600; }

.arbre span { color: var(--sourd); font-size: 0.92rem; }

/* ---- Les onglets ---- */
.onglets-barre { display: flex; flex-wrap: wrap; gap: 0.3rem; }

[role="tab"] { background: none; border-color: transparent; color: var(--sourd); min-height: 2.4rem; }

[role="tab"]:hover { background: var(--dalle); border-color: transparent; color: var(--cendre); transform: none; }

[role="tab"][aria-selected="true"] { background: var(--dalle); border-color: var(--filet); color: var(--cendre); }

.js .volet { animation: volet 0.35s var(--elan); }

html:not(.js) .volet + .volet { border-top: 1px solid var(--filet); margin-top: 1.5rem; padding-top: 1.5rem; }

.onglets.dans-fenetre .onglets-barre { gap: 0.2rem; padding-left: 0.5rem; }

.onglets.dans-fenetre [role="tab"] { font-family: var(--mono); font-size: 0.85rem; font-weight: 500; min-height: 2.1rem; padding: 0.2rem 0.8rem; }

.onglets.dans-fenetre [role="tab"][aria-selected="true"] { background: var(--ardoise); box-shadow: inset 0 -2px 0 var(--lave); }

.fenetre.code pre { min-height: 15.5rem; }

.onglets.cote { display: grid; gap: 1.5rem 3rem; grid-template-columns: 16rem minmax(0, 1fr); }

.onglets.cote .onglets-barre { align-content: start; display: grid; gap: 0.25rem; }

.onglets.cote [role="tab"] { border-left: 2px solid var(--filet); border-radius: 0 0.5rem 0.5rem 0; font-size: 1.05rem; justify-content: flex-start; min-height: 2.9rem; text-align: left; }

.onglets.cote [role="tab"][aria-selected="true"] { border-color: transparent; border-left: 2px solid var(--lave); }

.onglets.cote .volet { align-self: start; background: var(--roche); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 2rem; }

.onglets.cote .volet > p { font-size: 1.3rem; font-weight: 600; margin-bottom: 1.4rem; }

.puces { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }

.puces li { background: var(--dalle); border: 1px solid var(--filet); border-radius: 2rem; padding: 0.35rem 0.95rem; }

.js .volet .puces li { animation: volet 0.4s var(--elan) backwards; }

.js .volet .puces li:nth-child(2) { animation-delay: 40ms; }
.js .volet .puces li:nth-child(3) { animation-delay: 80ms; }
.js .volet .puces li:nth-child(4) { animation-delay: 120ms; }
.js .volet .puces li:nth-child(5) { animation-delay: 160ms; }
.js .volet .puces li:nth-child(6) { animation-delay: 200ms; }
.js .volet .puces li:nth-child(7) { animation-delay: 240ms; }
.js .volet .puces li:nth-child(8) { animation-delay: 280ms; }
.js .volet .puces li:nth-child(9) { animation-delay: 320ms; }

.onglets.grands > .onglets-barre, .onglets.egaux > .onglets-barre { background: var(--ardoise); border: 1px solid var(--filet); border-radius: 0.8rem; display: inline-flex; margin-bottom: 2rem; padding: 0.3rem; }

.onglets.egaux > .onglets-barre { display: grid; grid-template-columns: 1fr 1fr; }

.onglets.grands .volet { max-width: 46rem; }

.onglets.grands .volet > p:first-child { color: var(--sourd); font-size: 1.1rem; }

/* ---- Les mesures ---- */
.mesures { background: var(--ardoise); border-block: 1px solid var(--filet); padding: 2.6rem 0 2.2rem; position: relative; z-index: 3; }

.mesures dl { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(4, 1fr); margin: 0 0 1.4rem; }

.mesures dd { font-size: clamp(2rem, 4.4vw, 3.2rem); font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; margin: 0; }

.mesures dt { color: var(--sourd); margin-top: 0.4rem; }

.mesures dl > div { border-left: 2px solid var(--filet); display: flex; flex-direction: column; padding-left: 1.1rem; }

.mesures dl > div:first-child { border-left-color: var(--lave); }

.mesures p { color: var(--sourd); font-size: 0.95rem; margin: 0; max-width: none; }

/* ---- Les sections ---- */
.bande { padding: 6rem 0; }

.bande.creuse { background: var(--ardoise); border-block: 1px solid var(--filet); }

.duo { align-items: center; display: grid; gap: 2.5rem 4.5rem; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); margin-bottom: 6rem; }

.duo.inverse > :first-child { order: 2; }

.duo h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: 1rem; }

.duo p { color: var(--sourd); font-size: 1.08rem; }

.capture { margin: 0; }

.capture img { border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: 0 24px 60px rgb(0 0 0 / 0.4); display: block; }

.capture figcaption { color: var(--sourd); font-size: 0.9rem; margin-top: 0.8rem; }

.apres { margin-top: 1.5rem; }

.bande .apres { color: var(--sourd); margin-top: 2.5rem; }

/* Les étapes : une vraie suite, donc numérotée */
.etapes { counter-reset: etape; display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }

.etapes li { border-top: 2px solid var(--filet); counter-increment: etape; padding: 1.4rem 1.5rem 0 0; position: relative; }

.etapes li::before { color: var(--lave); content: counter(etape); display: block; font-size: 2.6rem; font-weight: 700; line-height: 1; margin-bottom: 0.8rem; }

.etapes li::after { background: var(--lave); content: ""; height: 2px; left: 0; position: absolute; top: -2px; width: 3rem; }

.etapes h3 { margin-bottom: 0.5rem; }

.etapes p { color: var(--sourd); margin: 0; }

/* ---- Les entrées au défilement ---- */
.js [data-entree] { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.7s var(--elan), transform 0.7s var(--elan); }

.js [data-entree].vu { opacity: 1; transform: none; }

.js .js .js /* ---- Les pages simples ---- */
.page { padding-bottom: 6rem; padding-top: 4rem; }

.page-tete { margin-bottom: 2.5rem; }

.page-tete h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }

.chapo { color: var(--sourd); font-size: 1.2rem; margin: 1rem 0 0; }

.plus-bas { margin-top: 4.5rem; }

.plus-bas h2 { margin-bottom: 2rem; }

.carte { background: var(--ardoise); border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.8rem; }

.carte h2 { font-size: 1.4rem; margin-bottom: 1.3rem; }

.discret { border-top: 1px solid var(--filet); color: var(--sourd); font-size: 0.92rem; margin: 1.5rem 0 0; padding-top: 1.2rem; }

.erreur { color: #ff9c85; margin: 0; }

.faits { border-collapse: collapse; width: 100%; }

.faits th, .faits td { border-top: 1px solid var(--filet); padding: 0.85rem 0; text-align: left; vertical-align: middle; }

.faits th { padding-right: 2rem; }

.faits td { color: var(--sourd); }

#version { color: var(--sourd); }

#fichiers { list-style: none; margin: 1.2rem 0 0; max-width: 34rem; padding: 0; }

#fichiers li { border-top: 1px solid var(--filet); display: flex; gap: 1rem; justify-content: space-between; padding: 0.6rem 0; }

#fichiers span { color: var(--sourd); white-space: nowrap; }

/* Les formulaires */
.formulaire { display: grid; gap: 1.1rem; }

.formulaire label { display: grid; font-weight: 600; gap: 0.4rem; }

.formulaire label small { color: var(--sourd); font-weight: 400; }

input { background: var(--roche); border: 1px solid var(--filet); border-radius: 0.55rem; color: inherit; font: inherit; font-weight: 400; min-height: 2.9rem; padding: 0.45rem 0.85rem; transition: border-color 0.2s, box-shadow 0.2s; width: 100%; }

input:hover { border-color: var(--sourd); }

input:focus { border-color: var(--lave); box-shadow: 0 0 0 3px rgb(242 106 46 / 0.22); outline: none; }

input::placeholder { color: #626a75; }

/* Le compte : le texte à gauche, la carte à droite */
.porte { align-items: center; display: grid; gap: 3rem 5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); min-height: calc(100vh - 20rem); padding-bottom: 5rem; padding-top: 4rem; }

.coches { list-style: none; margin: 2rem 0 0; padding: 0; }

.coches li { margin-bottom: 0.7rem; padding-left: 1.9rem; position: relative; }

.coches li::before { background: var(--lave); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); content: ""; height: 0.75rem; left: 0; position: absolute; top: 0.45rem; width: 0.85rem; }

.porte-carte { padding: 1.4rem; }

/* Mon espace */
.espace-tete { align-items: end; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }

.espace-grille { align-items: start; display: grid; gap: 2.5rem 3rem; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }

.espace-grille h2 { font-size: 1.5rem; margin-bottom: 1.3rem; }

.serveurs { display: grid; gap: 0.9rem; list-style: none; margin: 0; padding: 0; }

.serveurs li { align-items: center; background: var(--ardoise); border: 1px solid var(--filet); border-left: 3px solid var(--lave); border-radius: var(--rayon); display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: space-between; padding: 1.2rem 1.4rem; transition: transform 0.3s var(--elan), border-color 0.3s; }

.js .serveurs li { animation: volet 0.45s var(--elan) backwards; }

.serveurs li:hover { border-color: var(--sourd); border-left-color: var(--braise); transform: translateX(4px); }

.serveurs strong { display: block; font-size: 1.2rem; }

.serveurs small { color: var(--sourd); font-family: var(--mono); font-size: 0.82rem; overflow-wrap: anywhere; }

.vide { border: 1px dashed var(--filet); border-radius: var(--rayon); color: var(--sourd); max-width: none; padding: 2.2rem 1.5rem; text-align: center; }

.repli { border-top: 1px solid var(--filet); padding-top: 1.2rem; }

.repli summary { color: var(--sourd); cursor: pointer; font-weight: 600; }

.repli summary:hover { color: var(--cendre); }

.repli[open] summary { margin-bottom: 1.2rem; }

.repli .formulaire { max-width: 26rem; }

/* ---- La documentation ---- */
.doc { align-items: start; display: grid; gap: 3rem; grid-template-columns: 14.5rem minmax(0, 1fr) 13rem; padding-bottom: 6rem; padding-top: 3rem; }

.sommaire, .ici { max-height: calc(100vh - 7rem); overflow-y: auto; position: sticky; top: 5.5rem; }

.sommaire summary { display: none; }

.sommaire ul, .ici ul { list-style: none; margin: 0; padding: 0; }

.sommaire li a, .ici li a { border-left: 2px solid var(--filet); color: var(--sourd); display: block; padding: 0.35rem 0.9rem; text-decoration: none; transition: color 0.2s, border-color 0.2s; }

.sommaire li a:hover, .ici li a:hover { border-left-color: var(--sourd); color: var(--cendre); }

.sommaire li a[aria-current="page"], .ici li a.ici-actif { border-left-color: var(--lave); color: var(--cendre); }

.sommaire h2, .ici h2 { color: var(--sourd); font-size: 0.9rem; font-weight: 600; letter-spacing: 0; margin: 1.5rem 0 0.5rem; }

.sommaire h2:first-child, .ici h2 { margin-top: 0; }

.ici li a { font-size: 0.92rem; padding-block: 0.25rem; }

.texte { min-width: 0; }

.texte h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1.5rem; }

.texte h2 { border-top: 1px solid var(--filet); font-size: 1.65rem; margin: 3rem 0 1rem; padding-top: 2rem; }

.texte h3 { font-size: 1.22rem; margin: 2.2rem 0 0.7rem; }

.texte p, .texte li { max-width: 72ch; }

.texte li { margin-bottom: 0.3rem; }

.texte pre { background: var(--ardoise); border: 1px solid var(--filet); border-radius: var(--rayon); line-height: 1.65; overflow-x: auto; padding: 1.1rem 1.2rem; }

.defile { margin: 1.4rem 0; overflow-x: auto; }

.texte table { border-collapse: collapse; min-width: 100%; }

.texte th, .texte td { border-bottom: 1px solid var(--filet); padding: 0.6rem 0.9rem 0.6rem 0; text-align: left; vertical-align: top; }

.texte th { color: var(--sourd); font-weight: 600; }

.texte blockquote { background: var(--ardoise); border-left: 3px solid var(--lave); border-radius: 0 var(--rayon) var(--rayon) 0; color: var(--sourd); margin: 1.4rem 0; padding: 0.9rem 1.2rem; }

.texte blockquote p:last-child { margin: 0; }

.voisins { border-top: 1px solid var(--filet); display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin-top: 4rem; padding-top: 2rem; }

.voisins a { border: 1px solid var(--filet); border-radius: var(--rayon); color: var(--cendre); font-weight: 600; padding: 1rem 1.2rem; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--elan); }

.voisins a:hover { border-color: var(--lave); transform: translateY(-2px); }

.voisins small { color: var(--sourd); display: block; font-weight: 400; }

.voisins .suivant { text-align: right; }

/* ---- Le pied ---- */
.pied { border-top: 1px solid var(--filet); color: var(--sourd); padding: 3.5rem 0 3rem; }

.pied-haut { display: flex; flex-wrap: wrap; gap: 2.5rem 5rem; justify-content: space-between; margin-bottom: 2.5rem; }

.pied nav { display: flex; flex-wrap: wrap; gap: 2rem 4rem; }

.pied h2 { color: var(--cendre); font-size: 1rem; letter-spacing: 0; margin-bottom: 0.8rem; }

.pied ul { list-style: none; margin: 0; padding: 0; }

.pied li { margin-bottom: 0.4rem; }

.pied a:not(.marque) { color: var(--sourd); text-decoration: none; }

.pied a:not(.marque):hover { color: var(--braise); }

.pied p { border-top: 1px solid var(--filet); font-size: 0.92rem; margin: 0; max-width: none; padding-top: 1.5rem; }

/* ---- Les animations ---- */
@keyframes monter { from { transform: translateY(100%); } to { transform: none; } }

@keyframes paraitre { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }

@keyframes volet { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }

@keyframes respirer { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 1; transform: scale(1.06); } }

@keyframes braise { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 0.9; } 100% { opacity: 0; transform: translate(14px, -150px); } }

@keyframes clignoter { 50% { opacity: 0; } }

@keyframes battre { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.js .rang .colonne { animation: monter 1.1s var(--elan) backwards; }

.js .rang.fond .colonne { animation-duration: 1.5s; }

.js .rang .colonne:nth-child(1) { animation-delay: 575ms; }
.js .rang .colonne:nth-child(2) { animation-delay: 530ms; }
.js .rang .colonne:nth-child(3) { animation-delay: 485ms; }
.js .rang .colonne:nth-child(4) { animation-delay: 440ms; }
.js .rang .colonne:nth-child(5) { animation-delay: 395ms; }
.js .rang .colonne:nth-child(6) { animation-delay: 350ms; }
.js .rang .colonne:nth-child(7) { animation-delay: 305ms; }
.js .rang .colonne:nth-child(8) { animation-delay: 260ms; }
.js .rang .colonne:nth-child(9) { animation-delay: 215ms; }
.js .rang .colonne:nth-child(10) { animation-delay: 170ms; }
.js .rang .colonne:nth-child(11) { animation-delay: 125ms; }
.js .rang .colonne:nth-child(12) { animation-delay: 80ms; }
.js .rang .colonne:nth-child(13) { animation-delay: 125ms; }
.js .rang .colonne:nth-child(14) { animation-delay: 170ms; }
.js .rang .colonne:nth-child(15) { animation-delay: 215ms; }
.js .rang .colonne:nth-child(16) { animation-delay: 260ms; }
.js .rang .colonne:nth-child(17) { animation-delay: 305ms; }
.js .rang .colonne:nth-child(18) { animation-delay: 350ms; }
.js .rang .colonne:nth-child(19) { animation-delay: 395ms; }
.js .rang .colonne:nth-child(20) { animation-delay: 440ms; }
.js .rang .colonne:nth-child(21) { animation-delay: 485ms; }
.js .rang .colonne:nth-child(22) { animation-delay: 530ms; }
.js .rang .colonne:nth-child(23) { animation-delay: 575ms; }
.js .rang .colonne:nth-child(24) { animation-delay: 620ms; }

.js .lueur { animation: paraitre 1.2s 1s backwards, respirer 5s 2.2s ease-in-out infinite; }

.js .braise { animation: braise 3.6s 1.6s ease-out infinite; transform-box: fill-box; }

.braise:nth-of-type(1) { animation-delay: 0ms; animation-duration: 3400ms; }
.braise:nth-of-type(2) { animation-delay: 700ms; animation-duration: 4200ms; }
.braise:nth-of-type(3) { animation-delay: 1500ms; animation-duration: 3000ms; }
.braise:nth-of-type(4) { animation-delay: 2300ms; animation-duration: 4600ms; }
.braise:nth-of-type(5) { animation-delay: 3100ms; animation-duration: 3600ms; }
.braise:nth-of-type(6) { animation-delay: 1100ms; animation-duration: 5000ms; }

.js .lave .coeur { animation: battre 2.6s 1.6s ease-in-out infinite; }

.js .accueil-texte > * { animation: paraitre 0.8s var(--elan) backwards; }

.js .accueil-texte > :nth-child(2) { animation-delay: 80ms; }
.js .accueil-texte > :nth-child(3) { animation-delay: 160ms; }
.js .accueil-texte > :nth-child(4) { animation-delay: 240ms; }

.js .accueil-console { animation: paraitre 0.9s 0.3s var(--elan) backwards; }

.js .page-tete > *, .js .porte > * { animation: paraitre 0.7s var(--elan) backwards; }

.js .porte > :nth-child(2) { animation-delay: 120ms; }

/* ---- Les petits écrans ---- */
@media (max-width: 68rem) {
  .doc { grid-template-columns: 14rem minmax(0, 1fr); }
  .ici { display: none; }
  }

@media (max-width: 56rem) {
  .accueil { padding-top: 2.5rem; }
  .accueil-grille, .duo, .porte, .espace-grille { grid-template-columns: minmax(0, 1fr); }
  .duo { gap: 1.8rem; margin-bottom: 4rem; }
  .duo.inverse > :first-child { order: 0; }
  .porte { min-height: 0; padding-top: 2.5rem; }
  .bande { padding: 4rem 0; }
  .onglets.cote { grid-template-columns: minmax(0, 1fr); }
  .onglets.cote .onglets-barre { display: flex; flex-wrap: wrap; }
  .onglets.cote [role="tab"] { border: 1px solid var(--filet); border-radius: 2rem; font-size: 0.98rem; min-height: 2.5rem; }
  .onglets.cote [role="tab"][aria-selected="true"] { border: 1px solid var(--lave); }
  .onglets.cote .volet { padding: 1.4rem; }
  .etapes { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.5rem; }
  .sommaire { background: var(--ardoise); border: 1px solid var(--filet); border-radius: var(--rayon); max-height: none; padding: 0.4rem 1.1rem; position: static; }
  .sommaire summary { cursor: pointer; display: block; font-weight: 600; padding: 0.5rem 0; }
  .sommaire[open] summary { border-bottom: 1px solid var(--filet); margin-bottom: 1rem; }
  .sommaire nav { padding-bottom: 0.8rem; }
  .js .menu-bouton { background: none; border-color: var(--filet); display: inline-grid; gap: 4px; min-height: 2.6rem; padding: 0.6rem 0.75rem; }
  .menu-bouton span { background: var(--cendre); border-radius: 2px; display: block; height: 2px; transition: transform 0.3s var(--elan), opacity 0.2s; width: 1.3rem; }
  .menu-bouton b { clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; width: 1px; }
  .menu-bouton[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-bouton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-bouton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .tete .cadre { flex-wrap: wrap; }
  .tete nav { width: 100%; }
  .js .tete nav { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--elan); }
  .js .tete nav.ouvert { grid-template-rows: 1fr; }
  .js .tete nav > ul { min-height: 0; overflow: hidden; }
  .menu { align-items: stretch; flex-direction: column; gap: 0; }
  .js .tete nav.ouvert .menu { padding-bottom: 1rem; }
  .menu a { padding: 0.75rem 0.4rem; }
  .menu a[aria-current="page"]::after { bottom: 0.4rem; left: 0.4rem; right: auto; width: 2rem; }
  .menu a.hors { margin: 0.5rem 0 0; text-align: center; }
  .langues { margin: 0.4rem 0 0; }
  .langues ul { box-shadow: none; position: static; margin-top: 0.3rem; }
  html:not(.js) .menu { flex-direction: row; flex-wrap: wrap; padding-bottom: 0.8rem; }
}

@media (max-width: 40rem) {
  .mesures dl { grid-template-columns: repeat(2, 1fr); }
    .voisins { grid-template-columns: minmax(0, 1fr); }
  .voisins .suivant { text-align: left; }
  .onglets.grands > .onglets-barre { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .onglets.grands [role="tab"] { font-size: 0.9rem; padding-left: 0.2rem; padding-right: 0.2rem; }
  .suite .bouton { flex: 1 1 auto; }
  .serveurs li > div:last-child { width: 100%; }
  .serveurs li .bouton { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-entree] { opacity: 1; transform: none; }
  .braise { display: none; }
}

/* ---- Les plugins ---- */
.cache { clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: absolute; width: 1px; }

.recherche { margin-bottom: 1.5rem; max-width: 34rem; }

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

.plugins a { background: var(--ardoise); border: 1px solid var(--filet); border-radius: var(--rayon); color: inherit; display: grid; gap: 0.5rem; height: 100%; padding: 1.3rem 1.4rem; text-decoration: none; transition: border-color 0.2s, transform 0.2s var(--elan); }

.plugins a:hover { border-color: var(--lave); transform: translateY(-3px); }

.plugins strong { font-size: 1.2rem; }

.plugins span { color: var(--cendre); }

.plugins small, .fiche-tete .chapo { color: var(--sourd); }

.fiche-tete { align-items: end; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; margin: 1rem 0 2.5rem; }

.fiche-tete h2 { font-size: clamp(2rem, 4.4vw, 3rem); }

#fiche h3 { font-size: 1.2rem; margin: 0 0 0.8rem; }

#fiche h3 + p { margin-top: 0; }

.commande { background: var(--roche); border: 1px solid var(--filet); border-radius: 0.55rem; padding: 0.8rem 1rem; }

.lisezmoi, .code-lu { background: var(--ardoise); border: 1px solid var(--filet); border-radius: var(--rayon); line-height: 1.6; max-height: 36rem; overflow: auto; padding: 1.1rem 1.2rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.etapes-publier { margin: 0 0 3rem; padding-left: 1.3rem; }

.etapes-publier li { margin-bottom: 1rem; }

.serveurs .statut { border: 1px solid var(--filet); border-radius: 999px; color: var(--sourd); font-size: 0.88rem; padding: 0.2rem 0.75rem; }

.serveurs li[data-statut="validee"] .statut { border-color: #3d7a4f; color: #9fdcad; }

.serveurs li[data-statut="refusee"] { border-left-color: #c0553b; }

.serveurs li[data-statut="refusee"] .statut { border-color: #7a3524; color: #ff9c85; }

.serveurs li[data-statut="attente"] { border-left-color: var(--sourd); }

.motif { color: #ffc2b3; margin: 0.5rem 0 0; }

.fichier { margin-bottom: 0.8rem; }

.decision { margin-top: 2rem; max-width: 40rem; }

textarea { background: var(--roche); border: 1px solid var(--filet); border-radius: 0.55rem; color: inherit; font: inherit; font-weight: 400; padding: 0.6rem 0.85rem; resize: vertical; width: 100%; }

textarea:focus { border-color: var(--lave); box-shadow: 0 0 0 3px rgb(242 106 46 / 0.22); outline: none; }

.filtres { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }

.filtre { border-radius: 999px; font-size: 0.92rem; min-height: 2.3rem; padding: 0.3rem 0.95rem; }

.filtre:hover { transform: none; }

.filtre[aria-pressed="true"] { background: var(--lave); border-color: var(--lave); color: #14161a; }

.plugins .etiquette { color: var(--lave); font-size: 0.85rem; font-style: normal; font-weight: 600; }

select { background: var(--roche); border: 1px solid var(--filet); border-radius: 0.55rem; color: inherit; font: inherit; min-height: 2.6rem; padding: 0.35rem 0.7rem; width: 100%; }

select:focus { border-color: var(--lave); box-shadow: 0 0 0 3px rgb(242 106 46 / 0.22); outline: none; }

/* Administration */
.admin-bloc { margin-bottom: 4rem; }

.admin-bloc h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }

.admin-liste { display: grid; gap: 0.6rem; list-style: none; margin: 0 0 1.5rem; max-width: 46rem; padding: 0; }

.admin-liste li { align-items: center; background: var(--ardoise); border: 1px solid var(--filet); border-radius: var(--rayon); display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; padding: 0.8rem 1.1rem; }

.admin-liste small { color: var(--sourd); margin-left: 0.7rem; }

button.petit { font-size: 0.88rem; min-height: 2.2rem; padding: 0.25rem 0.75rem; }

.en-ligne { align-items: end; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); max-width: 46rem; }

.en-ligne .erreur { grid-column: 1 / -1; }

.admin-table th, .admin-table td { padding-right: 1rem; }

.admin-table thead th { color: var(--sourd); font-size: 0.88rem; font-weight: 600; }

.admin-table select { min-width: 10rem; }

.admin-table tr.masque th a, .admin-table tr.masque td { opacity: 0.55; }

.admin-table input[type="checkbox"] { accent-color: var(--lave); height: 1.15rem; min-height: 0; width: 1.15rem; }

/* ---- L'accueil : sections ---- */
.bande > .cadre > .duo:last-child { margin-bottom: 0; }

.duo h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; }

.etapes.serrees { gap: 1.1rem; grid-template-columns: minmax(0, 1fr); margin: 2rem 0; }

.etapes.serrees li { border-top: 0; display: grid; gap: 0.15rem 1.1rem; grid-template-columns: 2.4rem minmax(0, 1fr); padding: 0; }

.etapes.serrees li::before { font-size: 1.9rem; grid-row: span 2; margin: 0; }

.etapes.serrees li::after { display: none; }

.etapes.serrees h3 { font-size: 1.1rem; margin: 0.2rem 0 0; }

.vitrine { border-top: 1px solid var(--filet); margin-top: 5rem; padding-top: 3rem; }

.vitrine-tete { align-items: end; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; margin-bottom: 2rem; }

.vitrine-tete h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.vitrine-tete p { color: var(--sourd); margin: 0; max-width: 38rem; }

.bande.appel { padding: 5rem 0 6rem; text-align: center; }

.bande.appel h2 { font-size: clamp(2rem, 4.4vw, 3rem); }

.bande.appel .suite { margin-top: 2rem; }
