/* ─────────────────────────────────────────────────────────────
   Agoréa / AVERION — feuille de style commune
   Palette issue du logo AVERION, police Archivo (hébergée localement)
   ───────────────────────────────────────────────────────────── */

@font-face {
	font-family: "Archivo";
	src: url("/commun/polices/archivo.woff2") format("woff2-variations"),
	     url("/commun/polices/archivo.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}

:root {
	--nuit: #031b32;
	--abysse: #06396a;
	--profond: #042542;
	--bleu: #0095ff;
	--bleu-fonce: #0077cc;
	--cyan: #00bffe;
	--brume: #c8ddf2;
	--acier: #8aaed2;
	--blanc: #f4f9ff;
	--trait: rgba(0, 191, 254, 0.18);
	--biais: clamp(28px, 5vw, 72px);
	--largeur: 1120px;
	--gouttiere: clamp(20px, 5vw, 48px);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--nuit);
	color: var(--brume);
	font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--cyan); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--blanc); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.visuellement-cache {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.contenu { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }

/* ── Titres : larges et gras, comme le lettrage AVERION ──────── */
h1, h2, h3 {
	color: var(--blanc);
	font-stretch: 125%;
	font-weight: 760;
	line-height: 1.08;
	letter-spacing: -0.012em;
	margin: 0;
	text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 700; letter-spacing: 0; }
h2 { margin-bottom: .5em; }

p { margin: 0 0 1em; max-width: 64ch; }
.chapo { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--brume); max-width: 56ch; }
.discret { color: var(--acier); }

/* ── En-tête ─────────────────────────────────────────────────── */
.entete { border-bottom: 1px solid var(--trait); }
.entete .contenu {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; min-height: 76px; flex-wrap: wrap;
}
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blanc); }
.marque img { height: 30px; width: auto; }
.marque .edition {
	font-stretch: 125%; font-weight: 600; font-size: 0.95rem; color: var(--acier);
	padding-left: 12px; border-left: 1px solid var(--trait);
}
.marque-agorea { font-stretch: 125%; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }

.navigation { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.navigation a { color: var(--brume); text-decoration: none; font-weight: 500; padding: 6px 0; }
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--blanc); }
.navigation a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); }

/* ── Boutons ─────────────────────────────────────────────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px; border-radius: 10px;
	font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
	border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.bouton-principal { background: var(--bleu); color: #fff; }
.bouton-principal:hover { background: var(--bleu-fonce); color: #fff; }
.bouton-secondaire { border-color: rgba(0, 191, 254, 0.5); color: var(--blanc); background: transparent; }
.bouton-secondaire:hover { border-color: var(--cyan); background: rgba(0, 191, 254, 0.08); color: var(--blanc); }
.bouton small { font-weight: 450; opacity: .85; }

/* ── Héros : motif d'emblèmes qui s'efface vers la gauche ────── */
.heros { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.heros::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: url("/commun/marque/motif.svg") repeat;
	-webkit-mask-image: linear-gradient(105deg, transparent 30%, #000 85%);
	mask-image: linear-gradient(105deg, transparent 30%, #000 85%);
	opacity: .45;
}
.heros::after {
	content: ""; position: absolute; z-index: -2; right: -20vw; bottom: -40vw;
	width: 80vw; height: 80vw; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0, 149, 255, .22), transparent);
}
.heros h1 { max-width: 15ch; margin-bottom: 22px; }

/* ── Bande en biais (élément signature, une par page) ────────── */
.biais {
	position: relative;
	background: linear-gradient(180deg, var(--profond), var(--abysse));
	clip-path: polygon(0 var(--biais), 100% 0, 100% calc(100% - var(--biais)), 0 100%);
	padding: calc(var(--biais) + clamp(40px, 6vw, 72px)) 0;
	margin: clamp(24px, 4vw, 48px) 0;
}

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section > .contenu > h2 { margin-bottom: 14px; }
.section > .contenu > h2 + p { margin-bottom: 36px; }

/* Index : une ligne par service, pas de grille de cartes */
.index { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--trait); }
.index > li {
	display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr) 11rem;
	gap: 8px 32px; align-items: baseline;
	padding: 26px 0; border-top: 1px solid var(--trait);
}
.index h3 a { color: inherit; text-decoration: none; }
.index h3 a:hover { color: var(--cyan); }
.index p { margin: 0; }
.index .etat { justify-self: end; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.etat-dispo { color: var(--cyan); }
.etat-demande { color: var(--acier); }
.etat-indispo { color: var(--acier); font-weight: 500; }

/* Bandeau « indisponible pour le moment » */
.bandeau {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
	margin: 0 0 26px; padding: 14px 18px; max-width: 64ch;
	border: 1px solid rgba(0, 191, 254, .35); border-left: 4px solid var(--cyan); border-radius: 10px;
	background: rgba(0, 191, 254, .07);
}
.bandeau strong { color: var(--blanc); font-stretch: 112%; }
.bandeau span { color: var(--brume); }
@media (max-width: 760px) {
	.index > li { grid-template-columns: 1fr; }
	.index .etat { justify-self: start; }
}

/* Colonnes de détail (contenu réel, pas décoratif) */
.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 48px; }
.colonnes h3 { margin-bottom: 10px; }
.colonnes ul { margin: 0; padding-left: 1.1em; }
.colonnes li { margin: 4px 0; }
.colonnes li::marker { color: var(--bleu); }

/* Étapes : vraie séquence, donc numérotée */
.etapes { list-style: none; counter-reset: etape; margin: 0; padding: 0; display: grid; gap: 22px; }
.etapes > li { counter-increment: etape; display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; }
.etapes > li::before {
	content: counter(etape); grid-row: span 2;
	font-stretch: 125%; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--bleu);
	padding-top: 2px;
}
.etapes h3 { margin-bottom: 4px; }
.etapes p { margin: 0; }

/* Deux colonnes texte / encart */
.duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.duo > * { min-width: 0; }

/* Terminal : vraies commandes du produit */
.terminal {
	margin: 0; padding: 20px 22px; border-radius: 12px; overflow-x: auto;
	background: #01111f; border: 1px solid rgba(0, 149, 255, .3);
	font: 0.92rem/1.7 ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
	color: var(--brume);
}
.terminal .invite { color: var(--bleu); user-select: none; }
.terminal .sortie { color: var(--acier); }
.terminal .ok { color: #5ee0a0; }

/* Fiche de téléchargement */
.fiche {
	border: 1px solid rgba(0, 149, 255, .35); border-radius: 14px; padding: 26px;
	background: rgba(1, 17, 31, .55);
}
.fiche h3 { margin-bottom: 14px; }
.fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 0 22px; }
.fiche dt { color: var(--acier); }
.fiche dd { margin: 0; color: var(--blanc); overflow-wrap: anywhere; }
.fiche .empreinte { font: .8rem/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--brume); }
.fiche .bouton { width: 100%; }

/* Portes de l'accueil Agoréa */
.portes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--trait); border: 1px solid var(--trait); border-radius: 16px; overflow: hidden; }
.porte { background: var(--nuit); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--brume); }
.porte:hover { background: var(--profond); color: var(--brume); }
.porte h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.porte .lien { margin-top: auto; color: var(--cyan); font-weight: 650; }
.porte img { height: 34px; width: auto; align-self: flex-start; }
@media (max-width: 760px) { .portes { grid-template-columns: 1fr; } }

/* Listes simples et code en ligne */
.liste { margin: 12px 0 0; padding-left: 1.1em; }
.liste li { margin: 4px 0; }
.liste li::marker { color: var(--bleu); }
code { font: .92em ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; color: var(--blanc);
	background: rgba(0, 149, 255, .12); padding: .1em .35em; border-radius: 5px; }
.terminal code, pre code { background: none; padding: 0; }
.sous-bouton { margin: 14px 0 0; }

/* Mentions sur les sources et licences */
.note { border-left: 3px solid var(--bleu); padding: 4px 0 4px 18px; color: var(--brume); }

/* ── Pied de page ────────────────────────────────────────────── */
.pied { border-top: 1px solid var(--trait); padding: 36px 0 48px; color: var(--acier); font-size: .95rem; }
.pied .contenu { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.pied a { color: var(--brume); text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
