/* Habille les composants, leurs interactions et les états accessibles. */
/* ===== LABELS ET BOUTONS ===== */
.eyebrow { display: block; font: 12px/1.65 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.lead { font-size: 1.12rem; line-height: 1.8; max-width: 730px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 12px 21px; background-color: var(--surface);  background-repeat: no-repeat; background-position: left center; background-size: 0% 100%; color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; transition: background-size var(--motion), color var(--motion), border-color var(--motion); }
.button.primary { color: var(--accent); border-color: var(--accent); }
.button:hover, .button:focus-visible { background-size: 100% 100%; color: var(--accent-ink); border-color: var(--accent); text-decoration: none; }
.button.small { padding: 9px 15px; min-height: 42px; font-size: 13px; }
.icon-button { min-width: 42px; min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 700; transition: color var(--motion), border-color var(--motion), background var(--motion); }
.icon-button:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-size: 14px; font-weight: 700; }
.placeholder { display: inline; color: var(--warm); font-size: 13px; overflow-wrap: anywhere; }
.notice { background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 6px; padding: 24px 28px; color: var(--muted); }
.notice p:last-child { margin-bottom: 0; }
/* ===== CARTES : RELIEF ET CADRE PRUNE ===== */
.card { position: relative; padding: 30px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-width: 0; transition: transform var(--motion), border-color var(--motion), box-shadow var(--motion); }
.card:hover, .card:focus-within { border-color: var(--accent); box-shadow: var(--shadow-hover); }
@media (hover: hover) { .card:hover { transform: translateY(-4px); } }
.card p:last-child { margin-bottom: 0; }
.card .eyebrow { font-size: 12px; }
.card.featured { border-color: var(--accent); border-radius: 6px; box-shadow: var(--shadow); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.badge { font: 12px/1.5 var(--mono); padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--bg); transition: background var(--motion), color var(--motion), border-color var(--motion); }
.badge:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
/* ===== ONGLETS ET FILTRES ===== */
.tabs, .filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.tab, .filter { padding: 11px 18px; border: 1px solid var(--line); border-radius: 6px; background-color: var(--surface);  background-repeat: no-repeat; background-position: left center; background-size: 0 100%; color: var(--muted); min-height: 46px; font-size: 14px; transition: background-size var(--motion), border-color var(--motion), color var(--motion); }
.tab:hover, .filter:hover { border-color: var(--accent); color: var(--accent-ink); background-size: 100% 100%; }
.tab[aria-selected="true"], .filter[aria-pressed="true"] { background-size: 100% 100%; border-color: var(--accent); color: var(--accent-ink); }
/* ===== FRISE ===== */
.timeline { list-style: none; padding: 0 0 0 28px; border-left: 1px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 30px 10px; }
.timeline li::before { content: ''; position: absolute; left: -34px; top: 6px; width: 10px; height: 10px; border: 2px solid var(--accent); border-radius: 6px; background: var(--surface); }
.timeline li:first-child::before { background: var(--accent); border-color: var(--accent); }
.timeline h3 { margin: 10px 0; }
.timeline time { font: 12px var(--mono); color: var(--accent); }
/* ===== TABLEAU ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
table { width: 100%; min-width: 890px; border-collapse: collapse; font-size: 14px; }
caption { text-align: left; padding: 20px; color: var(--muted); }
th, td { border-bottom: 1px solid var(--line); padding: 18px 16px; text-align: center; }
thead { background: var(--accent); color: var(--accent-ink); font-family: var(--mono); }
th:first-child { text-align: left; min-width: 215px; }
tbody th { font-weight: 500; }
tbody tr:nth-child(even) { background: var(--bg); }
.check { color: var(--accent); font-size: 20px; }
/* ===== DIALOGUE ===== */
dialog { width: min(780px, calc(100% - 32px)); max-height: 88dvh; padding: 0; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(5px); }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 16px 28px; border-bottom: 1px solid var(--line); z-index: 1; }
.dialog-bar .eyebrow { margin: 0; }
.dialog-content { padding: 32px; }
.dialog-content h2 { font-size: 2rem; color: var(--accent); }
.dialog-content h3 { margin-top: 28px; font-size: 1.2rem; }
/* ===== FORMULAIRE ===== */
label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
input, textarea { width: 100%; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--text); transition: border-color var(--motion), background var(--motion); }
input:hover, textarea:hover { border-color: var(--accent); }
textarea { min-height: 160px; resize: vertical; }
.field { margin-bottom: 22px; }
.field-error { display: block; color: var(--warm); font-size: 14px; margin-top: 6px; }
[aria-invalid="true"] { border-color: var(--warm); }
.form-status { margin-top: 20px; }
/* ===== APPARITIONS ET ÉTATS INACTIFS ===== */
.reveal { transition: opacity var(--motion), transform var(--motion), border-color var(--motion), box-shadow var(--motion); }
.reveal.will-reveal { opacity: 1; transform: translateY(6px); }
a[aria-disabled="true"] { cursor: default; text-decoration: none; }
.button[aria-disabled="true"] { flex-direction: column; gap: 3px; align-items: flex-start; max-width: 250px; }
.button.primary .footer-placeholder { color: var(--muted); font-weight: 400; font-size: 12px; }
.button[aria-disabled="true"]:hover, .button:disabled:hover { background-size: 0 100%; color: var(--text); border-color: var(--line); }
.button.primary[aria-disabled="true"]:hover { color: var(--accent); border-color: var(--accent); }
/* ===== SURVOL SANS MOUVEMENT À LA DEMANDE ===== */
@media (prefers-reduced-motion: reduce) {
    .card:hover, .card:focus-within { transform: none; box-shadow: none; }
}

/* ===== ACCENTS PRUNE, REMPLISSAGES UNIS ET SURVOLS ===== */
.eyebrow, .card .eyebrow { color: var(--label); }
.button { background: var(--surface); border-color: var(--accent); color: var(--text); transition: background var(--motion), color var(--motion), transform var(--motion), border-color var(--motion); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.primary:not([aria-disabled="true"])::after { content: '→'; display: inline-block; margin-left: 4px; transition: transform var(--motion); }
.button.primary:not([aria-disabled="true"]):hover { transform: translateY(-2px); }
.button.primary:not([aria-disabled="true"]):hover::after { transform: translateX(4px); }
.button:hover, .button:focus-visible { background: var(--accent); color: var(--accent-ink); }
.button.primary .footer-placeholder { color: var(--accent-ink); }
.button.primary[aria-disabled="true"]:hover { background: var(--accent); color: var(--accent-ink); }
.button:disabled:hover { background: var(--surface); color: var(--text); }
.card:hover, .card:focus-within { background: var(--surface-2); border-color: var(--accent); }
.badge:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tab[aria-selected="true"], .filter[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tab:hover, .filter:hover { background: var(--surface-2); color: var(--text); }
.tab[aria-selected="true"]:hover, .filter[aria-pressed="true"]:hover { background: var(--accent); color: var(--accent-ink); }
.timeline time { color: var(--label); }
thead { background: var(--surface-2); color: var(--text); }
.check { color: var(--text); }
.dialog-content h2 { color: var(--text); }
.text-link { text-decoration-color: var(--accent); }
/* ===== CONFINEMENT DU TABLEAU SUR MOBILE ===== */
.table-wrap { position: relative; max-width: 100%; }

/* ===== ÉTATS STABLES SI LES ANIMATIONS SONT RÉDUITES ===== */
@media (prefers-reduced-motion: reduce) {
    .icon-button:hover { background: var(--surface); color: var(--text); border-color: var(--line); }
    .tab:not([aria-selected="true"]):hover, .filter:not([aria-pressed="true"]):hover { background: var(--surface); color: var(--muted); border-color: var(--line); }
    .button.primary:hover { transform: none; }
    .button.primary:hover::after { transform: none; }
}
/* Mouvement et contenu : les couleurs et fonds validés sont conservés. */
.button { transition:transform 200ms ease, border-color 200ms ease, color 200ms ease; }
.button:not([aria-disabled]):hover { transform:translateY(-2px); }
.button:not(.primary):not([aria-disabled])::after { content:'→'; display:inline-block; transition:transform 200ms ease; }
.button:hover::after { transform:translateX(4px); }
.badge,.tool-item img { transition:transform 200ms ease; }
.badge:hover,.tool-item:hover img { transform:scale(1.06); }
.tool-row { display:flex; gap:20px; flex-wrap:wrap; margin-block:26px 40px; }
.tool-item { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-width:80px; max-width:100px; font:11px/1.5 var(--mono); text-align:center; }
.tool-item img { object-fit:contain; }
.tool-item img[src$="/shadcnui.svg"],.tool-item img[src$="/githubcopilot.svg"] { color:inherit; }
[data-theme="dark"] .tool-item img:is([src$="/virtualbox.svg"],[src$="/nextcloud.svg"],[src$="/shadcnui.svg"],[src$="/pfsense.svg"],[src$="/cisco.svg"],[src$="/githubcopilot.svg"],[src$="/builderdotio.svg"],[src$="/mariadb.svg"]) { filter:brightness(0) invert(1); }
.company-logo { object-fit:contain; flex-shrink:0; }
.project-card .company-logo { width:64px;height:64px;margin-bottom:20px; }
.stage-banner { justify-content:flex-start; align-items:center; }
.stage-date { font:13px/1.7 var(--mono); margin-top:12px!important; }
.stage-intro { margin-block:40px; }
.creation-timeline { list-style:none; padding-inline-start:30px; margin-inline-start:8px; border-inline-start:1px solid var(--line); }
.creation-timeline>li { position:relative; padding-block:12px 38px; padding-inline-start:10px; }
.creation-timeline>li::before { content:''; position:absolute; inset-inline-start:-36px; top:20px; width:10px; height:10px; border:2px solid var(--accent); border-radius:50%; }
.stage-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.stage-figure { margin:18px 0; min-width:0; }
.gallery-trigger { display:block; padding:0; width:100%; border:1px solid var(--line); border-radius:6px; overflow:hidden; }
.gallery-trigger img { width:100%; height:220px; object-fit:cover; object-position:top; transition:transform 250ms ease; }
.gallery-trigger:hover img { transform:scale(1.025); }
figcaption,.evidence-note { font-size:12px; line-height:1.6; margin-top:10px; }
#gallery-dialog { width:min(1080px,calc(100% - 32px)); }
#gallery-dialog figure { margin:20px; }
.gallery-large { width:100%; max-height:72vh; object-fit:contain; }
.language-selector { display:flex; align-items:center; gap:2px; }
.language-selector button { font:11px/1.4 var(--sans); padding:6px; border:1px solid transparent; border-radius:6px; color:var(--text); background:transparent; min-height:34px; }
.language-selector button[aria-pressed="true"],.language-selector button:hover { border-color:var(--accent); }
.language-selector button:hover { transform:translateY(-1px); }
@media(max-width:1200px) { .main-nav {gap:10px;} .main-nav a {font-size:12px;} .header-inner{gap:12px;} }
@media(max-width:1100px) and (min-width:1001px) { .header-inner {flex-wrap:wrap;gap:0 15px;} .main-nav{order:3;width:100%;justify-content:space-between;} .main-nav a{padding-block:10px;} .main-nav a::after{bottom:4px;} .header-tools{margin-inline-start:auto;} }
@media(max-width:1000px){ .main-nav .language-selector {grid-column:1/-1;justify-content:flex-start;padding-block:12px;} }
@media(max-width:650px){.stage-gallery{grid-template-columns:1fr;} .tool-row{gap:14px;} .tool-item{min-width:65px;} .creation-timeline{padding-inline-start:20px;} .creation-timeline>li::before{inset-inline-start:-26px;} }
@media(prefers-reduced-motion:reduce){.button:hover,.button:hover::after,.badge:hover,.tool-item:hover img,.gallery-trigger:hover img,.language-selector button:hover{transform:none!important;} }

/* Champ anti-spam Formspree, absent de la mise en page. */
.form-honeypot { display: none; }
.form-captcha { margin-bottom: 22px; min-height: 65px; }
