@layer reset, base, layout, components, motion;

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

  html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
  }

  body,
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }

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

  a {
    color: inherit;
    text-decoration: none;
  }

  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }
}

@layer base {
  :root {
    color-scheme: dark;
    --page: #07131f;
    --page-soft: #0a1b2a;
    --surface: #0d2031;
    --surface-raised: #10283b;
    --line: rgb(158 205 235 / 12%);
    --text: #f3f8fc;
    --muted: #9bb0c0;
    --blue: #2495d0;
    --blue-bright: #56baff;
    --yellow: #ffc83d;
    --dot-color: rgb(119 185 225 / 13%);
    --header-bg: rgb(7 19 31 / 78%);
    --nav-text: #b2c4d1;
    --eyebrow-text: #9cb8ca;
    --muted-heading: #668196;
    --lead-text: #e6f2f9;
    --link-text: #bce7ff;
    --meta-text: #839eaf;
    --art-caption-text: #7894a8;
    --features-bg: linear-gradient(180deg, rgb(10 29 44 / 70%), rgb(7 19 31 / 30%));
    --feature-bg: linear-gradient(145deg, rgb(19 47 68 / 86%), rgb(10 28 43 / 92%));
    --feature-large-bg: linear-gradient(145deg, rgb(17 84 124 / 72%), rgb(11 34 52 / 96%));
    --feature-hover-bg: linear-gradient(145deg, rgb(22 59 85 / 92%), rgb(11 32 49 / 96%));
    --card-copy: #9fb5c5;
    --card-index: #7e9caf;
    --compat-bg: radial-gradient(ellipse at 82% 50%, rgb(19 126 184 / 25%), transparent 45%), linear-gradient(120deg, #0d263a, #0b1c2b 73%);
    --compat-chip-bg: rgb(10 31 47 / 85%);
    --compat-chip-text: #b8d9eb;
    --footer-bg: rgb(4 13 22 / 55%);
    --footer-copy: #829aaa;
    --footer-note: #718da1;
    --status-supported: #39bc86;
    --status-limited: #d89e34;
    --secondary-bg: rgb(255 255 255 / 3%);
    --secondary-text: #d6e6f0;
    --nav-cta-bg: rgb(34 113 160 / 12%);
    --nav-cta-text: #c6e9fb;
    --scroll-cue-text: #7792a5;
    --scroll-cue-line: #47728d;
    --gradient-start: #f5fbff;
    --gradient-middle: #8fd5ff;
    --gradient-end: #f8c947;
    --radius-large: 30px;
    --content-width: 1160px;
    --ease-out: cubic-bezier(.2, .75, .25, 1);
  }

  :root:has(#theme-light:checked) {
    color-scheme: light;
    --page: #edf5fa;
    --page-soft: #e5f1f8;
    --surface: #ffffff;
    --surface-raised: #f5f9fc;
    --line: rgb(31 87 122 / 15%);
    --text: #102b40;
    --muted: #526d80;
    --blue: #167ead;
    --blue-bright: #116f9f;
    --yellow: #986600;
    --dot-color: rgb(27 107 155 / 10%);
    --header-bg: rgb(244 249 252 / 88%);
    --nav-text: #456174;
    --eyebrow-text: #4c6b80;
    --muted-heading: #668196;
    --lead-text: #183a50;
    --link-text: #126f9d;
    --meta-text: #587284;
    --art-caption-text: #526d80;
    --features-bg: linear-gradient(180deg, rgb(216 235 246 / 92%), rgb(239 247 251 / 80%));
    --feature-bg: linear-gradient(145deg, rgb(255 255 255 / 98%), rgb(235 245 250 / 98%));
    --feature-large-bg: linear-gradient(145deg, rgb(219 240 250 / 100%), rgb(239 247 251 / 100%));
    --feature-hover-bg: linear-gradient(145deg, rgb(227 244 252 / 100%), rgb(245 250 253 / 100%));
    --card-copy: #496476;
    --card-index: #587486;
    --compat-bg: radial-gradient(ellipse at 82% 50%, rgb(52 151 199 / 16%), transparent 45%), linear-gradient(120deg, #e0eff7, #f1f7fb 73%);
    --compat-chip-bg: rgb(255 255 255 / 90%);
    --compat-chip-text: #34566b;
    --footer-bg: rgb(224 239 247 / 80%);
    --footer-copy: #536c7c;
    --footer-note: #526d80;
    --status-supported: #0f754f;
    --status-limited: #835600;
    --secondary-bg: rgb(20 73 102 / 4%);
    --secondary-text: #294b60;
    --nav-cta-bg: rgb(22 126 173 / 8%);
    --nav-cta-text: #17536f;
    --scroll-cue-text: #526d80;
    --scroll-cue-line: #91aebe;
    --gradient-start: #14364a;
    --gradient-middle: #1478a7;
    --gradient-end: #a36d00;
  }

  body {
    overflow-x: hidden;
    background:
      radial-gradient(ellipse at 82% 13%, rgb(17 112 166 / 17%), transparent 34rem),
      radial-gradient(ellipse at 8% 53%, rgb(12 83 130 / 12%), transparent 38rem),
      var(--page);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(var(--dot-color) .8px, transparent .8px);
    background-size: 28px 28px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 78%);
    pointer-events: none;
  }

  ::selection {
    background: rgb(36 149 208 / 35%);
    color: white;
  }

  :focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 5px;
  }

  .container {
    width: min(var(--content-width), calc(100% - 3rem));
    margin-inline: auto;
  }

  .section {
    padding-block: 8rem;
  }

  .section-kicker,
  .eyebrow,
  .card-index,
  .art-caption,
  .scroll-cue,
  .footer-note {
    font-size: .69rem;
    font-weight: 750;
    letter-spacing: .16em;
  }

  .section-kicker {
    margin-bottom: 1.5rem;
    color: var(--blue-bright);
  }

  h1,
  h2,
  h3 {
    font-weight: 750;
    letter-spacing: -.055em;
    line-height: 1.04;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(3.2rem, 7vw, 6.25rem);
  }

  h2 {
    font-size: clamp(2.7rem, 5.2vw, 4.5rem);
  }

  h3 {
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  }

  .gradient-text {
    background: linear-gradient(100deg, var(--gradient-start) 2%, var(--gradient-middle) 48%, var(--gradient-end) 105%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
  }

  .muted-heading {
    color: var(--muted-heading);
  }
}

@layer layout {
  .site-shell {
    isolation: isolate;
    overflow: clip;
  }

  .site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgb(175 216 242 / 7%);
    background: var(--header-bg);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
  }

  .navigation,
  .nav-links,
  .brand,
  .hero-actions,
  .hero-meta,
  .footer-inner {
    display: flex;
    align-items: center;
  }

  .navigation {
    min-height: 82px;
    justify-content: space-between;
    gap: 2rem;
  }

  .brand {
    flex: 0 0 auto;
    gap: .75rem;
    font-size: 1.05rem;
    font-weight: 780;
    letter-spacing: -.04em;
  }

  .brand img {
    width: 43px;
    height: 43px;
    object-fit: contain;
  }

  .brand-accent,
  .footer-brand span {
    color: var(--blue-bright);
  }

  .nav-links {
    justify-content: center;
    gap: clamp(1.4rem, 3.2vw, 3rem);
    color: var(--nav-text);
    font-size: .84rem;
    font-weight: 550;
  }

  .nav-links a,
  .text-link {
    transition: color 180ms ease;
  }

  .nav-links a:hover,
  .text-link:hover {
    color: var(--blue-bright);
  }

  .hero {
    position: relative;
    display: grid;
    min-height: min(790px, calc(100svh - 82px));
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 2rem;
    padding-top: 5.5rem;
    padding-bottom: 8rem;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    padding-block: 2rem;
  }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 2rem;
    color: var(--eyebrow-text);
  }

  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 16px rgb(255 200 61 / 75%);
  }

  .eyebrow-separator {
    color: #486a80;
  }

  .hero-description {
    max-width: 570px;
    margin-top: 1.8rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.13rem);
    line-height: 1.85;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2.2rem;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 1.7rem;
    margin-top: 3rem;
    color: var(--meta-text);
    font-size: .78rem;
  }

  .hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
  }

  .meta-symbol {
    color: var(--blue-bright);
    font-size: 1.1rem;
  }

  .meta-symbol-yellow {
    color: var(--yellow);
  }

  .hero-art {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 560px;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: center;
    padding-block: .5rem 1rem;
    margin: 0;
  }

  .art-glow {
    position: absolute;
    width: min(90%, 510px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(26 135 197 / 30%), rgb(14 76 119 / 11%) 48%, transparent 70%);
    filter: blur(12px);
  }

  .logo-card {
    position: relative;
    z-index: 2;
    width: min(100%, 440px);
    grid-row: 1;
    filter: drop-shadow(0 36px 65px rgb(0 0 0 / 40%));
  }

  .logo-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
  }

  .orbit {
    position: absolute;
    width: 104%;
    aspect-ratio: 1;
    border: 1px solid rgb(106 184 229 / 13%);
    border-radius: 50%;
  }

  .orbit-one {
    width: 93%;
  }

  .orbit-two {
    width: 112%;
    border-style: dashed;
    border-color: rgb(106 184 229 / 9%);
  }

  .art-caption {
    position: relative;
    z-index: 2;
    display: flex;
    grid-row: 2;
    align-items: center;
    justify-self: center;
    gap: .7rem;
    margin-top: .4rem;
    color: var(--art-caption-text);
    font-size: .6rem;
  }

  .caption-line {
    width: 32px;
    height: 1px;
    background: var(--yellow);
  }

  .scroll-cue {
    position: absolute;
    bottom: 2.4rem;
    left: 0;
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--scroll-cue-text);
    font-size: .58rem;
  }

  .scroll-cue-line {
    width: 38px;
    height: 1px;
    background: var(--scroll-cue-line);
  }

  .intro-section {
    display: grid;
    grid-template-columns: 1fr .8fr;
    gap: 5rem;
    border-top: 1px solid var(--line);
  }

  .intro-copy {
    max-width: 530px;
    padding-top: 2.5rem;
  }

  .lead-copy {
    margin-bottom: 1.3rem;
    color: var(--lead-text);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.5;
  }

  .intro-copy > p:not(.lead-copy),
  .compat-copy > p:not(.section-kicker),
  .closing-section > p:not(.section-kicker) {
    color: var(--muted);
    line-height: 1.9;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    margin-top: 2rem;
    color: var(--link-text);
    font-size: .9rem;
    font-weight: 650;
  }

  .project-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--line);
  }

  .fact-item {
    display: flex;
    min-height: 142px;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: 1.5rem 1.7rem;
    background: var(--surface);
  }

  .fact-label {
    color: var(--blue-bright);
    font-size: .6rem;
    font-weight: 750;
    letter-spacing: .13em;
  }

  .fact-item strong {
    color: var(--text);
    font-size: 1.35rem;
    letter-spacing: -.035em;
  }

  .fact-item > span:last-child {
    color: var(--muted);
    font-size: .8rem;
  }

  .features-section {
    position: relative;
    border-block: 1px solid var(--line);
    background: var(--features-bg);
  }

  .section-topline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .section-aside {
    max-width: 270px;
    padding-bottom: .5rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: 1.12fr 1fr 1fr;
    gap: 1rem;
  }

  .feature-card {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-large);
    background: var(--feature-bg);
    transition: transform 280ms var(--ease-out), border-color 280ms ease, background 280ms ease, box-shadow 280ms ease;
  }

  .feature-card:hover {
    transform: translateY(-7px);
    border-color: rgb(91 183 235 / 40%);
    background: var(--feature-hover-bg);
    box-shadow: 0 22px 55px rgb(0 0 0 / 20%);
  }

  .feature-card-large {
    background: var(--feature-large-bg);
  }

  .feature-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 2.2rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 15px;
    font-size: 1.65rem;
  }

  .icon-blue {
    background: rgb(42 160 222 / 17%);
    color: #7bceff;
  }

  .icon-yellow {
    background: rgb(255 200 61 / 12%);
    color: var(--yellow);
  }

  .icon-cyan {
    background: rgb(68 205 218 / 12%);
    color: #80e7ec;
  }

  .card-index {
    margin-bottom: .9rem;
    color: var(--card-index);
    font-size: .58rem;
  }

  .feature-card h3 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  }

  .feature-card > p:last-of-type {
    position: relative;
    z-index: 1;
    max-width: 290px;
    margin-top: 1.1rem;
    color: var(--card-copy);
    font-size: .88rem;
    line-height: 1.8;
  }

  .card-decoration {
    position: absolute;
    right: -2rem;
    bottom: -3rem;
    opacity: .55;
    pointer-events: none;
  }

  .decoration-ring {
    width: 180px;
    aspect-ratio: 1;
    border: 1px solid rgb(105 196 244 / 28%);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgb(105 196 244 / 4%), 0 0 0 45px rgb(105 196 244 / 3%);
  }

  .decoration-dots {
    width: 150px;
    height: 150px;
    background-image: radial-gradient(rgb(255 200 61 / 35%) 2px, transparent 2px);
    background-size: 17px 17px;
    mask-image: radial-gradient(circle, black, transparent 70%);
  }

  .decoration-cross {
    color: rgb(95 214 224 / 18%);
    line-height: 0;
  }

  .compat-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .compat-panel {
    display: grid;
    min-height: 470px;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgb(129 193 230 / 17%);
    border-radius: 36px;
    background: var(--compat-bg);
  }

  .compat-copy {
    position: relative;
    z-index: 2;
    padding: 4rem 0 4rem 4rem;
  }

  .compat-copy > p:not(.section-kicker) {
    max-width: 470px;
    margin-top: 1.5rem;
  }

  .compat-copy .button {
    margin-top: 2rem;
  }

  .compat-visual {
    position: relative;
    display: grid;
    min-height: 420px;
    place-items: center;
  }

  .compat-orbit {
    position: absolute;
    width: 300px;
    aspect-ratio: 1;
    border: 1px solid rgb(91 190 240 / 22%);
    border-radius: 50%;
  }

  .compat-orbit-a {
    width: 270px;
    box-shadow: 0 0 50px rgb(28 143 202 / 13%), inset 0 0 50px rgb(28 143 202 / 9%);
  }

  .compat-orbit-b {
    width: 390px;
    border-style: dashed;
    border-color: rgb(91 190 240 / 15%);
  }

  .compat-center {
    position: relative;
    z-index: 1;
    width: 190px;
    aspect-ratio: 1;
    filter: drop-shadow(0 20px 35px rgb(0 0 0 / 38%));
  }

  .compat-center img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
  }

  .compat-chip {
    position: absolute;
    z-index: 2;
    padding: .55rem .9rem;
    border: 1px solid rgb(143 205 239 / 24%);
    border-radius: 999px;
    background: var(--compat-chip-bg);
    color: var(--compat-chip-text);
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .13em;
    box-shadow: 0 8px 28px rgb(0 0 0 / 20%);
    backdrop-filter: blur(12px);
  }

  .chip-one {
    top: 17%;
    left: 15%;
  }

  .chip-two {
    right: 8%;
    bottom: 25%;
    color: var(--yellow);
  }

  .chip-three {
    bottom: 15%;
    left: 21%;
  }

  .closing-section {
    display: flex;
    min-height: 510px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-block: 7rem;
    border-top: 1px solid var(--line);
    text-align: center;
  }

  .closing-section h2 {
    font-size: clamp(3rem, 6vw, 5rem);
  }

  .closing-section > p:not(.section-kicker) {
    max-width: 520px;
    margin-top: 1.5rem;
  }

  .closing-section .button {
    margin-top: 2rem;
  }

  .site-footer {
    border-top: 1px solid var(--line);
    background: var(--footer-bg);
  }

  .footer-inner {
    min-height: 100px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
  }

  .footer-brand {
    font-size: .95rem;
    font-weight: 780;
    letter-spacing: -.04em;
  }

  .footer-inner > p {
    color: var(--footer-copy);
    font-size: .78rem;
  }

  .footer-note {
    color: var(--footer-note);
    font-size: .58rem;
  }
}

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

  .theme-switch {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .2rem;
    padding: .22rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }

  .theme-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .theme-switch label {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 0 .7rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 650;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .theme-switch input:checked + label {
    border-color: var(--line);
    background: var(--surface-raised);
    color: var(--text);
    box-shadow: 0 2px 9px rgb(0 0 0 / 8%);
  }

  .theme-switch input:focus-visible + label {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
  }

  .theme-switch label:hover {
    color: var(--blue-bright);
  }

  .skip-link {
    position: fixed;
    z-index: 100;
    top: 1rem;
    left: 1rem;
    transform: translateY(-160%);
    padding: .75rem 1rem;
    border-radius: 10px;
    background: var(--yellow);
    color: #1a2025;
    font-weight: 700;
    transition: transform 180ms ease;
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .nav-cta,
  .button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .83rem;
    font-weight: 700;
    transition: transform 200ms var(--ease-out), background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 1.15rem;
    border-color: rgb(113 190 234 / 22%);
    background: var(--nav-cta-bg);
    color: var(--nav-cta-text);
  }

  .button {
    padding: 0 1.4rem;
  }

  .button-primary {
    background: linear-gradient(110deg, #1689c4, #2babe0);
    color: white;
    box-shadow: 0 8px 28px rgb(16 133 193 / 22%);
  }

  .button-primary:hover {
    background: linear-gradient(110deg, #20a0df, #42b9e9);
    box-shadow: 0 12px 36px rgb(16 147 211 / 35%);
  }

  .button-secondary {
    border-color: rgb(153 194 220 / 22%);
    background: var(--secondary-bg);
    color: var(--secondary-text);
  }

  .button-secondary:hover,
  .nav-cta:hover {
    border-color: rgb(107 193 241 / 48%);
    background: rgb(34 113 160 / 20%);
  }

  .button:hover,
  .nav-cta:hover {
    transform: translateY(-2px);
  }

  .button:active,
  .nav-cta:active {
    transform: translateY(0) scale(.98);
  }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    /* Animation du logo de navigation : halo, soulèvement et accent lumineux. */
    .brand {
      position: relative;
      isolation: isolate;
      border-radius: 12px;
      outline-offset: 6px;
      transition: transform 260ms var(--ease-out);
    }

    .brand::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: -8px -10px;
      border-radius: 16px;
      background: radial-gradient(ellipse at 20% 50%, rgb(51 171 235 / 26%), transparent 70%);
      opacity: 0;
      transform: scale(.82);
      transition: opacity 300ms ease, transform 420ms var(--ease-out);
      pointer-events: none;
    }

    .brand::after {
      content: "";
      position: absolute;
      right: .15rem;
      bottom: -.48rem;
      left: .15rem;
      height: 2px;
      border-radius: 999px;
      background: linear-gradient(90deg, transparent, var(--blue-bright) 38%, var(--yellow) 68%, transparent);
      opacity: 0;
      transform: scaleX(.28);
      transition: opacity 260ms ease, transform 420ms var(--ease-out);
      pointer-events: none;
    }

    .brand img {
      transform-origin: 50% 60%;
      transition: transform 420ms cubic-bezier(.2, .8, .2, 1), filter 420ms ease;
    }

    .brand > span {
      transition: transform 300ms var(--ease-out);
    }

    .brand-accent {
      transition: color 300ms ease, text-shadow 300ms ease;
    }

    .brand:hover,
    .brand:focus-visible {
      transform: translateY(-1px);
    }

    .brand:hover::before,
    .brand:focus-visible::before {
      opacity: 1;
      transform: scale(1);
    }

    .brand:hover::after,
    .brand:focus-visible::after {
      opacity: 1;
      transform: scaleX(1);
    }

    .brand:hover img,
    .brand:focus-visible img {
      transform: translateY(-2px) rotate(-7deg) scale(1.09);
      filter: drop-shadow(0 5px 9px rgb(36 149 208 / 38%));
    }

    .brand:hover > span,
    .brand:focus-visible > span {
      transform: translateX(2px);
    }

    .brand:hover .brand-accent,
    .brand:focus-visible .brand-accent {
      text-shadow: 0 0 13px rgb(86 186 255 / 48%);
    }

    .hero-copy > * {
      animation: rise-in 850ms var(--ease-out) both;
    }

    .hero-copy .eyebrow { animation-delay: 80ms; }
    .hero-copy h1 { animation-delay: 160ms; }
    .hero-copy .hero-description { animation-delay: 240ms; }
    .hero-copy .hero-actions { animation-delay: 320ms; }
    .hero-copy .hero-meta { animation-delay: 400ms; }

    .logo-card {
      animation: logo-enter 1.1s var(--ease-out) 180ms both, logo-float 7s ease-in-out 1.3s infinite;
    }

    .art-glow {
      animation: glow-pulse 5s ease-in-out infinite alternate;
    }

    .orbit-one {
      animation: orbit-turn 38s linear infinite;
    }

    .orbit-two {
      animation: orbit-turn 58s linear infinite reverse;
    }

    .status-dot {
      animation: status-pulse 2.6s ease-in-out infinite;
    }

    .feature-card {
      animation: rise-in 850ms var(--ease-out) both;
    }

    .feature-card:nth-child(2) { animation-delay: 100ms; }
    .feature-card:nth-child(3) { animation-delay: 200ms; }

    .compat-center {
      animation: logo-float 6s ease-in-out infinite;
    }

    .compat-orbit-a {
      animation: orbit-turn 32s linear infinite;
    }

    .compat-orbit-b {
      animation: orbit-turn 48s linear infinite reverse;
    }

    .scroll-cue-line {
      transform-origin: left;
      animation: line-breathe 2.2s ease-in-out infinite;
    }
  }

  @keyframes rise-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes logo-enter {
    from { opacity: 0; transform: translateY(24px) scale(.94) rotate(-2deg); }
    to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
  }

  @keyframes logo-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
  }

  @keyframes glow-pulse {
    from { opacity: .62; scale: .94; }
    to { opacity: 1; scale: 1.06; }
  }

  @keyframes orbit-turn {
    to { rotate: 360deg; }
  }

  @keyframes status-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgb(255 200 61 / 42%); }
    50% { box-shadow: 0 0 0 7px rgb(255 200 61 / 0%); }
  }

  @keyframes line-breathe {
    0%, 100% { transform: scaleX(.55); opacity: .5; }
    50% { transform: scaleX(1); opacity: 1; }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: .01ms !important;
    }
  }
}

@media (max-width: 900px) {
  .nav-cta {
    display: none;
  }

  .navigation {
    gap: 1rem;
  }

  .nav-links {
    gap: 1.1rem;
    font-size: .78rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr .8fr;
    gap: .5rem;
    padding-top: 5rem;
    padding-bottom: 7rem;
  }

  .hero-art {
    min-height: 450px;
  }

  .logo-card {
    width: min(100%, 360px);
  }

  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-section {
    gap: 2.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card-large {
    grid-column: 1 / -1;
    min-height: 290px;
  }

  .compat-copy {
    padding-left: 2.5rem;
  }

  .compat-orbit-b { width: 320px; }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 2rem, var(--content-width));
  }

  .navigation {
    min-height: 72px;
    flex-wrap: wrap;
    gap: .7rem 1rem;
    padding-block: .8rem;
  }

  .brand {
    font-size: .98rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-cta {
    display: none;
    min-height: 38px;
    padding-inline: .9rem;
    font-size: .76rem;
  }

  .theme-switch {
    order: 2;
    margin-left: auto;
  }

  .theme-switch label {
    min-height: 32px;
    padding-inline: .6rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: .35rem;
    padding-top: .55rem;
    border-top: 1px solid var(--line);
    font-size: .68rem;
    letter-spacing: -.01em;
  }

  .nav-links a { white-space: nowrap; }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 4rem;
    padding-bottom: 6rem;
  }

  .hero-copy {
    padding-block: 0;
  }

  .eyebrow {
    flex-wrap: wrap;
    font-size: .58rem;
  }

  h1 {
    font-size: clamp(2.9rem, 12vw, 4.5rem);
  }

  .hero-description {
    margin-top: 1.3rem;
    font-size: .98rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .hero-meta {
    gap: .8rem 1.3rem;
    margin-top: 2rem;
    font-size: .72rem;
  }

  .hero-art {
    min-height: auto;
    grid-template-rows: auto auto;
    margin-top: 2rem;
    padding: 1rem 1.5rem 1.25rem;
  }

  .logo-card {
    width: min(100%, 360px);
  }

  .orbit-two { width: 100%; }
  .orbit-one { width: 84%; }

  .art-caption {
    justify-self: center;
    margin-top: .75rem;
  }

  .scroll-cue {
    bottom: 1.7rem;
  }

  .section {
    padding-block: 5.5rem;
  }

  .project-facts {
    grid-template-columns: 1fr 1fr;
    border-radius: 18px;
  }

  .fact-item {
    min-height: 125px;
    padding: 1.1rem;
  }

  .intro-section {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .intro-copy {
    padding-top: 1.5rem;
  }

  .section-topline {
    display: block;
    margin-bottom: 2rem;
  }

  .section-aside {
    margin-top: 1.3rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card-large {
    min-height: 310px;
    grid-column: auto;
  }

  .compat-section {
    padding-block: 5rem;
  }

  .compat-panel {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .compat-copy {
    padding: 2.5rem 1.5rem 0;
  }

  .compat-visual {
    min-height: 340px;
  }

  .compat-orbit-a { width: 210px; }
  .compat-orbit-b { width: 290px; }
  .compat-center { width: 150px; }

  .chip-one { top: 13%; left: 12%; }
  .chip-two { right: 5%; bottom: 22%; }
  .chip-three { bottom: 12%; left: 16%; }

  .closing-section {
    min-height: 440px;
    padding-block: 5rem;
  }

  .closing-section h2 {
    font-size: clamp(2.8rem, 11vw, 4.2rem);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: .45rem;
    padding-block: 1.5rem;
  }
}


/* -------------------------------------------------------------------------- */
/* PAGE COMPATIBILITÉ                                                         */
/* -------------------------------------------------------------------------- */
@layer layout {
  .compatibility-page {
    padding-bottom: 2rem;
  }

  .compatibility-hero {
    display: grid;
    min-height: 570px;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 3rem;
    padding-block: 5rem 4rem;
  }

  .compatibility-hero-copy {
    position: relative;
    z-index: 2;
  }

  .compatibility-hero-copy h1 {
    max-width: 760px;
    font-size: clamp(3.1rem, 6.4vw, 5.6rem);
  }

  .compatibility-lead {
    max-width: 650px;
    margin-top: 1.7rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.9;
  }

  .compatibility-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 2rem;
  }

  .compatibility-hero-art {
    position: relative;
    display: grid;
    min-height: 410px;
    place-items: center;
    isolation: isolate;
  }

  .compatibility-hero-art::before {
    position: absolute;
    z-index: -1;
    width: min(65%, 280px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgb(24 143 199 / 19%);
    filter: blur(48px);
    content: "";
  }

  .compatibility-hero-art img {
    width: min(68%, 285px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 24px 45px rgb(0 0 0 / 24%));
  }

  .compatibility-hero-art figcaption {
    position: absolute;
    bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--art-caption-text);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .19em;
  }

  .compatibility-hero-art figcaption::before {
    width: 34px;
    height: 1px;
    background: var(--yellow);
    content: "";
  }

  .compatibility-hero-orbit {
    position: absolute;
    z-index: -1;
    aspect-ratio: 1;
    border: 1px solid rgb(85 179 225 / 18%);
    border-radius: 50%;
  }

  .orbit-large { width: min(100%, 390px); border-style: dashed; }
  .orbit-small { width: min(78%, 300px); box-shadow: 0 0 55px rgb(36 149 208 / 10%); }

  .compatibility-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .compatibility-section {
    padding-block: 4rem;
  }

  .compatibility-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
  }

  .compatibility-section-heading h2,
  .compat-foot h2 {
    font-size: clamp(2.2rem, 4.7vw, 3.6rem);
  }

  .compatibility-section-heading > p {
    max-width: 440px;
    color: var(--muted);
    font-size: .93rem;
    line-height: 1.8;
  }

  .compatibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .environment-card,
  .summary-card,
  .unverified-panel {
    border: 1px solid var(--line);
    border-radius: 23px;
    background: var(--feature-bg);
    box-shadow: 0 16px 45px rgb(0 0 0 / 8%);
  }

  .environment-card {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    padding: 1.65rem;
    transition: transform 220ms var(--ease-out), border-color 220ms ease, background 220ms ease;
  }

  .environment-card::after {
    position: absolute;
    right: -65px;
    bottom: -95px;
    width: 190px;
    aspect-ratio: 1;
    border: 1px solid rgb(79 177 225 / 11%);
    border-radius: 50%;
    box-shadow: 0 0 0 22px rgb(79 177 225 / 3%), 0 0 0 48px rgb(79 177 225 / 2%);
    content: "";
    pointer-events: none;
  }

  .environment-card:hover {
    transform: translateY(-5px);
    border-color: rgb(74 177 230 / 34%);
  }

  .environment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
  }

  .environment-type {
    color: var(--blue-bright);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .14em;
  }

  .compat-status {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .4rem .68rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: .63rem;
    font-weight: 750;
    white-space: nowrap;
  }

  .compat-status > span,
  .meta-pill-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
  }

  .status-supported { color: var(--status-supported); }
  .status-limited { color: var(--status-limited); }
  .status-unverified { color: var(--muted); }

  .environment-card h3 {
    position: relative;
    z-index: 1;
    margin-top: 1.3rem;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  }

  .environment-description {
    position: relative;
    z-index: 1;
    max-width: 550px;
    margin-top: .9rem;
    color: var(--card-copy);
    font-size: .88rem;
    line-height: 1.75;
  }

  .environment-card code,
  .notice-panel code {
    overflow-wrap: anywhere;
    padding: .12rem .32rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--secondary-bg);
    color: var(--link-text);
    font-size: .82em;
  }

  .environment-detail {
    position: relative;
    z-index: 1;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .environment-detail strong {
    color: var(--text);
    font-size: .76rem;
  }

  .environment-detail p {
    margin-top: .4rem;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.7;
  }

  .summary-card {
    display: flex;
    min-height: 124px;
    flex-direction: column;
    justify-content: center;
    padding: 1.35rem 1.5rem;
  }

  .summary-number {
    color: var(--blue-bright);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1.1;
  }

  .summary-label {
    max-width: 250px;
    margin-top: .5rem;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.5;
  }

  .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--secondary-bg);
    color: var(--secondary-text);
    font-size: .7rem;
    font-weight: 650;
  }

  .dot-supported { color: #39bc86; }
  .dot-limited { color: #d89e34; }
  .dot-unverified { color: var(--muted); }

  .compatibility-limited {
    padding-top: 2.5rem;
  }

  .compatibility-grid-limited .environment-card {
    min-height: 325px;
  }

  .environment-card-limited {
    background: var(--feature-bg);
  }

  .notice-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.4rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--compat-bg);
  }

  .notice-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgb(74 177 230 / 24%);
    border-radius: 17px;
    background: rgb(36 149 208 / 12%);
    color: var(--blue-bright);
    font-size: 1.8rem;
  }

  .notice-panel h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }

  .notice-panel > div > p:not(.section-kicker) {
    max-width: 850px;
    margin-top: 1rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.85;
  }

  .notice-panel strong { color: var(--text); }
  .notice-panel .notice-footnote { color: var(--art-caption-text) !important; font-size: .78rem !important; }

  .unverified-panel {
    padding: clamp(1.5rem, 4vw, 2.6rem);
    background: var(--surface);
  }

  .unverified-panel h2 {
    margin-top: .9rem;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  }

  .unverified-panel > p {
    max-width: 900px;
    margin-top: 1rem;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.85;
  }

  .compatibility-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 5rem 7rem;
  }

  .compatibility-foot h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
  }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .compatibility-hero-copy > * {
      animation: rise-in 780ms var(--ease-out) both;
    }

    .compatibility-hero-copy h1 { animation-delay: 110ms; }
    .compatibility-hero-copy .compatibility-lead { animation-delay: 190ms; }
    .compatibility-hero-copy .compatibility-hero-meta { animation-delay: 270ms; }
    .compatibility-hero-art img { animation: logo-enter 950ms var(--ease-out) 140ms both, logo-float 7s ease-in-out 1.2s infinite; }
    .compatibility-hero-art .orbit-large { animation: orbit-turn 52s linear infinite; }
    .compatibility-hero-art .orbit-small { animation: orbit-turn 38s linear infinite reverse; }
    .summary-card,
    .environment-card,
    .notice-panel,
    .unverified-panel {
      animation: rise-in 700ms var(--ease-out) both;
    }
    .compatibility-grid .environment-card:nth-child(2) { animation-delay: 80ms; }
    .compatibility-grid .environment-card:nth-child(3) { animation-delay: 160ms; }
    .compatibility-grid .environment-card:nth-child(4) { animation-delay: 240ms; }
  }
}

@media (max-width: 900px) {
  .compatibility-hero {
    min-height: 500px;
    gap: 1rem;
  }
  .compatibility-hero-art { min-height: 350px; }
  .compatibility-hero-art img { width: min(75%, 245px); }
  .orbit-large { width: min(100%, 340px); }
  .compatibility-section-heading { align-items: start; flex-direction: column; gap: 1rem; }
}

@media (max-width: 680px) {
  .compatibility-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: .8rem;
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }
  .compatibility-hero-copy h1 { font-size: clamp(2.85rem, 11vw, 4.1rem); }
  .compatibility-hero-art { min-height: 300px; }
  .compatibility-hero-art img { width: min(64%, 215px); }
  .compatibility-hero-art figcaption { bottom: .35rem; }
  .compatibility-summary { grid-template-columns: 1fr; gap: .7rem; margin-bottom: 1.5rem; }
  .summary-card { min-height: 95px; }
  .compatibility-section { padding-block: 3rem; }
  .compatibility-section-heading { margin-bottom: 1.4rem; }
  .compatibility-grid { grid-template-columns: 1fr; }
  .environment-card,
  .compatibility-grid-limited .environment-card { min-height: auto; }
  .notice-panel { grid-template-columns: 1fr; gap: 1rem; }
  .compatibility-foot { align-items: flex-start; flex-direction: column; padding-block: 3rem 5rem; }
}

/* -------------------------------------------------------------------------- */
/* CONTENU EXPLICATIF ET PARCOURS UTILISATEUR                                 */
/* -------------------------------------------------------------------------- */
@layer layout {
  .plain-intro {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    padding-block: 2.5rem 6.5rem;
    border-top: 1px solid var(--line);
  }

  .plain-intro h2,
  .quick-answer h2 {
    font-size: clamp(2.35rem, 4.4vw, 3.8rem);
  }

  .plain-intro-copy > p:last-child,
  .quick-answer-copy p {
    max-width: 680px;
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.85;
  }

  .independent-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
  }

  .independent-note strong { color: var(--text); font-size: .95rem; }
  .independent-note p { margin-top: .45rem; color: var(--muted); font-size: .84rem; line-height: 1.75; }
  .note-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: rgb(36 149 208 / 13%); color: var(--blue-bright); font-size: 1.3rem; }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.4rem;
  }

  .step-card {
    position: relative;
    min-height: 290px;
    padding: 1.6rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--feature-bg);
  }

  .step-number { color: var(--blue-bright); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
  .step-symbol { display: grid; width: 52px; height: 52px; margin-top: 1.7rem; place-items: center; border: 1px solid rgb(71 176 228 / 25%); border-radius: 16px; background: rgb(36 149 208 / 12%); color: var(--blue-bright); font-size: 1.55rem; }
  .step-symbol-yellow { border-color: rgb(255 200 61 / 24%); background: rgb(255 200 61 / 9%); color: var(--yellow); }
  .step-symbol-green { border-color: rgb(57 188 134 / 24%); background: rgb(57 188 134 / 9%); color: var(--status-supported); }
  .step-card h3 { margin-top: 1.15rem; font-size: 1.35rem; letter-spacing: -.035em; line-height: 1.15; }
  .step-card p { margin-top: .75rem; color: var(--card-copy); font-size: .84rem; line-height: 1.75; }

  .plain-callout {
    display: grid;
    grid-template-columns: minmax(190px, .4fr) 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1.35rem 1.5rem;
    border-left: 3px solid var(--yellow);
    border-radius: 0 16px 16px 0;
    background: var(--secondary-bg);
  }
  .plain-callout strong { font-size: .9rem; }
  .plain-callout p { color: var(--muted); font-size: .84rem; line-height: 1.75; }
  .small-muted { color: var(--art-caption-text) !important; font-size: .78rem !important; }

  .feature-grid-explained .feature-card { min-height: 400px; }
  .card-footnote { position: relative; z-index: 1; display: block; margin-top: 1.3rem; color: var(--blue-bright); font-size: .68rem; font-weight: 750; letter-spacing: .04em; }
  .feature-extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
  .feature-extra { display: flex; align-items: flex-start; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
  .extra-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: var(--secondary-bg); color: var(--blue-bright); font-size: 1.3rem; }
  .feature-extra h3 { font-size: 1.05rem; letter-spacing: -.025em; }
  .feature-extra p { margin-top: .4rem; color: var(--muted); font-size: .82rem; line-height: 1.7; }

  .clients-section { background: var(--features-bg); }
  .clients-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); }
  .clients-layout h2 { font-size: clamp(2.35rem, 4.4vw, 3.8rem); }
  .clients-intro { margin-top: 1.3rem; max-width: 500px; }
  .client-list { display: grid; gap: .7rem; }
  .client-row { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
  .client-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--secondary-bg); color: var(--blue-bright); font-size: .75rem; font-weight: 800; }
  .client-row h3 { font-size: 1rem; letter-spacing: -.02em; }
  .client-row p { margin-top: .3rem; color: var(--muted); font-size: .81rem; line-height: 1.65; }
  .client-status { display: inline-block; margin-top: .55rem; font-size: .67rem; font-weight: 750; }
  .status-supported-text { color: var(--status-supported); }
  .status-limited-text { color: var(--status-limited); }

  .limits-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
  .limits-panel > p { color: var(--muted); font-size: .9rem; line-height: 1.75; }
  .limits-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 2rem; padding-left: 1.2rem; margin: 1.3rem 0; color: var(--text); font-size: .86rem; }
  .limits-list li::marker { color: var(--yellow); }

  .privacy-section { background: var(--features-bg); }
  .privacy-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
  .privacy-panel h2 { font-size: clamp(2.3rem, 4.3vw, 3.8rem); }
  .privacy-copy p { color: var(--muted); font-size: .9rem; line-height: 1.85; }
  .privacy-copy p + p { margin-top: 1rem; }
  .privacy-copy .text-link { display: inline-flex; gap: .5rem; margin-top: 1.2rem; color: var(--blue-bright); font-size: .84rem; font-weight: 750; }

  .faq-list { display: grid; gap: .7rem; max-width: 920px; margin: 2rem auto 0; }
  .faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .faq-item summary { position: relative; padding: 1.2rem 3.2rem 1.2rem 1.3rem; color: var(--text); cursor: pointer; font-size: .92rem; font-weight: 750; list-style: none; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { position: absolute; top: 50%; right: 1.3rem; width: 1.15rem; height: 1.15rem; background: var(--blue-bright); content: ""; transform: translateY(-50%); transition: transform 220ms var(--ease-out); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
  .faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
  .faq-item p { padding: 0 1.3rem 1.3rem; color: var(--muted); font-size: .85rem; line-height: 1.8; }
  .faq-item a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--footer-copy); font-size: .75rem; }
  .footer-links a:hover { color: var(--blue-bright); }
}

@layer components {
  .quick-answer { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); padding: 2rem; border: 1px solid var(--line); border-radius: 24px; background: var(--compat-bg); }
  .quick-answer .section-kicker { margin-bottom: .9rem; }
  .quick-answer-copy strong { color: var(--text); }
  .quick-answer-copy p:first-child { margin-top: 0; }
  .choose-session { padding-block: 5rem 2rem; }
  .choose-heading { max-width: 730px; }
  .choose-heading h2 { font-size: clamp(2rem, 4vw, 3rem); }
  .choose-heading > p:last-child { margin-top: .8rem; color: var(--muted); font-size: .9rem; line-height: 1.75; }
  .session-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.5rem; }
  .session-choices a { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: transform 180ms var(--ease-out), border-color 180ms ease; }
  .session-choices a:hover { transform: translateY(-3px); border-color: rgb(74 177 230 / 45%); }
  .choice-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: rgb(36 149 208 / 12%); color: var(--blue-bright); font-size: 1.35rem; }
  .session-choices strong, .session-choices small { display: block; }
  .session-choices strong { font-size: .88rem; }
  .session-choices small { margin-top: .18rem; color: var(--muted); font-size: .7rem; line-height: 1.45; }
  .choice-arrow { color: var(--blue-bright); font-size: 1.1rem; }
  .session-help { margin-top: 1rem; border-bottom: 1px solid var(--line); }
  .session-help summary, .technical-details summary { padding: .8rem 0; color: var(--blue-bright); cursor: pointer; font-size: .82rem; font-weight: 750; }
  .session-help p, .technical-details p { margin: .35rem 0 .75rem; color: var(--muted); font-size: .81rem; line-height: 1.75; }
  .session-help pre, .technical-details pre { overflow-x: auto; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--secondary-bg); color: var(--text); font-size: .78rem; }
  .session-help code, .technical-details code { overflow-wrap: anywhere; padding: .12rem .3rem; border-radius: 4px; background: var(--secondary-bg); color: var(--link-text); font-size: .9em; }
  .status-explainer { padding-block: 3rem 2rem; }
  .status-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .status-guide-card { padding: 1.3rem; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
  .status-guide-card h3 { margin-top: .9rem; font-size: 1.1rem; letter-spacing: -.025em; }
  .status-guide-card p { margin-top: .45rem; color: var(--muted); font-size: .79rem; line-height: 1.7; }
  .status-footnote { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--secondary-bg); color: var(--muted); font-size: .79rem; line-height: 1.7; }
  .status-footnote strong { color: var(--text); }
  .environment-card-wide { min-height: 0; }
  .environment-card-wide h3 { max-width: 850px; }
  .environment-card .technical-details { position: relative; z-index: 1; margin-top: 1rem; padding-top: .3rem; border-top: 1px solid var(--line); }
  .environment-card .technical-details p { margin-top: .2rem; color: var(--muted); font-size: .78rem; line-height: 1.75; }
  .environment-card .technical-details pre { margin-top: .7rem; }
  .discord-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .discord-check { display: flex; align-items: flex-start; gap: .9rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
  .check-index { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: rgb(36 149 208 / 12%); color: var(--blue-bright); font-size: .78rem; font-weight: 800; }
  .discord-check h3 { font-size: 1rem; letter-spacing: -.02em; }
  .discord-check p { margin-top: .4rem; color: var(--muted); font-size: .79rem; line-height: 1.7; }
  .foot-copy { max-width: 580px; margin-top: .75rem; color: var(--muted); font-size: .86rem; line-height: 1.7; }
  .glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  .glossary-grid article { padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .glossary-grid h3 { font-size: 1rem; letter-spacing: -.02em; }
  .glossary-grid p { margin-top: .45rem; color: var(--muted); font-size: .79rem; line-height: 1.7; }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    .step-card, .feature-extra, .client-row, .faq-item, .status-guide-card, .glossary-grid article {
      animation: rise-in 650ms var(--ease-out) both;
    }
    .steps-grid .step-card:nth-child(2), .session-choices a:nth-child(2), .status-guide-card:nth-child(2) { animation-delay: 90ms; }
    .steps-grid .step-card:nth-child(3), .session-choices a:nth-child(3), .status-guide-card:nth-child(3) { animation-delay: 180ms; }
  }
}

@media (max-width: 900px) {
  .plain-intro, .clients-layout, .privacy-panel { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-card:last-child { grid-column: 1 / -1; }
  .quick-answer { grid-template-columns: 1fr; gap: 1rem; }
  .session-choices { grid-template-columns: 1fr; }
  .limits-list { grid-template-columns: 1fr; }
  .discord-check-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .plain-intro { padding-block: 1.5rem 4rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card:last-child { grid-column: auto; }
  .step-card { min-height: 0; }
  .plain-callout { grid-template-columns: 1fr; gap: .45rem; }
  .feature-grid-explained .feature-card { min-height: 0; }
  .feature-extra-grid { grid-template-columns: 1fr; }
  .quick-answer { padding: 1.3rem; border-radius: 18px; }
  .choose-session { padding-block: 3.5rem 1.5rem; }
  .status-guide-grid { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .compatibility-section { padding-block: 2.5rem; }
  .footer-links { gap: .8rem; }
}



@media (min-width: 901px) {
  .compatibility-hero-copy h1 { font-size: clamp(3rem, 4.8vw, 4.2rem); }
}

@media (max-width: 680px) {
  .compatibility-hero-copy h1 {
    font-size: clamp(1.8rem, 9vw, 3.35rem);
  }
}

/* Icônes vectorielles (SVG en ligne) — suivent la couleur du texte et la taille de police */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.14em;
  overflow: visible;
}

.button .icon,
.text-link .icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -.2em;
  transition: transform 200ms ease;
}

.button:hover .icon,
.text-link:hover .icon {
  transform: translateX(3px);
}

.text-link:hover .icon { transform: translate(2px, -2px); }

.theme-switch label .icon { width: 1.15em; height: 1.15em; }

.meta-symbol .icon { width: 1.2em; height: 1.2em; }

.choice-arrow .icon { width: 1.1em; height: 1.1em; }

.footer-links .icon { width: 1em; height: 1em; }

.feature-icon .icon,
.step-symbol .icon,
.extra-icon .icon,
.choice-icon .icon,
.notice-icon .icon,
.note-icon .icon { vertical-align: 0; }

.feature-icon .icon { stroke-width: 1.6; }

.session-choices a:hover .choice-arrow .icon { transform: translateY(2px); }
.choice-arrow .icon { transition: transform 200ms ease; }

@media (prefers-reduced-motion: reduce) {
  .button:hover .icon,
  .text-link:hover .icon,
  .session-choices a:hover .choice-arrow .icon { transform: none; }
}

.step-symbol .icon { width: 1.25em; height: 1.25em; }
.feature-icon .icon { width: 1.15em; height: 1.15em; }
.extra-icon .icon,
.choice-icon .icon { width: 1.1em; height: 1.1em; }

.decoration-cross .icon-deco { width: 13rem; height: 13rem; stroke-width: 1; }

/* Contraste des icônes de fonctionnalités en thème clair */
:root:has(#theme-light:checked) .feature-icon { border-color: rgb(20 73 102 / 14%); }
:root:has(#theme-light:checked) .icon-blue { background: rgb(22 126 173 / 12%); color: #116f9f; }
:root:has(#theme-light:checked) .icon-yellow { background: rgb(152 102 0 / 11%); color: #8a5c00; }
:root:has(#theme-light:checked) .icon-cyan { background: rgb(15 128 140 / 11%); color: #0c7480; }
:root:has(#theme-light:checked) .step-symbol-green { color: #0f754f; }

/* ===== Questionnaire de compatibilité (sans JavaScript) ===== */
.quiz:has(#q1-wayland:checked) .quiz-q-wayland { display: block; }
.quiz:has(#q1-x11:checked) .quiz-q-x11 { display: block; }
.quiz:has(#q1-unknown:checked) .quiz-q-unknown { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked) .det-gnome { display: block; }
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked) .det-kde { display: block; }
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked) .det-wayfire { display: block; }
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked) .det-wlroots { display: block; }
.quiz:has(#q1-wayland:checked):has(#q2w-cosmic:checked) .det-cosmic { display: block; }
.quiz:has(#q1-wayland:checked):has(#q2w-other:checked) .det-other { display: block; }
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked) .det-x11yes { display: block; }
.quiz:has(#q1-x11:checked):has(#q2x-no:checked) .det-x11no { display: block; }
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked) .det-x11unk { display: block; }
.quiz:has(#q1-unknown:checked) .det-unknown { display: block; }
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked) .det-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked) .det-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked) .det-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked) .det-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-cosmic:checked) .det-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-other:checked) .det-wait,
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked) .det-wait,
.quiz:has(#q1-x11:checked):has(#q2x-no:checked) .det-wait,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked) .det-wait,
.quiz:has(#q1-unknown:checked) .det-wait { display: none; }
.quiz:has(#q3-desktop:checked) .dis-desktop { display: block; }
.quiz:has(#q3-vesktop:checked) .dis-vesktop { display: block; }
.quiz:has(#q3-flatpak:checked) .dis-flatpak { display: block; }
.quiz:has(#q3-web:checked) .dis-web { display: block; }
.quiz:has(#q3-desktop:checked) .dis-wait,
.quiz:has(#q3-vesktop:checked) .dis-wait,
.quiz:has(#q3-flatpak:checked) .dis-wait,
.quiz:has(#q3-web:checked) .dis-wait { display: none; }
.quiz:has(#q4-gnome:checked) .tray-gnome { display: block; }
.quiz:has(#q4-budgie:checked) .tray-budgie { display: block; }
.quiz:has(#q4-other:checked) .tray-other { display: block; }
.quiz:has(#q4-none:checked) .tray-none { display: block; }
.quiz:has(#q4-gnome:checked) .tray-wait,
.quiz:has(#q4-budgie:checked) .tray-wait,
.quiz:has(#q4-other:checked) .tray-wait,
.quiz:has(#q4-none:checked) .tray-wait { display: none; }
.quiz:has(#q1-unknown:checked) .t-unknown { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked) .t-gnome { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked) .t-kde { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked) .t-wayfire { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked) .t-wlroots { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-cosmic:checked) .t-cosmic { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-other:checked) .t-other { display: flex; }
.quiz:has(#q1-x11:checked):has(#q2x-no:checked) .t-xprop,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked) .t-xprop { display: flex; }
.quiz:has(#q3-desktop:checked) .t-d-desktop { display: flex; }
.quiz:has(#q3-vesktop:checked) .t-d-vesktop { display: flex; }
.quiz:has(#q3-flatpak:checked) .t-d-flatpak { display: flex; }
.quiz:has(#q3-web:checked) .t-d-web { display: flex; }
.quiz:has(input[name="q3"]:checked) .t-share { display: flex; }
.quiz:has(#q5-yes:checked) .t-a-yes { display: flex; }
.quiz:has(#q5-no:checked) .t-a-no { display: flex; }
.quiz:has(#q5-unknown:checked) .t-a-unk { display: flex; }
.quiz:has(#q4-gnome:checked) .t-y-gnome { display: flex; }
.quiz:has(#q4-budgie:checked) .t-y-budgie { display: flex; }
.quiz:has(#q4-other:checked) .t-y-other { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked):has(#q3-desktop:checked) .v-a,
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked):has(#q3-vesktop:checked) .v-a,
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked):has(#q3-desktop:checked) .v-a,
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked):has(#q3-vesktop:checked) .v-a { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked):has(#q3-flatpak:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked):has(#q3-web:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked):has(#q3-flatpak:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked):has(#q3-web:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked):has(#q3-desktop:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked):has(#q3-vesktop:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked):has(#q3-desktop:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked):has(#q3-vesktop:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked):has(#q3-desktop:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked):has(#q3-vesktop:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-no:checked):has(#q3-desktop:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-no:checked):has(#q3-vesktop:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked):has(#q3-desktop:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked):has(#q3-vesktop:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked):has(#q3-flatpak:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked):has(#q3-web:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked):has(#q3-flatpak:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked):has(#q3-web:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked):has(#q3-flatpak:checked) .v-b,
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked):has(#q3-web:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-no:checked):has(#q3-flatpak:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-no:checked):has(#q3-web:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked):has(#q3-flatpak:checked) .v-b,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked):has(#q3-web:checked) .v-b { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-cosmic:checked) .v-c,
.quiz:has(#q1-wayland:checked):has(#q2w-other:checked) .v-c { display: flex; }
.quiz:has(#q1-unknown:checked) .v-d { display: flex; }
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked):has(#q3-desktop:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked):has(#q3-vesktop:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked):has(#q3-desktop:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked):has(#q3-vesktop:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked):has(#q3-flatpak:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-wlroots:checked):has(#q3-web:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked):has(#q3-flatpak:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-yes:checked):has(#q3-web:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked):has(#q3-desktop:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked):has(#q3-vesktop:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked):has(#q3-desktop:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked):has(#q3-vesktop:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked):has(#q3-desktop:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked):has(#q3-vesktop:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-no:checked):has(#q3-desktop:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-no:checked):has(#q3-vesktop:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked):has(#q3-desktop:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked):has(#q3-vesktop:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked):has(#q3-flatpak:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-gnome:checked):has(#q3-web:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked):has(#q3-flatpak:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-kde:checked):has(#q3-web:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked):has(#q3-flatpak:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-wayfire:checked):has(#q3-web:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-no:checked):has(#q3-flatpak:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-no:checked):has(#q3-web:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked):has(#q3-flatpak:checked) .v-wait,
.quiz:has(#q1-x11:checked):has(#q2x-unknown:checked):has(#q3-web:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-cosmic:checked) .v-wait,
.quiz:has(#q1-wayland:checked):has(#q2w-other:checked) .v-wait,
.quiz:has(#q1-unknown:checked) .v-wait { display: none; }

.quiz-section { padding-block: 3rem 2rem; }
.quiz { margin-top: 2rem; display: grid; gap: 1.4rem; }
.quiz-questions { display: grid; gap: 1rem; }
.quiz-q { min-width: 0; margin: 0; padding: 1.3rem; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.quiz-q legend { display: flex; align-items: center; gap: .7rem; padding: 0 .4rem; color: var(--text); font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
.quiz-num { display: inline-grid; width: 1.7rem; height: 1.7rem; place-items: center; border-radius: 50%; background: rgb(36 149 208 / 15%); color: var(--blue-bright); font-size: .8rem; font-weight: 800; }
.quiz-q code, .quiz-todo code, .qres code { padding: .08em .35em; border-radius: 6px; background: var(--secondary-bg); font-size: .92em; }
.quiz-q-wayland, .quiz-q-x11 { display: none; }
.quiz-hint { display: none; align-items: flex-start; gap: .7rem; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.quiz-hint .icon { width: 1.2rem; height: 1.2rem; margin-top: .15rem; color: var(--blue-bright); }
.quiz-help { margin-top: .6rem; border-bottom: 0; }

.quiz-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin-top: 1rem; }
.qchoice { position: relative; min-width: 0; }
.qchoice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qchoice label { display: flex; height: 100%; align-items: center; gap: .8rem; padding: .95rem 2.6rem .95rem 1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--secondary-bg); transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; position: relative; }
.qchoice label::after { position: absolute; top: 50%; right: 1rem; width: 1.15rem; height: 1.15rem; border: 1.5px solid var(--muted); border-radius: 50%; content: ""; transform: translateY(-50%); transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.qchoice:hover label { border-color: rgb(74 177 230 / 45%); transform: translateY(-2px); }
.qchoice input:checked + label { border-color: var(--blue-bright); background: rgb(36 149 208 / 12%); box-shadow: 0 0 0 1px var(--blue-bright) inset; }
.qchoice input:checked + label::after { border-color: var(--blue-bright); background: radial-gradient(circle, var(--blue-bright) 0 40%, transparent 46%); }
.qchoice input:focus-visible + label { outline: 2px solid var(--yellow); outline-offset: 3px; }
.qtext strong, .qtext small { display: block; }
.qtext strong { color: var(--text); font-size: .88rem; }
.qtext small { margin-top: .2rem; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.qicon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: rgb(36 149 208 / 12%); color: var(--blue-bright); font-size: 1.35rem; }
.qicon .icon { width: 1.1em; height: 1.1em; vertical-align: 0; }

.quiz-results { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 23px; background: var(--surface-raised); }
.qverdict { display: none; align-items: flex-start; gap: 1.1rem; padding: 1.3rem; border: 1px solid currentColor; border-radius: 18px; }
.qverdict h3 { color: var(--text); font-size: 1.35rem; letter-spacing: -.03em; }
.qverdict p { margin-top: .5rem; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.verdict-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: color-mix(in srgb, currentColor 16%, transparent); font-size: 1.6rem; }
.verdict-icon .icon { vertical-align: 0; }
.verdict-ok { color: var(--status-supported); background: color-mix(in srgb, var(--status-supported) 8%, transparent); }
.verdict-setup, .verdict-limited { color: var(--status-limited); background: color-mix(in srgb, var(--status-limited) 8%, transparent); }
.verdict-unknown, .verdict-wait { color: var(--blue-bright); background: color-mix(in srgb, var(--blue-bright) 7%, transparent); }
.v-wait { display: flex; }

.qres-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.qres-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.qres-label { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .1em; }
.qres { display: none; margin-top: .9rem; }
.qres h4 { margin-top: .8rem; color: var(--text); font-size: 1rem; letter-spacing: -.02em; }
.qres p { margin-top: .45rem; color: var(--muted); font-size: .79rem; line-height: 1.7; }
.qres-wait { display: block; margin-top: .9rem; }
.qres-wait h4 { margin-top: 0; color: var(--muted); }

.quiz-todo-title { margin-top: .6rem; color: var(--text); font-size: 1.15rem; letter-spacing: -.025em; }
.quiz-todo { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.todo { display: none; align-items: flex-start; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.t-privacy { display: flex; }
.todo strong { color: var(--text); font-size: .9rem; }
.todo p { margin-top: .3rem; color: var(--muted); font-size: .79rem; line-height: 1.7; }
.todo a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.todo-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 11px; font-size: 1.1rem; }
.todo-icon .icon { vertical-align: 0; }
.todo-ok .todo-icon { background: color-mix(in srgb, var(--status-supported) 15%, transparent); color: var(--status-supported); }
.todo-warn .todo-icon { background: color-mix(in srgb, var(--status-limited) 15%, transparent); color: var(--status-limited); }
.todo-info .todo-icon { background: rgb(36 149 208 / 13%); color: var(--blue-bright); }

.quiz-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.quiz-actions .button { cursor: pointer; font-family: inherit; }
.quiz-disclaimer { padding: 1rem 1.2rem; border-radius: 12px; background: var(--secondary-bg); color: var(--muted); font-size: .79rem; line-height: 1.7; }
.quiz-disclaimer strong { color: var(--text); }

@media (max-width: 900px) {
  .qres-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .quiz-q { padding: 1rem; }
  .quiz-choices { grid-template-columns: 1fr; }
  .quiz-results { padding: 1rem; }
  .qverdict { flex-direction: column; }
  .quiz-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .qchoice:hover label { transform: none; }
}


@media (min-width: 901px) {
  .quiz-q-wayland .quiz-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* =============================================================
   v4.2 — Multilingue : sélecteur de langue (en-tête + pied de
   page) et page de choix de langue à la racine. HTML & CSS only.
   ============================================================= */
@layer components {
  .lang-switch {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .2rem;
    padding: .22rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
  }

  .lang-switch a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 .58rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .06em;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
  }

  .lang-switch a:hover { color: var(--blue-bright); }

  .lang-switch a[aria-current="page"] {
    border-color: var(--line);
    background: var(--surface-raised);
    color: var(--text);
  }

  .lang-switch a:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
  }

  .footer-langs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.1rem;
    align-items: baseline;
    color: var(--footer-copy);
    font-size: .75rem;
  }

  .footer-langs a {
    color: var(--footer-copy);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .footer-langs a:hover { color: var(--blue-bright); }

  .footer-langs a[aria-current="page"] {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
  }

  .lang-chooser {
    min-height: 100svh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2.4rem;
    padding: 4rem 1.5rem;
  }

  .lang-chooser-head {
    display: grid;
    justify-items: center;
    gap: 1.1rem;
    text-align: center;
  }

  .lang-chooser-head img {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgb(0 0 0 / 38%);
  }

  .lang-chooser .lc-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--eyebrow-text);
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .22em;
  }

  .lang-chooser .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 12px rgb(255 200 61 / 55%);
  }

  .lang-chooser h1 {
    font-size: clamp(2rem, 5.5vw, 2.8rem);
    letter-spacing: -.045em;
  }

  .lang-chooser .lc-sub {
    max-width: 48ch;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.75;
  }

  .lang-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: min(100%, 780px);
  }

  .lang-card {
    display: grid;
    gap: .55rem;
    align-content: start;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  .lang-card:hover {
    transform: translateY(-3px);
    border-color: rgb(86 186 255 / 45%);
    background: var(--surface-raised);
    box-shadow: 0 18px 44px rgb(0 0 0 / 30%);
  }

  .lang-card:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 3px;
  }

  .lang-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .lang-code {
    padding: .28rem .6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-raised);
    color: var(--eyebrow-text);
    font-size: .62rem;
    font-weight: 780;
    letter-spacing: .1em;
  }

  .lang-arrow { color: var(--muted); transition: color 180ms ease, transform 180ms ease; }
  .lang-arrow .icon { width: 18px; height: 18px; }

  .lang-card:hover .lang-arrow {
    color: var(--blue-bright);
    transform: translateX(4px);
  }

  .lang-name {
    color: var(--text);
    font-size: 1.28rem;
    font-weight: 780;
    letter-spacing: -.02em;
  }

  .lang-tag {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.65;
  }

  .lang-chooser .lc-note {
    color: var(--footer-note);
    font-size: .6rem;
    font-weight: 650;
    letter-spacing: .18em;
  }

  @media (max-width: 700px) {
    .lang-grid { grid-template-columns: 1fr; }
    .lang-switch { display: none; }
  }
}


/* ===== Lien du projet GitLab ===== */
/* Variante d'icône pleine : logos de marque (le tanuki GitLab est une forme pleine, sans contour) */
.icon-fill {
  fill: currentColor;
  stroke: none;
}

/* Pastille GitLab de la navigation : espacement et taille d'icône resserrés */
.nav-cta {
  gap: .55rem;
}

.nav-cta .icon {
  width: 1.1em;
  height: 1.1em;
}

/* Pastille GitLab de la page de choix de langue */
.lc-gitlab {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--secondary-bg);
  color: var(--secondary-text);
  font-size: .82rem;
  font-weight: 700;
  transition: transform 200ms var(--ease-out), background 200ms ease, border-color 200ms ease;
}

.lc-gitlab:hover {
  transform: translateY(-2px);
  border-color: rgb(107 193 241 / 48%);
  background: rgb(34 113 160 / 20%);
  color: var(--blue-bright);
}


/* Badge sécurité du hero — vert du statut « Pris en charge », adaptatif sombre/clair */
.meta-symbol-green { color: var(--status-supported); }
