/* AAMSET — Télémaintenance & Préparation des postes
   Charte reprise de www.aamset.com : bleu #0091B8, orange #E98500,
   titres Bebas Neue, texte Barlow Semi Condensed. */

:root {
	--blue: #0091B8;
	--blue-dark: #00708f;
	--blue-deep: #0b3a4a;
	--orange: #E98500;
	--grey: #54595F;
	--text: #333;
	--muted: #7A7A7A;
	--line: #e3e8eb;
	--bg: #f4f7f9;
	--white: #fff;
	--radius: 4px;
	--shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(11,58,74,.08);
	--font-title: "Bebas Neue", "Arial Narrow", sans-serif;
	--font-text: "Barlow Semi Condensed", "Barlow", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-text);
	font-size: 18px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; letter-spacing: .5px; line-height: 1.05; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Barre utilitaire (comme le haut d'aamset.com) ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); font-size: 14px; }
.topbar .wrap { display: flex; gap: 28px; align-items: center; min-height: 44px; flex-wrap: wrap; }
.topbar a { color: var(--grey); display: inline-flex; gap: 8px; align-items: center; line-height: 1.15; }
.topbar a:hover { color: var(--blue); text-decoration: none; }
.topbar small { display: block; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .6px; color: var(--text); }
.topbar svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.topbar .spacer { flex: 1; }

/* ---------- En-tête ---------- */
.header { background: var(--blue); color: var(--white); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 20px; }
.header .logo img { height: 42px; display: block; }
.header nav { display: flex; gap: 6px; flex-wrap: wrap; }
.header nav a {
	color: var(--white); font-family: var(--font-title); font-size: 21px; letter-spacing: .8px;
	padding: 6px 14px; border-radius: var(--radius); opacity: .85;
}
.header nav a:hover { opacity: 1; text-decoration: none; background: rgba(255,255,255,.12); }
.header nav a[aria-current="page"] { opacity: 1; box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.lang-switch { background: rgba(0,0,0,.12); border-radius: 40px; padding: 4px; gap: 2px !important; }
.header .lang-switch a { font-size: 18px; padding: 4px 14px; border-radius: 40px; opacity: .75; }
.header .lang-switch a[aria-current="true"] { background: var(--white); color: var(--blue); opacity: 1; }

/* ---------- Bandeau titre ---------- */
.hero {
	color: var(--white);
	background:
		linear-gradient(100deg, rgba(0,112,143,.96) 0%, rgba(0,145,184,.88) 55%, rgba(0,145,184,.70) 100%),
		url("https://www.aamset.com/wp-content/uploads/2023/03/picto-AAMSET-blanc-768x768.png") no-repeat right -60px center / 420px,
		var(--blue-dark);
	padding: 54px 0 96px;
}
.hero h1 { font-size: clamp(44px, 7vw, 72px); max-width: 12ch; }
.hero p { font-size: 20px; max-width: 46ch; margin: 14px 0 0; opacity: .95; }
.hero .eyebrow { font-family: var(--font-title); font-size: 20px; letter-spacing: 1.5px; color: #ffd7a1; margin-bottom: 6px; }

/* Bandeau avec le picto AAMSET (page préparation des postes) */
.hero--aside { background-image: linear-gradient(100deg, rgba(0,112,143,.96) 0%, rgba(0,145,184,.88) 55%, rgba(0,145,184,.70) 100%); }
.hero--aside .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.picto { text-align: center; flex: none; }
.picto img { display: block; max-width: 240px; max-height: 240px; margin: 0 auto; cursor: pointer; user-select: none; }
.picto .disclaimer-pp { margin-top: 10px; font-size: 14px; line-height: 1.4; opacity: .9; }
@media (max-width: 760px) {
	.hero--aside .wrap { flex-direction: column-reverse; align-items: flex-start; }
	.picto img { max-width: 150px; }
}

/* ---------- Cartes ---------- */
.main { margin-top: -64px; padding-bottom: 60px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.card + .card { margin-top: 24px; }
.card h2 { color: var(--blue); font-size: 34px; margin-bottom: 12px; }
.card h3 { color: var(--blue); font-size: 24px; }

.grid-2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* Étapes */
.steps { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 18px 52px; counter-increment: s; }
.steps li::before {
	content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
	background: var(--blue); color: var(--white); font-family: var(--font-title); font-size: 22px;
	display: flex; align-items: center; justify-content: center;
}
.steps li:last-child { padding-bottom: 0; }
.steps strong { display: block; }

.contact-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; }
.contact-line a { font-weight: 600; font-size: 19px; }

/* Boutons */
.btn {
	display: inline-flex; align-items: center; gap: 10px; justify-content: center;
	background: var(--blue); color: var(--white); border: 0; border-radius: 1px; cursor: pointer;
	font-family: var(--font-text); font-size: 18px; padding: 14px 26px; transition: background .15s;
}
.btn:hover { background: var(--blue-dark); color: var(--white); text-decoration: none; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-accent { background: var(--orange); }
.btn-accent:hover { background: #c97200; }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn-ghost:hover { background: var(--blue); }
.btn-lg { font-size: 21px; padding: 18px 32px; }
.btn[aria-disabled="true"] { background: #b9c4c9; pointer-events: none; }

/* Encadré téléchargement */
.download { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.download .os-badge {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 40px;
	background: #e8f5f9; color: var(--blue-deep); font-weight: 600;
}
.download .os-badge svg { width: 22px; height: 22px; fill: var(--blue); }
.download .hint { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 0; }
.download .btn-row { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }
.download .btn { width: 100%; }

.notice {
	border-left: 4px solid var(--orange); background: #fff7ec; padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
	font-size: 16px; color: #5b4a33;
}
.notice strong { color: #8a4f00; }

/* Toutes les versions */
details.versions summary { cursor: pointer; list-style: none; color: var(--blue); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
details.versions summary::-webkit-details-marker { display: none; }
details.versions summary::before { content: "+"; font-family: var(--font-title); font-size: 26px; line-height: 1; }
details.versions[open] summary::before { content: "−"; }
.version-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 18px; }
.version {
	display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; color: var(--text);
	background: var(--white); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.version:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.version .v-os { font-family: var(--font-title); font-size: 24px; color: var(--blue); display: flex; align-items: center; gap: 8px; }
.version .v-os svg { width: 20px; height: 20px; fill: currentColor; }
.version .v-range { font-size: 15px; color: var(--muted); margin-top: 4px; }
.version .v-file { font-size: 13px; color: var(--grey); margin-top: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.version.is-recommended { border-color: var(--orange); box-shadow: inset 0 3px 0 var(--orange); }
.version.is-recommended::after { content: attr(data-reco); display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--orange); }

.tech { margin-top: 18px; font-size: 13px; color: var(--muted); }
.tech code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }

/* ---------- Page préparation des postes ---------- */
.os-switch { display: inline-flex; background: var(--white); border-radius: 40px; padding: 5px; box-shadow: var(--shadow); gap: 4px; }
.os-switch button {
	border: 0; background: transparent; cursor: pointer; border-radius: 40px; padding: 10px 22px;
	font-family: var(--font-title); font-size: 22px; letter-spacing: .8px; color: var(--grey);
	display: inline-flex; gap: 10px; align-items: center;
}
.os-switch button svg { width: 20px; height: 20px; fill: currentColor; }
.os-switch button[aria-selected="true"] { background: var(--blue); color: var(--white); }
.os-switch button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.toolbar {
	display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px;
	background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px;
}
.toolbar .os-switch { box-shadow: none; background: var(--bg); }
.search {
	flex: 1; min-width: 220px; max-width: 360px; border: 1px solid var(--line); border-radius: 40px; padding: 11px 18px;
	font: inherit; font-size: 16px; background: var(--white);
}
.search:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,145,184,.15); }
.progress { font-size: 15px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.progress button { border: 0; background: none; color: var(--blue); cursor: pointer; font: inherit; font-size: 15px; padding: 0; }

.categories { columns: 2 340px; column-gap: 24px; }
.cat { break-inside: avoid; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 24px; }
.cat h3 { color: var(--blue); font-size: 26px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.cat h3::before { content: ""; width: 4px; height: 22px; background: var(--orange); display: inline-block; }
.apps { list-style: none; margin: 0; padding: 0; }
.app { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.app:first-child { border-top: 0; }
.app .check {
	width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c6d2d7; flex: none; background: var(--white);
	cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
}
.app .check svg { width: 12px; height: 12px; fill: var(--white); opacity: 0; }
.app.done .check { background: #3aa76d; border-color: #3aa76d; }
.app.done .check svg { opacity: 1; }
.app.done .app-name { color: var(--muted); text-decoration: line-through; }
.app .app-name { flex: 1; font-weight: 500; }
.app .app-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.app .app-links a {
	font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 40px; background: #e8f5f9; color: var(--blue-dark); white-space: nowrap;
}
.app .app-links a:hover { background: var(--blue); color: var(--white); text-decoration: none; }
.app .app-links a.match { background: var(--orange); color: var(--white); }
.app .tag { font-size: 12px; color: var(--muted); }
.app[hidden], .cat[hidden] { display: none; }
.legend { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--grey); color: #e9edef; font-size: 15px; }
.footer .wrap { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 30px; padding-top: 36px; padding-bottom: 36px; align-items: start; }
.footer img { height: 54px; display: block; }
.footer a.secret { cursor: default; }
.footer a { color: var(--white); }
.footer .legal { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 14px 20px; font-size: 13px; color: #c9d0d4; }
@media (max-width: 760px) {
	.footer .wrap { grid-template-columns: 1fr 1fr; }
	.header nav a { font-size: 18px; padding: 6px 10px; }
	.card { padding: 24px 20px; }
	.hero { padding: 40px 0 90px; background-size: auto, 260px, auto; }
}
