/* ==========================================================================
   ciview.fr - feuille de style (2026-11)
   Palette : l'espace objet de CiView (fond "canvas") et les couleurs de
   calque standard (ACI 1 a 6), utilisees comme reperes de rubriques.
   ========================================================================== */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
	--canvas: #1f252d;        /* espace objet */
	--canvas-2: #2a313b;      /* barre de commande */
	--canvas-line: #3a434f;
	--paper: #f3f5f6;
	--white: #ffffff;
	--ink: #17202a;
	--muted: #56636f;
	--line: #d6dde3;

	/* couleurs de calque (ACI 1..6), versions lisibles sur fond clair */
	--aci-red: #d7372f;
	--aci-yellow: #c9a400;
	--aci-green: #23944a;
	--aci-cyan: #0f86a6;
	--aci-blue: #2e62d0;
	--aci-magenta: #b8338f;

	--action: #0f86a6;
	--action-dark: #0b6a84;

	--font: "Barlow", "Segoe UI", system-ui, sans-serif;
	--font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;

	--wrap: 1180px;
	--gutter: clamp(20px, 4vw, 40px);
}

*, *::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;
	font-family: var(--font);
	font-size: 1.0625rem;      /* 17 px */
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--action-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--aci-yellow); outline-offset: 2px; }

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.005em;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip-link:focus { top: 12px; }

/* --- Boutons ------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font); font-weight: 600; font-size: 1rem;
	padding: 13px 22px; border: 2px solid transparent; border-radius: 4px;
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--action); color: var(--white); }
.btn-primary:hover { background: var(--action-dark); color: var(--white); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: inherit; }
.on-light .btn-ghost:hover, .btn-ghost.on-light:hover { background: var(--paper); }
.btn small { font-weight: 400; opacity: .85; }

/* --- En-tete ------------------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.brand-by { font-size: .85rem; color: var(--muted); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 4px; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--action); border-radius: 0; }
.header-cta { padding: 10px 16px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 980px) {
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
	.nav a { padding: 12px 8px; }
}

/* --- Bandeau "espace objet" ------------------------------------------------ */
.hero { background: var(--canvas); color: #e9eef2; position: relative; overflow: hidden; }
.hero-grid {
	display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
	gap: clamp(24px, 5vw, 64px); align-items: center;
	padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px);
}
.hero h1 { color: var(--white); max-width: 16ch; font-size: clamp(2.4rem, 4vw, 3.6rem); }
.hero-lead { font-size: 1.2rem; color: #c6d0d8; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { font-size: .95rem; color: #9fadb9; margin: 0; }
.hero-version { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #9fe3f2; margin-bottom: 14px; }

.hero-drawing { position: relative; aspect-ratio: 6 / 5; }
.hero-drawing svg { width: 100%; height: 100%; display: block; }
.hero-drawing .cross { transition: transform 1.2s cubic-bezier(.6,0,.2,1); }

/* ligne de commande, en bas du bandeau, comme dans le logiciel */
.cmdline { background: var(--canvas-2); border-top: 1px solid var(--canvas-line); color: #dfe6eb; }
.cmdline .wrap { display: flex; align-items: center; gap: 12px; min-height: 52px; font-size: 1rem; }
.cmdline-label { color: #8fa0ae; }
.cmdline-text { font-weight: 500; white-space: nowrap; overflow: hidden; }
.cmdline-caret { width: 9px; height: 1.15em; background: #dfe6eb; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cmdline-caret { animation: none; } .hero-drawing .cross { transition: none; } }

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-drawing { max-width: 520px; }
}

/* --- Sections ---------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

/* repere de calque : pastille de couleur + nom, devant un titre de rubrique */
.layer-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--muted); margin-bottom: 10px; }
.layer-tag::before { content: ""; width: 12px; height: 12px; border-radius: 2px; background: var(--swatch, var(--action)); }

/* --- Table des calques (capacites) -------------------------------------------- */
.layers { border-top: 2px solid var(--ink); }
.layer-row {
	display: grid; grid-template-columns: 28px minmax(180px, 260px) minmax(0, 1fr);
	gap: 18px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.swatch { width: 18px; height: 18px; border-radius: 3px; background: var(--swatch); transform: translateY(3px); }
.layer-row h3 { margin: 0; }
.layer-row p { margin: 0; color: var(--muted); }
.layer-row p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
	.layer-row { grid-template-columns: 24px 1fr; }
	.layer-row p { grid-column: 2; }
}

/* --- Nouveautes 10.1 ------------------------------------------------------------- */
.release { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.release-list { list-style: none; margin: 0; padding: 0; }
.release-list li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.release-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 14px; height: 8px; border-left: 3px solid var(--aci-green); border-bottom: 3px solid var(--aci-green); transform: rotate(-45deg); }
.release-list strong { display: block; font-weight: 600; }
.release-list span { color: var(--muted); }
@media (max-width: 860px) { .release { grid-template-columns: 1fr; } }

/* --- Capture d'ecran dans un cadre de fenetre ---------------------------------- */
.window { border: 1px solid #c3ccd4; border-radius: 6px; overflow: hidden; background: var(--white); box-shadow: 0 18px 40px -24px rgba(23, 32, 42, .45); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #e8ecef; border-bottom: 1px solid #c3ccd4; font-size: .85rem; color: var(--muted); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c3ccd4; }
.window figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }

/* --- Essai et licence ---------------------------------------------------------- */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 2px solid var(--ink); border-radius: 6px; background: var(--white); }
.offer > div { padding: clamp(28px, 4vw, 44px); }
.offer > div + div { border-left: 2px solid var(--ink); }
.offer h3 { font-size: 1.9rem; font-family: var(--font-display); font-weight: 700; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 3.6rem; line-height: 1; margin: 6px 0 4px; }
.price small { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--muted); }
.offer ul { margin: 16px 0 26px; padding-left: 20px; }
.offer li { margin-bottom: 6px; }
.offer .fine { font-size: .92rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 820px) {
	.offer { grid-template-columns: 1fr; }
	.offer > div + div { border-left: 0; border-top: 2px solid var(--ink); }
}

/* --- Colonnes de liens (sur mesure, utilitaires) ------------------------------ */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.columns h3 a { color: var(--ink); text-decoration: none; }
.columns h3 a:hover { text-decoration: underline; }
.columns p { color: var(--muted); }
@media (max-width: 820px) { .columns { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.tools { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tools li { border-bottom: 1px solid var(--line); }
.tools a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.tools a span { color: var(--muted); font-weight: 400; }
.tools a:hover { color: var(--action-dark); }

/* --- Page produit ------------------------------------------------------------------ */
.page-hero { background: var(--canvas); color: #e9eef2; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero p { color: #c6d0d8; font-size: 1.2rem; max-width: 60ch; }

.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 34%; font-weight: 600; padding-right: 24px; }
.spec td { color: var(--muted); }

.history { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.history li { position: relative; padding: 0 0 26px 26px; }
.history li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--muted); }
.history li:first-child::before { background: var(--action); border-color: var(--action); }
.history h3 { font-size: 1.25rem; margin-bottom: 4px; }
.history p { color: var(--muted); margin: 0; }

/* --- Pied de page ---------------------------------------------------------------- */
.site-footer { background: var(--canvas); color: #b9c4cd; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #e3eaef; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h2 { font-size: 1.2rem; color: var(--white); margin-bottom: 12px; font-family: var(--font); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-logo { background: var(--white); padding: 8px 10px; border-radius: 4px; display: inline-block; margin-bottom: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--canvas-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #8fa0ae; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Pages de contenu (articles, aide, mentions) ---------------------------- */
.page-hero.compact { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 52px); }
.page-hero.compact h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 22ch; }
.breadcrumb { font-size: .95rem; color: #9fadb9; margin-bottom: 14px; }
.breadcrumb a { color: #cfe7ef; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--white); }

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose h4 { font-size: 1.1rem; font-weight: 600; margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 6px; }
.prose img { border: 1px solid var(--line); border-radius: 4px; margin: 10px 0 18px; background: var(--white); }
.prose figure { margin: 10px 0 24px; }
.prose figcaption { font-size: .92rem; color: var(--muted); margin-top: -8px; }
.prose .gallery { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 24px; }
.prose .gallery img { margin: 0; flex: 1 1 220px; max-width: 360px; object-fit: cover; }
.prose > :first-child { margin-top: 0; }
.prose .note { background: var(--paper); border-left: 4px solid var(--action); padding: 16px 20px; border-radius: 0 4px 4px 0; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 72px); align-items: start; }
.aside-box { border: 2px solid var(--ink); border-radius: 6px; padding: 24px; position: sticky; top: 92px; }
.aside-box h2 { font-size: 1.5rem; }
.aside-box p { color: var(--muted); font-size: .98rem; }
.aside-box .btn { width: 100%; justify-content: center; }
@media (max-width: 920px) { .with-aside { grid-template-columns: 1fr; } .aside-box { position: static; } }

/* --- Cartes de realisations / telechargements --------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; border-top: 3px solid var(--swatch, var(--ink)); padding-top: 16px; }
.card-img { aspect-ratio: 16 / 10; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img.contain img { object-fit: contain; padding: 12px; }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); margin-bottom: 12px; }
.card .meta { font-size: .92rem; color: var(--muted); margin-top: auto; }
.card .btn { align-self: flex-start; margin-top: auto; }

/* --- Bloc de telechargement ------------------------------------------------------ */
.download { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.download-box { border: 2px solid var(--ink); border-radius: 6px; padding: clamp(24px, 4vw, 40px); background: var(--white); }
.download-box .file { font-size: .95rem; color: var(--muted); margin: 12px 0 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 46px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 600; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.contact-grid div { border-top: 3px solid var(--swatch, var(--action)); padding-top: 14px; }
.contact-grid h2 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-grid p { margin: 0; color: var(--muted); }
.contact-grid a { font-weight: 600; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Galerie de captures (page CiView) --------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.shots figure { margin: 0; }
.shots img { border: 1px solid #c3ccd4; border-radius: 6px; box-shadow: 0 18px 40px -28px rgba(23, 32, 42, .5); }
.shots figcaption { font-size: .95rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* --- Capture du logiciel dans le bandeau d'accueil ------------------------------ */
.hero-shot { margin: 0; }
.hero-shot img { width: 100%; border: 1px solid var(--canvas-line); border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
@media (min-width: 1300px) { .hero-shot { margin-right: calc((1180px - 100vw) / 2 + 40px); } }
