/* Softic.Academy — feuille de style des pages publiques.
   Charte SOFTIC : navy #0A2540, orange #FF7200 (accent unique), bleu #187CC2 (liens). Titres Space Grotesk, texte Inter. */
:root {
    --navy: #0A2540;
    --navy-2: #13365C;
    --orange: #FF7200;
    --blue: #187CC2;
    --ink: #17263A;
    --muted: #5F6F82;
    --line: #D9E1EA;
    --paper: #F6F8FB;
    --card: #FFFFFF;
    --soft: #EEF3F8;
    --footer-height: 40px;
    --side-width: 272px;
    --font-text: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --font-title: "Space Grotesk", "Segoe UI", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: 16px; }
body { font-family: var(--font-text); color: var(--ink); background: var(--paper); line-height: 1.6; padding-bottom: calc(var(--footer-height) + 24px); }
body.rtl { --font-text: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif; --font-title: "Noto Sans Arabic", "Segoe UI", Arial, sans-serif; }
h1, h2, h3, .brand, .side-name, .shelf-name span, .version { font-family: var(--font-title); letter-spacing: -.01em; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; color: var(--navy); font-weight: 700; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 12px; color: var(--navy); font-weight: 700; }
h2 small { font-family: var(--font-text); font-weight: 500; color: var(--muted); font-size: .85rem; margin-inline-start: 8px; }
h3 { font-size: 1.1rem; margin: 20px 0 6px; color: var(--navy); }
p { margin: 0 0 12px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #fff; padding: 6px 12px; border-radius: 4px; z-index: 50; }
.skip:focus { left: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ----- barre supérieure */
.topbar { display: flex; align-items: center; gap: 28px; padding: 0 28px; height: 60px; background: var(--navy); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-mark { width: 14px; height: 14px; background: var(--orange); border-radius: 3px; }
.brand-product { font-weight: 500; color: #BFD6F2; }
.topnav { display: flex; gap: 4px; }
.topnav a { color: #D5E4F6; padding: 6px 12px; border-radius: 6px; font-weight: 500; }
.topnav a.active, .topnav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.lang { margin-inline-start: auto; display: flex; gap: 2px; }
.lang a { color: #BFD6F2; padding: 5px 11px; border-radius: 16px; font-size: .88rem; }
.lang a.active { background: var(--orange); color: #fff; }
.lang a:hover { text-decoration: none; background: rgba(255,255,255,.12); }
.lang a.active:hover { background: var(--orange); }

/* ----- page */
.page { max-width: 1180px; margin: 0 auto; padding: 28px 28px 48px; }
.hero { padding: 24px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; max-width: 76ch; }
.hero .lead { font-size: 1.1rem; color: var(--muted); margin: 0; }
.lead { font-size: 1.05rem; color: var(--muted); }
.hint { color: var(--muted); max-width: 76ch; }
.more { font-weight: 500; }

/* ----- accueil : bandeau, chiffres, cartes, vidéos, étapes */
.hero-home { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, #0F3B66 70%, #134A80 100%); color: #fff; border-radius: 14px; padding: 48px 40px 28px; margin-bottom: 36px; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse at 20% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000 30%, transparent 75%); }
.hero-home::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,114,0,.45) 0%, rgba(255,114,0,0) 70%); pointer-events: none; }
.hero-inner { position: relative; max-width: 68ch; }
.hero-home h1 { color: #fff; font-size: 2.3rem; margin-bottom: 10px; }
.hero-home .lead { color: #D5E4F6; font-size: 1.15rem; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.button.ghost { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.button.ghost:hover { background: rgba(255,255,255,.12); }
.stats { position: relative; list-style: none; margin: 32px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats b { display: block; font-family: var(--font-title); font-size: 1.9rem; line-height: 1; color: #fff; }
.stats span { display: block; margin-top: 4px; color: #BFD6F2; font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
    .hero-inner > * { animation: rise .5s ease-out both; }
    .hero-inner > *:nth-child(2) { animation-delay: .08s; }
    .hero-inner > *:nth-child(3) { animation-delay: .16s; }
    @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2, .section-head p { margin: 0; }
.product-cards { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.product-card-head { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.product-card-head:hover { text-decoration: none; }
.product-card-head:hover .name { color: var(--blue); }
.product-card .logo { width: 48px; height: 48px; object-fit: contain; flex: 0 0 48px; }
.monogram { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; color: #fff; background: hsl(var(--hue, 210) 55% 38%); letter-spacing: .02em; }
.product-card-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-card-title .name { font-family: var(--font-title); font-size: 1.2rem; font-weight: 700; }
.product-card-title .category { font-size: .8rem; color: var(--orange); font-weight: 600; margin: 0; }
.product-card .summary { margin: 0; font-size: .93rem; color: var(--ink); }
.counts-row { display: flex; flex-wrap: wrap; gap: 6px; }
.counts-row a { background: var(--soft); border-radius: 14px; padding: 3px 10px; font-size: .82rem; color: var(--navy); }
.counts-row a:hover { background: #E1EAF4; text-decoration: none; }
.counts-row b { font-weight: 700; }
.product-card .small { margin: 0; }
.latest-videos { margin-bottom: 36px; }
.video-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.video-tile { position: relative; display: flex; align-items: flex-end; min-height: 150px; border-radius: 12px; padding: 14px; color: #fff; background: linear-gradient(160deg, #13365C, var(--navy)); background-size: cover; background-position: center; overflow: hidden; }
.video-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,37,64,0) 20%, rgba(10,37,64,.85) 100%); }
.video-tile:hover { text-decoration: none; }
.play-big { position: absolute; top: 14px; inset-inline-start: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); }
.play-big::after { content: ""; position: absolute; left: 16px; top: 12px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.rtl .play-big::after { left: auto; right: 16px; border-width: 8px 13px 8px 0; border-color: transparent #fff transparent transparent; }
.tile-text { position: relative; display: flex; flex-direction: column; gap: 2px; }
.tile-product { font-size: .78rem; color: #BFD6F2; }
.tile-title { font-weight: 600; line-height: 1.3; }
.tile-duration { font-size: .78rem; color: #D5E4F6; font-variant-numeric: tabular-nums; }
.how { margin-bottom: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: etape; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 56px; position: relative; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { counter-increment: etape; content: counter(etape); position: absolute; inset-inline-start: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.steps svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.steps b { font-family: var(--font-title); color: var(--navy); font-size: 1.05rem; }
.steps span { font-size: .92rem; color: var(--muted); }
.rtl .steps li { padding: 18px 56px 18px 20px; }

/* ----- accueil : étagère des applications */
.shelf { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.shelf-row { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.shelf-row:last-child { border-bottom: 0; }
.shelf-name { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: 1.3rem; font-weight: 700; }
.shelf-name img { width: 40px; height: 40px; object-fit: contain; }
.shelf-name:hover { text-decoration: none; color: var(--blue); }
.shelf-body p { margin: 4px 0 10px; max-width: 70ch; }
.version { display: inline-block; font-size: .85rem; color: var(--navy); background: var(--soft); border-radius: 12px; padding: 1px 10px; font-weight: 500; }
.shelf-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; }
.shelf-links a b { color: var(--navy); font-weight: 600; margin-inline-start: 4px; }

/* ----- nouveautés */
.timeline { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.timeline li { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--muted); min-width: 88px; font-variant-numeric: tabular-nums; }
.tag { border-radius: 12px; padding: 1px 10px; font-size: .78rem; background: var(--soft); color: var(--navy); white-space: nowrap; }
.tag-productadded, .tag-productpublished { background: #FFEBD9; color: #B04F00; }
.tag-versionreleased { background: #E3F0FB; color: var(--blue); }
.tag-contentremoved { background: #FBE7E6; color: #A1332C; }
.timeline .product { font-weight: 600; color: var(--navy); }
.timeline .kind { color: var(--muted); font-size: .85rem; }
.timeline .title { color: var(--ink); }
.news-page h1 { margin-bottom: 16px; }
.pager { display: flex; gap: 16px; margin: 16px 0; }

/* ----- fiche produit : deux colonnes */
.product-layout { display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); gap: 36px; align-items: start; }
.side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.side-product { display: flex; flex-direction: column; gap: 4px; color: var(--navy); padding: 4px 0 12px; border-bottom: 2px solid var(--navy); }
.side-product:hover { text-decoration: none; }
.side-product img { width: 48px; height: 48px; object-fit: contain; margin-bottom: 6px; }
.side-name { font-size: 1.25rem; font-weight: 700; }
.side-version { font-size: .85rem; color: var(--muted); }
.side-kinds { display: flex; flex-direction: column; }
.side-kinds a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 6px; color: var(--ink); font-weight: 500; }
.side-kinds a b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-kinds a:hover { background: var(--soft); text-decoration: none; }
.side-kinds a.active { background: var(--navy); color: #fff; }
.side-kinds a.active b { color: #BFD6F2; }
.side-list { display: flex; flex-direction: column; border-inline-start: 1px solid var(--line); }
.side-group { font-size: .78rem; color: var(--muted); padding: 10px 12px 4px; }
.side-list a { display: flex; gap: 10px; padding: 6px 12px; color: var(--ink); font-size: .92rem; line-height: 1.4; border-inline-start: 3px solid transparent; margin-inline-start: -2px; }
.side-list a i { font-style: normal; color: var(--muted); min-width: 1.4em; font-variant-numeric: tabular-nums; }
.side-list a:hover { text-decoration: none; color: var(--blue); }
.side-list a.active { color: var(--navy); font-weight: 600; border-inline-start-color: var(--orange); }
.content { min-width: 0; max-width: 78ch; }
.crumbs { font-size: .88rem; color: var(--muted); display: flex; gap: 8px; margin-bottom: 10px; }
.crumbs span::before { content: "/"; margin-inline-end: 8px; color: var(--line); }
.product-hero { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.category { color: var(--orange); font-weight: 600; margin: 0 0 4px; }
.product-meta, .reader-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .9rem; margin: 4px 0 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 16px; }
.button { display: inline-block; background: var(--orange); color: #fff; border-radius: 6px; padding: 9px 18px; font-weight: 600; }
.button:hover { text-decoration: none; background: #E66700; }
.button.secondary { background: var(--navy); }
.button.secondary:hover { background: var(--navy-2); }
.textlink { font-weight: 500; }
.block { margin-bottom: 36px; }

.chapters { margin: 0; padding-inline-start: 1.8em; counter-reset: chapitre; }
.chapters li { padding: 8px 0 8px 6px; border-bottom: 1px solid var(--line); }
.chapters li:last-child { border-bottom: 0; }
.chapters li::marker { color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--font-title); }
.chapters a { font-weight: 600; color: var(--navy); }
.chapters p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.videos li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.videos li > a { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; }
.play { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); position: relative; flex: 0 0 28px; }
.play::after { content: ""; position: absolute; left: 11px; top: 8px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.rtl .play::after { left: auto; right: 11px; border-width: 6px 10px 6px 0; border-color: transparent #fff transparent transparent; }
.video-title { flex: 1; }
.duration { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.videos .group { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.videos p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }

.sheets, .releases-list { list-style: none; margin: 0; padding: 0; }
.sheets li, .releases-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sheets li:last-child, .releases-list li:last-child { border-bottom: 0; }
.sheets a, .releases-list a { font-weight: 600; color: var(--navy); }
.range { display: inline-block; margin-inline-start: 10px; font-size: .8rem; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 1px 8px; }
.releases-list p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* ----- lecture */
.reader-head { margin-bottom: 20px; }
.notice { background: #FFF4E8; border-inline-start: 3px solid var(--orange); padding: 8px 12px; border-radius: 4px; color: #7A3A00; font-size: .92rem; }
.inpage { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 0 0 24px; font-size: .92rem; }
.inpage > span { display: block; color: var(--muted); margin-bottom: 4px; }
.inpage ul { margin: 0; padding: 0; list-style: none; }
.inpage li.level-3 { padding-inline-start: 16px; }
.prose { font-size: 1.02rem; line-height: 1.65; }
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.1rem; margin: 24px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-inline-start: 1.6em; }
.prose li { margin-bottom: 4px; }
.prose img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 0 0 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: start; vertical-align: top; }
.prose th { background: var(--soft); color: var(--navy); }
.prose code { background: var(--soft); border-radius: 4px; padding: 1px 5px; font-size: .9em; font-family: Consolas, "Cascadia Mono", monospace; }
.prose pre { background: var(--navy); color: #E6EDF5; border-radius: 8px; padding: 12px 16px; overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 0 0 14px; padding: 6px 16px; border-inline-start: 3px solid var(--blue); background: var(--card); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.tags { color: var(--muted); font-size: .88rem; margin-top: 24px; }
.tags em { font-style: normal; background: var(--soft); border-radius: 10px; padding: 1px 8px; margin-inline-end: 4px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.prevnext a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--navy); font-weight: 600; }
.prevnext a small { color: var(--muted); font-weight: 400; }
.prevnext a.next { text-align: end; }
.prevnext a:hover { text-decoration: none; border-color: var(--blue); }

/* ----- vidéo */
.variants { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; font-size: .9rem; }
.variants > span { color: var(--muted); margin-inline-end: 6px; }
.variants a { padding: 3px 12px; border-radius: 14px; background: var(--soft); color: var(--navy); }
.variants a.active { background: var(--navy); color: #fff; }
.variants a:hover { text-decoration: none; }
.player { background: #000; border-radius: 10px; overflow: hidden; }
.player video { display: block; width: 100%; max-height: 70vh; }
.video-tools { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 20px; font-size: .92rem; color: var(--muted); }

/* ----- versions */
.release { padding: 20px 0; border-bottom: 1px solid var(--line); }
.release h2 { display: flex; align-items: center; gap: 12px; }
.release .current { font-family: var(--font-text); font-size: .78rem; font-weight: 600; color: #B04F00; background: #FFEBD9; border-radius: 12px; padding: 2px 10px; }

/* ----- abonnement */
.topnav a.subscribe-link { background: var(--orange); color: #fff; }
.topnav a.subscribe-link:hover, .topnav a.subscribe-link.active { background: #E66700; }
.subscribe { max-width: 640px; }
.subscribe-hint { margin-top: 10px; font-size: .92rem; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label, .field legend { font-weight: 500; color: var(--navy); font-size: .92rem; }
.field input, .field select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field input[readonly] { background: var(--soft); color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-error { color: #A1332C; font-size: .85rem; }
fieldset.field { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 6px; }
.choice { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 4px 0; cursor: pointer; }
.product-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 6px; padding-inline-start: 26px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.notice.ok { background: #E8F6EC; border-inline-start-color: #2E8B57; color: #1F5E3B; }
.notice.error { background: #FBE7E6; border-inline-start-color: #A1332C; color: #7A2520; }
.message .actions { margin-top: 20px; }

/* ----- divers */
.error { text-align: center; padding: 60px 0; }
/* la regle precedente vise la page d'erreur ; dans les formulaires, .error est un message de champ */
.field .error { text-align: start; padding: 0; color: #A1332C; font-size: .85rem; }
.field .error:empty, .notice:empty { display: none; }
.notice.error { text-align: start; padding: 8px 12px; }
.notice ul { margin: 0; padding-inline-start: 18px; }
.setup { max-width: 760px; margin: 40px auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; }
.setup h1 { font-size: 1.4rem; margin-top: 0; }
.console { background: var(--navy); color: #E6EDF5; border-radius: 6px; padding: 10px 14px; font-family: Consolas, "Cascadia Mono", monospace; font-size: .9rem; white-space: pre-wrap; word-break: break-word; }
.setup details { margin: 12px 0; }
.setup summary { cursor: pointer; color: var(--muted); }
.footbar { position: fixed; left: 0; right: 0; bottom: 0; height: var(--footer-height); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px; background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; gap: 20px; }
    .side { position: static; }
    .side-list { max-height: 260px; overflow: auto; }
}
@media (max-width: 640px) {
    .topbar { padding: 0 14px; gap: 12px; height: auto; flex-wrap: wrap; row-gap: 0; }
    .topnav { order: 3; width: 100%; padding-bottom: 8px; }
    .lang { margin-inline-start: auto; }
    .page, .footbar { padding-left: 14px; padding-right: 14px; }
    .shelf-row { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
    .prevnext { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    h1 { font-size: 1.6rem; }
    .footbar { font-size: .72rem; }
}

/* ----- pièces jointes d'un guide ou d'une fiche */
.attachments { margin: 28px 0 8px; padding: 14px 18px; background: var(--soft); border-radius: 10px; }
.attachments h2 { font-size: 1rem; margin: 0 0 8px; }
.attachments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.attachments small { color: var(--muted); margin-inline-start: 6px; }

/* ----- espace partenaires */
.lock-badge { display: inline-block; width: 14px; height: 14px; margin-inline-start: 6px; vertical-align: -2px; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") no-repeat center / contain; }
.topnav .partner-link .lock-badge { margin-inline-start: 0; margin-inline-end: 6px; }
.topnav .partner-logout { color: var(--muted); font-size: .9rem; }
.partner-hero .eyebrow { color: var(--orange); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0 0 6px; }
.partner-login .check label { display: flex; align-items: center; gap: 8px; }
.partner-login .hint { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.tag-partners { background: #FFF4EA; color: var(--orange); }

/* Mon espace : profil, validation, licences */
.profile-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.profile-grid dt { color: var(--muted); font-size: .9rem; }
.profile-grid dd { margin: 0; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #EEF2F6; color: #3B4A5A; }
.status-pill.ok { background: #E8F6EC; color: #1F5E3B; }
.status-pill.pending { background: #FFF4E8; color: #7A3A00; }
.status-pill.error, .status-pill.inactive { background: #FBE7E6; color: #7A2520; }
.status-pill.inactive { background: #EEF2F6; color: #5B6B7B; }
.table-wrap { overflow-x: auto; }
table.licences { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.licences th, table.licences td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: start; }
table.licences th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
table.licences tr.inactive td { color: var(--muted); }
.register .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.register .radio { display: block; margin: 4px 0; font-weight: normal; }
.register .label { font-weight: 600; }
.field.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .register .field-row { grid-template-columns: 1fr; } .profile-grid { grid-template-columns: 1fr; } }

/* Mon espace : sous-navigation, formulaires, utilisateurs */
.space-nav { display: flex; gap: 6px; margin: 18px 0 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.space-nav a { padding: 8px 14px; border-radius: 8px 8px 0 0; color: var(--muted); text-decoration: none; font-weight: 600; }
.space-nav a.active, .space-nav a:hover { color: var(--navy); background: #EEF2F6; }
.space-form h2 { margin-top: 0; font-size: 1.15rem; }
.space-form select, .space-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.space-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.roles-help { display: grid; gap: 4px; margin: 0 0 14px; padding: 10px 14px; background: #F6F8FB; border-radius: 8px; font-size: .9rem; }
.roles-help p { margin: 0; }
table.team select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .9rem; }
.inline-form { display: inline; }
button.link { background: none; border: none; padding: 0 4px; color: var(--orange); font: inherit; cursor: pointer; text-decoration: underline; }
button.link.danger { color: #A1332C; }
.row-actions { white-space: nowrap; }
.invite-link { display: block; margin-top: 6px; word-break: break-all; font-size: .85rem; }
@media (max-width: 640px) { .space-form .field-row { grid-template-columns: 1fr; } }

/* Menu compte dans la barre principale */
.account-menu { position: relative; margin-inline-start: 4px; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; color: #fff; cursor: pointer; background: rgba(255,255,255,.08); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu[open] summary, .account-menu.active summary, .account-menu summary:hover { background: rgba(255,255,255,.16); }
.account-menu .avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; font-size: .8rem; }
.account-menu .account-name { font-weight: 600; font-size: .92rem; line-height: 1.1; }
.account-menu .account-org { display: block; font-size: .72rem; color: #B8C7D8; line-height: 1.1; }
.account-menu summary > .account-name + .account-org { margin-inline-start: -4px; }
.account-dropdown { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(10,25,47,.18); padding: 6px; z-index: 50; }
.account-dropdown a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--navy); text-decoration: none; font-weight: 500; }
.account-dropdown a:hover { background: #EEF2F6; }
.account-dropdown a.danger { color: #A1332C; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 6px 6px; }
.authorizations { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.authorizations li { display: flex; align-items: center; gap: 10px; }
.auth-icon { width: 12px; height: 12px; border-radius: 50%; background: #C9D3DE; flex: none; }
.auth-icon.on { background: #2E8B57; }
.auth-icon.off { background: #C9D3DE; }
@media (max-width: 820px) { .account-menu .account-name, .account-menu .account-org { display: none; } .account-menu summary { padding: 4px; } }
