/* ================================================================
   Lanceur de navigation (05/12/2026)
   Icône « carré à 4 points » de l'en-tête (ordinateur, > 1140 px) qui ouvre une grande fenêtre
   reprenant les menus Formations, IA & Entreprises et 2IIA. Balisage : templates/launcher.php.
   Dans la couche iia-header avec !important : le site neutralise box-shadow et colore les boutons
   de la barre avec des règles !important. Pas de bordure de 1 px : aplats et ombres uniquement.
   ================================================================ */
@layer iia-header {

  /* ---------- Bouton de l'en-tête ---------- */
  /* Carré arrondi sans texte : aplat clair translucide, sans ombre, icône carré arrondi à 4 points corail.
     --apl-shift (templates/launcher.php) l'aligne sur le centre vertical du logo. */
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-slot {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    margin: 0 0 0 clamp(14px, 1.6vw, 28px) !important;
    padding: 0 !important;
    list-style: none !important;
  }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn {
    all: unset;
    position: relative !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 !important;
    border-radius: 15px !important;
    translate: 0 var(--apl-shift, 0px) !important;
    background: rgba(255, 255, 255, .1) !important;
    box-shadow: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: background-color .25s ease, color .25s ease, box-shadow .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1) !important;
  }
  /* Reflet lumineux qui balaie la pastille toutes les 6 s. */
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%) !important;
    transform: translateX(-120%) !important;
    animation: aplSheen 6s ease-in-out 1.5s infinite !important;
  }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn:hover {
    transform: translateY(-1px) !important;
    background: rgba(255, 255, 255, .17) !important;
    box-shadow: none !important;
  }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn:active { transform: scale(.96) !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn:focus-visible {
    outline: 2px solid #ff9389 !important;
    outline-offset: 3px !important;
  }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn[aria-expanded="true"] {
    background: #fff !important;
    box-shadow: none !important;
    color: #070a1c !important;
    -webkit-text-fill-color: #070a1c !important;
  }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn[aria-expanded="true"]::after { animation: none !important; opacity: 0 !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn svg.apl-ico {
    position: relative !important;
    display: block !important;
    flex: 0 0 auto !important;
    width: 24px !important;
    height: 24px !important;
    overflow: visible !important;
    fill: none !important;
    stroke: none !important;
    color: inherit !important;
    transition: transform .45s cubic-bezier(.2, .8, .2, 1) !important;
  }
  /* Couleurs posées sur chaque forme : une ancienne règle (.arbree-nav svg circle) leur imposait du bleu foncé. */
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn .apl-ico__frame {
    fill: rgba(255, 255, 255, .08) !important;
    stroke: #fff !important;
    stroke-width: 1.6px !important;
    color: #fff !important;
    opacity: .9 !important;
  }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn .apl-ico__dot {
    stroke: none !important;
    transform-box: fill-box !important;
    transform-origin: center !important;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1) !important;
    animation: aplDot 4s ease-in-out infinite !important;
  }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn .apl-ico__dot--1 { fill: #ed5f54 !important; color: #ed5f54 !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn .apl-ico__dot--2 { fill: #ed5f54 !important; color: #ed5f54 !important; animation-delay: .25s !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn .apl-ico__dot--3 { fill: #ed5f54 !important; color: #ed5f54 !important; animation-delay: .75s !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn .apl-ico__dot--4 { fill: #ed5f54 !important; color: #ed5f54 !important; animation-delay: .5s !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn[aria-expanded="true"] .apl-ico__frame { stroke: #070a1c !important; fill: rgba(7, 10, 28, .06) !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn[aria-expanded="true"] .apl-ico__dot { fill: #ed5f54 !important; }
  /* Survol : les 4 points s'écartent. Ouvert : le carré pivote en losange. */
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn:hover .apl-ico__dot { animation: none !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn:hover .apl-ico__dot--1 { transform: translate(-1.2px, -1.2px) scale(1.15) !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn:hover .apl-ico__dot--2 { transform: translate(1.2px, -1.2px) scale(1.15) !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn:hover .apl-ico__dot--3 { transform: translate(-1.2px, 1.2px) scale(1.15) !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn:hover .apl-ico__dot--4 { transform: translate(1.2px, 1.2px) scale(1.15) !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn[aria-expanded="true"] svg.apl-ico { transform: rotate(45deg) scale(.92) !important; }
  html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-btn[aria-expanded="true"] .apl-ico__dot { animation: none !important; }

  @keyframes aplSheen {
    0%, 70% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
  }
  @keyframes aplDot {
    0%, 80%, 100% { opacity: 1; }
    90% { opacity: .35; }
  }

  @media (max-width: 1140px) {
    html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_) .apl-slot { display: none !important; }
    html body :is(#apl, #apl-m):is(#apl, #apl-m) { display: none !important; }
  }

  /* ---------- Fenêtre ---------- */
  html body :is(#apl, #apl-m):is(#apl, #apl-m) {
    --apl-bg: #070a1c;
    --apl-raise: rgba(255, 255, 255, .045);
    --apl-hover: rgba(255, 255, 255, .08);
    --apl-ink: #eef0f7;
    --apl-muted: #8a8fa8;
    --apl-dim: #5d6280;
    --apl-coral: #ed5f54; /* corail du site (plus franc que #ff7a6b) */
    --apl-violet: #8c6cf0;
    --apl-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: block !important;
    font-family: "Inter", system-ui, sans-serif !important;
    color: var(--apl-ink) !important;
    -webkit-font-smoothing: antialiased;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m)[hidden] { display: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) *,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) *::before,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) *::after { box-sizing: border-box !important; }

  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__scrim {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(2, 3, 10, .88) !important; /* fond très assombri, sans flou */
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important; /* pas de flou derrière la fenêtre */
    opacity: 0 !important;
    transition: opacity .25s ease !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m).is-open .apl__scrim { opacity: 1 !important; }

  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win {
    position: absolute !important;
    top: clamp(16px, 4vh, 40px) !important;
    left: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    width: min(1240px, calc(100vw - 48px)) !important;
    height: min(820px, calc(100vh - 2 * clamp(16px, 4vh, 40px))) !important;
    overflow: hidden !important;
    border-radius: 26px !important;
    background:
      radial-gradient(ellipse 60% 50% at 0% 0%, rgba(140, 108, 240, .16), transparent 70%),
      radial-gradient(ellipse 45% 40% at 100% 100%, rgba(237, 95, 84, .09), transparent 70%),
      var(--apl-bg) !important;
    box-shadow: 0 50px 140px -20px rgba(0, 0, 0, .75), 0 20px 40px -20px rgba(0, 0, 0, .6) !important;
    opacity: 0 !important;
    transform: translate(-50%, -14px) scale(.985) !important;
    transition: opacity .25s ease, transform .4s cubic-bezier(.2, .8, .2, 1) !important;
  }
  /* Trame de points discrète en fond, estompée vers le bas. */
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .09) 1.1px, transparent 1.6px) !important;
    background-size: 28px 28px !important;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000, transparent 75%) !important;
    mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000, transparent 75%) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m).is-open .apl__win {
    opacity: 1 !important;
    transform: translate(-50%, 0) scale(1) !important;
  }

  /* Barre du haut */
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__top {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px 16px 28px !important;
    background: rgba(255, 255, 255, .025) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
    max-width: none !important;
    font: 500 11px/1 var(--apl-mono) !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    color: var(--apl-muted) !important;
    white-space: nowrap !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__brand-sep { color: var(--apl-dim) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__pulse {
    position: relative !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: var(--apl-coral) !important;
    box-shadow: 0 0 12px rgba(237, 95, 84, .8) !important;
    animation: aplPulse 2.4s ease-in-out infinite !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: min(380px, 36vw) !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    background: var(--apl-raise) !important;
    color: var(--apl-muted) !important;
    cursor: text !important;
    transition: background-color .2s ease !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter:focus-within { background: var(--apl-hover) !important; color: var(--apl-ink) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter svg { flex: 0 0 auto !important; stroke: currentColor !important; fill: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter input {
    all: unset;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 100% !important;
    font: 400 14px/1 "Inter", system-ui, sans-serif !important;
    color: var(--apl-ink) !important;
    -webkit-text-fill-color: var(--apl-ink) !important;
    caret-color: var(--apl-coral) !important;
    animation: none !important;
  }
  /* Pas de cadre corail au clic (règle générale input:focus de style.css). */
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter input,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter input:focus,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter input:focus-visible {
    outline: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__top { z-index: 5 !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter { width: min(460px, 40vw) !important; }

  /* Cases à cocher « Vous êtes » / « Vous cherchez » (en haut du contenu) */
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facets {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin: 0 0 30px !important;
    padding: 18px 20px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .035) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-group {
    display: grid !important;
    grid-template-columns: 130px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px 16px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-legend {
    float: left !important; /* une légende flottante se place dans la grille comme un enfant ordinaire */
    margin: 0 !important;
    padding: 11px 0 0 !important;
    font: 500 11px/1.3 var(--apl-mono) !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    color: var(--apl-coral) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-list { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 15px 0 11px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .06) !important;
    font: 500 13.5px/1 "Inter", system-ui, sans-serif !important;
    color: #c9cce0 !important;
    -webkit-text-fill-color: #c9cce0 !important;
    cursor: pointer !important;
    user-select: none !important;
    white-space: nowrap !important;
    transition: background-color .18s ease, color .18s ease !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet:hover { background: rgba(255, 255, 255, .1) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet input {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    pointer-events: none !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-box {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .14) !important;
    color: transparent !important;
    transition: background-color .18s ease, transform .2s cubic-bezier(.2, .8, .2, 1) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-box svg { stroke: currentColor !important; fill: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-txt { color: inherit !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet.is-on {
    background: rgba(237, 95, 84, .2) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet.is-on .apl__facet-box {
    background: var(--apl-coral) !important;
    color: #fff !important;
    transform: scale(1.06) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet:has(input:focus-visible) { outline: 2px solid var(--apl-coral) !important; outline-offset: 2px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-status {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding-left: 146px !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-status[hidden] { display: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-count {
    font: 500 12px/1 var(--apl-mono) !important;
    letter-spacing: .08em !important;
    color: var(--apl-ink) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-reset {
    all: unset;
    padding: 7px 12px !important;
    border-radius: 8px !important;
    font: 500 12.5px/1 "Inter", system-ui, sans-serif !important;
    color: var(--apl-muted) !important;
    -webkit-text-fill-color: var(--apl-muted) !important;
    cursor: pointer !important;
    transition: background-color .15s ease, color .15s ease !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-reset:hover { background: rgba(255, 255, 255, .07) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-reset:focus-visible { outline: 2px solid var(--apl-coral) !important; }
  html.contraste-eleve body :is(#apl, #apl-m):is(#apl, #apl-m) :is(.apl__facet, .apl__facet-legend, .apl__facet-count) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html.contraste-eleve body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet.is-on { background: #fff !important; color: #000 !important; -webkit-text-fill-color: #000 !important; }

  /* Suggestions sous le champ */
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__suggest {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    padding: 8px !important;
    border-radius: 16px !important;
    background: #10142b !important;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8) !important;
    max-height: min(440px, 60vh) !important;
    overflow-y: auto !important;
    animation: aplPane .22s cubic-bezier(.2, .8, .2, 1) both !important;
    cursor: default !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__suggest[hidden] { display: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__suggest-head {
    margin: 4px 10px 8px !important;
    padding: 0 !important;
    max-width: none !important;
    font: 500 10.5px/1 var(--apl-mono) !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    color: var(--apl-dim) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__suggest-list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__suggest-list li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__suggest-list li::before { content: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__opt {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "label arrow" "where arrow" !important;
    align-items: center !important;
    gap: 3px 12px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: var(--apl-ink) !important;
    -webkit-text-fill-color: var(--apl-ink) !important;
    transition: background-color .15s ease !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__opt-label { grid-area: label !important; font: 500 14.5px/1.3 "Inter", system-ui, sans-serif !important; color: inherit !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__opt-label mark {
    background: none !important;
    color: var(--apl-coral) !important;
    -webkit-text-fill-color: var(--apl-coral) !important;
    font-weight: 650 !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__opt-where {
    grid-area: where !important;
    font: 400 12px/1.3 "Inter", system-ui, sans-serif !important;
    color: var(--apl-dim) !important;
    -webkit-text-fill-color: var(--apl-dim) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__opt svg {
    grid-area: arrow !important;
    stroke: currentColor !important;
    fill: none !important;
    opacity: 0 !important;
    transform: translateX(-4px) !important;
    transition: opacity .15s ease, transform .2s ease !important;
    color: var(--apl-coral) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__suggest-list li.is-active .apl__opt,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__opt:hover { background: rgba(255, 255, 255, .07) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__suggest-list li.is-active .apl__opt svg,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__opt:hover svg { opacity: 1 !important; transform: none !important; }

  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter input::placeholder { color: var(--apl-dim) !important; -webkit-text-fill-color: var(--apl-dim) !important; opacity: 1 !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter input::-webkit-search-cancel-button { display: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__key {
    padding: 6px 8px !important;
    border-radius: 7px !important;
    background: var(--apl-raise) !important;
    font: 500 10px/1 var(--apl-mono) !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: var(--apl-dim) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__close {
    all: unset;
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    color: var(--apl-muted) !important;
    cursor: pointer !important;
    transition: background-color .2s ease, color .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__close svg { stroke: currentColor !important; fill: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__close:hover { background: var(--apl-hover) !important; color: var(--apl-ink) !important; transform: rotate(90deg) !important; }

  /* Corps : colonne des rubriques + contenu */
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__body {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__rail {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 22px 16px 18px 18px !important;
    background: rgba(255, 255, 255, .018) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab {
    all: unset;
    position: relative !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 16px 16px 16px 14px !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    color: var(--apl-muted) !important;
    opacity: 0 !important;
    transform: translateX(-8px) !important;
    transition: background-color .2s ease, color .2s ease, opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1) !important;
    transition-delay: 0s, 0s, calc(80ms + var(--i) * 50ms), calc(80ms + var(--i) * 50ms) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m).is-open .apl__tab { opacity: 1 !important; transform: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab:hover { background: var(--apl-raise) !important; color: var(--apl-ink) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab[aria-selected="true"] {
    background: rgba(255, 255, 255, .07) !important;
    color: var(--apl-ink) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 3px !important;
    height: 0 !important;
    border-radius: 3px !important;
    background: var(--apl-coral) !important;
    box-shadow: 0 0 14px rgba(237, 95, 84, .9) !important;
    transform: translateY(-50%) !important;
    transition: height .3s cubic-bezier(.2, .8, .2, 1) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab[aria-selected="true"]::before { height: 26px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab:focus-visible { outline: 2px solid var(--apl-coral) !important; outline-offset: 2px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab-num {
    font: 500 11px/1 var(--apl-mono) !important;
    letter-spacing: .08em !important;
    color: var(--apl-dim) !important;
    transition: color .2s ease !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab[aria-selected="true"] .apl__tab-num { color: var(--apl-coral) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab-txt { display: flex !important; flex-direction: column !important; gap: 5px !important; min-width: 0 !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab-title {
    font: 600 17px/1.15 "Inter", system-ui, sans-serif !important;
    letter-spacing: -.01em !important;
    color: inherit !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab-sub {
    font: 400 12.5px/1.35 "Inter", system-ui, sans-serif !important;
    color: var(--apl-dim) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab[aria-selected="true"] .apl__tab-sub { color: var(--apl-muted) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab-count {
    min-width: 30px !important;
    padding: 5px 7px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .05) !important;
    font: 500 10.5px/1 var(--apl-mono) !important;
    text-align: center !important;
    color: var(--apl-dim) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win.is-filtering .apl__tab { opacity: .35 !important; pointer-events: none !important; }

  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__rail-foot {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: auto !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__cta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 18px !important;
    border-radius: 14px !important;
    background: var(--apl-coral) !important;
    font: 600 14px/1 "Inter", system-ui, sans-serif !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
    transition: background-color .2s ease, transform .2s ease !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__cta span { transition: transform .25s cubic-bezier(.2, .8, .2, 1) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__cta:hover { background: #f4483c !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__cta:hover span { transform: translateX(4px) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__cta--ghost {
    background: var(--apl-raise) !important;
    color: var(--apl-ink) !important;
    -webkit-text-fill-color: var(--apl-ink) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__cta--ghost:hover { background: var(--apl-hover) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__cta:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px !important; }

  /* Contenu */
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__panes {
    position: relative !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 30px 40px 40px !important;
    scroll-behavior: smooth;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__pane[hidden] { display: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__pane { animation: aplPane .4s cubic-bezier(.2, .8, .2, 1) both !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win.is-filtering .apl__pane { animation: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win.is-filtering .apl__pane + .apl__pane { margin-top: 34px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__pane-head { margin: 0 0 22px !important; padding: 0 !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__eyebrow {
    margin: 0 0 12px !important;
    padding: 0 !important;
    max-width: none !important;
    font: 500 11px/1 var(--apl-mono) !important;
    letter-spacing: .16em !important;
    text-transform: uppercase !important;
    color: var(--apl-coral) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__pane-title {
    margin: 0 !important;
    padding: 0 !important;
    font: 300 clamp(34px, 3.4vw, 50px)/1 "Inter", system-ui, sans-serif !important;
    letter-spacing: -.035em !important;
    color: var(--apl-ink) !important;
    -webkit-text-fill-color: var(--apl-ink) !important;
    background: none !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__pane-title::before,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__pane-title::after { content: none !important; display: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win.is-filtering .apl__pane-title { font-size: 24px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win.is-filtering .apl__chips { display: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__chips li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__chips li::before { content: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__chip {
    display: inline-flex !important;
    align-items: center !important;
    height: 34px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: rgba(140, 108, 240, .14) !important;
    font: 500 13px/1 "Inter", system-ui, sans-serif !important;
    color: #d9d0ff !important;
    -webkit-text-fill-color: #d9d0ff !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background-color .2s ease, color .2s ease !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__chip:hover { background: rgba(140, 108, 240, .28) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__chip:focus-visible { outline: 2px solid var(--apl-violet) !important; outline-offset: 2px !important; }

  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__row {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 8px 28px !important;
    padding: 20px 0 !important;
  }
  /* Séparation par une fine bande d'aplat (pas de trait de 1 px). */
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__row + .apl__row { background: linear-gradient(rgba(255, 255, 255, .05), rgba(255, 255, 255, .05)) top / 100% 2px no-repeat !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__row[hidden],
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__links > li[hidden],
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__empty[hidden] { display: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__row-title {
    margin: 0 !important;
    padding: 10px 0 0 !important;
    max-width: none !important;
    font: 500 11px/1.5 var(--apl-mono) !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: var(--apl-muted) !important;
    -webkit-text-fill-color: var(--apl-muted) !important;
    background: none !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__row-title::before,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__row-title::after { content: none !important; display: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__links {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 2px 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__links > li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__links > li::before { content: none !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    font: 400 14.5px/1.35 "Inter", system-ui, sans-serif !important;
    color: #c9cce0 !important;
    -webkit-text-fill-color: #c9cce0 !important;
    text-decoration: none !important;
    transition: background-color .18s ease, color .18s ease !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__link span { min-width: 0 !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__link svg {
    flex: 0 0 auto !important;
    stroke: currentColor !important;
    fill: none !important;
    opacity: 0 !important;
    transform: translate(-4px, 4px) !important;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__link:hover,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__link:focus-visible {
    background: var(--apl-raise) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    outline: none !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__link:focus-visible { background: var(--apl-hover) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__link:hover svg,
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__link:focus-visible svg { opacity: 1 !important; transform: none !important; color: var(--apl-coral) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__empty {
    margin: 40px 0 0 !important;
    padding: 0 !important;
    font: 300 22px/1.3 "Inter", system-ui, sans-serif !important;
    color: var(--apl-muted) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  /* Écrans moyens : colonne des rubriques plus étroite, titres de lignes au-dessus des liens. */
  @media (max-width: 1320px) {
    html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__body { grid-template-columns: 260px minmax(0, 1fr) !important; }
    html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__row { grid-template-columns: minmax(0, 1fr) !important; }
    html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__row-title { padding: 0 0 4px 12px !important; }
    html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__panes { padding: 26px 28px 34px !important; }
  }
  @media (max-height: 700px) {
    html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab-sub { display: none !important; }
  }

  @media (prefers-reduced-motion: reduce) {
    html body :is(#apl, #apl-m):is(#apl, #apl-m) *,
    html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win,
    html body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__scrim,
    html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_) .apl-btn,
    html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_) .apl-btn::after,
    html body #arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_) .apl-btn * {
      animation: none !important;
      transition: none !important;
    }
  }

  /* Mode contraste élevé (html.contraste-eleve) : noir et blanc, liens soulignés. */
  html.contraste-eleve body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win { background: #000 !important; }
  html.contraste-eleve body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__win::before { display: none !important; }
  html.contraste-eleve body :is(#apl, #apl-m):is(#apl, #apl-m) :is(.apl__link, .apl__chip, .apl__tab, .apl__tab-sub, .apl__row-title, .apl__brand, .apl__tab-num, .apl__tab-count, .apl__eyebrow) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  html.contraste-eleve body :is(#apl, #apl-m):is(#apl, #apl-m) .apl__link span { text-decoration: underline !important; }
  html.contraste-eleve body :is(#apl, #apl-m):is(#apl, #apl-m) :is(.apl__link, .apl__chip, .apl__tab, .apl__cta, .apl__close):focus-visible { outline: 3px solid #ffeb3b !important; }

  @keyframes aplPane {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes aplPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
  }
}

/* ================================================================
   Droite de la barre (05/12/2026), dans le style du bouton de gauche (carré arrondi translucide,
   rayon 15 px, 46 px de haut, sans ombre ni bordure, corail en accent).
   Ordre : [Membres · Contraste] · [FR | EN] · Nous contacter (corail, tout à droite). (Architecture & IA retiré le 06/12/2026.)
   Loupe retirée de la barre (la recherche reste dans le menu et au raccourci Ctrl+K).
   Sélecteurs volontairement très spécifiques : style-header.css empile déjà beaucoup de règles sur ces boutons.
   ================================================================ */
/* Libellés texte de l'en-tête (06/12/2026) : visibles seulement sur grand écran, voir plus bas. */
#arbree-header .hdr-txt-label { display: none; }

@layer iia-header {
  @media (min-width: 1141px) {
    /* Loupe : retirée */
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #arbree-open-search-modal {
      display: none !important;
    }

    /* Ordre et espacements */
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-doc-btn { order: 2 !important; margin: 0 !important; }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > .arbree-header-container {
      order: 3 !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 10px !important;
      margin: 0 !important;
    }
    /* 06/12/2026 : bouton « Architecture & IA » retiré ; espacement uniforme de 10 px entre tous les boutons de droite. */
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav { column-gap: 10px !important; }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > .lang-switch { order: 4 !important; margin: 0 !important; }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-cta-btn { order: 5 !important; margin: 0 !important; }

    /* Architecture & IA : carré arrondi translucide, point corail devant */
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-doc-btn,
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-cta-btn {
      position: relative !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 10px !important;
      height: 46px !important;
      min-height: 46px !important;
      padding: 0 18px !important;
      border: 0 !important;
      outline: 0 !important;
      border-radius: 15px !important;
      background: rgba(255, 255, 255, .1) !important;
      background-image: none !important;
      box-shadow: none !important;
      font-family: "Inter", system-ui, sans-serif !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      letter-spacing: .01em !important;
      line-height: 1 !important;
      text-transform: none !important;
      text-decoration: none !important;
      white-space: nowrap !important;
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
      transition: background-color .2s ease, transform .2s ease !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-doc-btn::before {
      content: "" !important;
      display: block !important;
      position: static !important;
      width: 7px !important;
      height: 7px !important;
      border-radius: 50% !important;
      background: #ed5f54 !important;
      opacity: 1 !important;
      transform: none !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-doc-btn::after { content: none !important; display: none !important; }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-doc-btn:is(:hover, :focus-visible) {
      background: rgba(255, 255, 255, .17) !important;
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
    }

    /* Nous contacter : même forme, corail plein, flèche */
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-cta-btn {
      padding: 0 18px 0 20px !important;
      background: #ed5f54 !important;
      font-weight: 600 !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-cta-btn::after {
      content: "→" !important;
      display: inline-block !important;
      position: static !important;
      width: auto !important;
      height: auto !important;
      background: none !important;
      opacity: 1 !important;
      font-weight: 500 !important;
      transform: none !important;
      transition: transform .25s cubic-bezier(.2, .8, .2, 1) !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-cta-btn::before { content: none !important; display: none !important; }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-cta-btn:is(:hover, :focus-visible) {
      background: #f4483c !important;
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > a.arbree-cta-btn:is(:hover, :focus-visible)::after { transform: translateX(3px) !important; }

    /* Membres et Contraste : carrés arrondis 46 px, comme le bouton de gauche */
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(#ha-account-btn, #arbree-toggle-contrast),
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(#ha-account-btn, #arbree-toggle-contrast):is(:hover, :focus-visible, :active, .active, [aria-expanded="true"]) {
      position: relative !important;
      display: inline-grid !important;
      place-items: center !important;
      width: 46px !important;
      min-width: 46px !important;
      height: 46px !important;
      min-height: 46px !important;
      margin: 0 !important;
      padding: 0 !important;
      border: 0 !important;
      outline: 0 !important;
      border-radius: 15px !important;
      background: rgba(255, 255, 255, .1) !important;
      background-color: rgba(255, 255, 255, .1) !important;
      box-shadow: none !important;
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
      transition: background-color .2s ease !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(#ha-account-btn, #arbree-toggle-contrast):is(:hover, :focus-visible, .active, [aria-expanded="true"]) {
      background: rgba(255, 255, 255, .17) !important;
      background-color: rgba(255, 255, 255, .17) !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(#ha-account-btn, #arbree-toggle-contrast) svg,
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(#ha-account-btn, #arbree-toggle-contrast) svg * {
      stroke: #fff !important;
      color: #fff !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #arbree-toggle-contrast svg .hc-half { fill: #ed5f54 !important; stroke: #ed5f54 !important; }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #ha-account-btn .hdr-menu-ico {
      position: static !important;
      transform: none !important;
      width: 22px !important;
      height: 22px !important;
    }

    /* 06/12/2026 : texte « Se connecter » / « Contraste » à la place des icônes */
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(#ha-account-btn, #arbree-toggle-contrast),
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(#ha-account-btn, #arbree-toggle-contrast):is(:hover, :focus-visible, :active, .active, [aria-expanded="true"]) {
      display: inline-flex !important;
      align-items: center !important;
      width: auto !important;
      min-width: 0 !important;
      padding: 0 18px !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(#ha-account-btn, #arbree-toggle-contrast) > :not(.hdr-txt-label) {
      display: none !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(#ha-account-btn, #arbree-toggle-contrast) > .hdr-txt-label {
      display: inline !important;
      font-family: "Inter", system-ui, sans-serif !important;
      font-size: 14px !important;
      font-weight: 500 !important;
      letter-spacing: .01em !important;
      line-height: 1 !important;
      white-space: nowrap !important;
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
    }

    /* FR | EN : un seul carré arrondi en deux segments ; langue active en blanc translucide */
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > .lang-switch {
      display: inline-flex !important;
      align-items: center !important;
      gap: 2px !important;
      height: 46px !important;
      padding: 0 !important; /* 06/12/2026 : FR / EN sans fond ni contour */
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > .lang-switch .lang-switch__link {
      display: inline-grid !important;
      place-items: center !important;
      width: 40px !important;
      min-width: 40px !important;
      height: 38px !important;
      min-height: 38px !important;
      margin: 0 !important;
      padding: 0 !important;
      border: 0 !important;
      border-radius: 11px !important;
      background: transparent !important;
      box-shadow: none !important;
      font-family: "Inter", system-ui, sans-serif !important;
      font-size: 12.5px !important;
      font-weight: 600 !important;
      letter-spacing: .06em !important;
      line-height: 1 !important;
      text-decoration: none !important;
      color: rgba(255, 255, 255, .55) !important;
      -webkit-text-fill-color: rgba(255, 255, 255, .55) !important;
      transition: background-color .2s ease, color .2s ease !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > .lang-switch .lang-switch__link:is(:hover, :focus-visible) {
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > .lang-switch .lang-switch__link.is-active {
      background: transparent !important;
      color: #fff !important;
      -webkit-text-fill-color: #fff !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > .lang-switch .lang-switch__link::before,
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav > .lang-switch .lang-switch__link::after { content: none !important; display: none !important; }

    /* Focus clavier commun */
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) :is(.arbree-nav > a.arbree-doc-btn, .arbree-nav > a.arbree-cta-btn, #ha-account-btn, #arbree-toggle-contrast, .lang-switch__link):focus-visible {
      outline: 2px solid #ff9389 !important;
      outline-offset: 3px !important;
    }
  }
}

/* Logo 2IIA de la barre (05/12/2026) : corail du site (#ed5f54) et plus grand sur ordinateur.
   Le PNG (fond transparent) sert de masque : l'image elle-même est décalée hors de sa boîte
   (object-position) et la couleur de fond corail apparaît dans la forme exacte du logo. */
@layer iia-header {
  html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-logo img {
    filter: none !important;
    opacity: 1 !important;
    background: #ed5f54 !important;
    object-position: -99999px 0 !important;
    -webkit-mask: url("/img/LOGO-2IIA-2025.png") center / contain no-repeat !important;
    mask: url("/img/LOGO-2IIA-2025.png") center / contain no-repeat !important;
  }
  @media (min-width: 1141px) {
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-logo img {
      height: 42px !important; /* 34 → 46 px, puis 42 px (06/12/2026) */
      width: auto !important;
      max-height: none !important;
    }
  }
}

/* Alignement logo / bouton 4 points (05/12/2026) : les deux centrés verticalement dans la barre, en CSS
   (le recalage par script, faussé par les animations d'arrivée de la barre, est désactivé). */
@layer iia-header {
  @media (min-width: 1141px) {
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav {
      align-items: center !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-logo,
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-logo > a {
      display: flex !important;
      align-items: center !important;
      align-self: center !important;
      height: 46px !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
      transform: none !important;
      top: auto !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-logo img {
      display: block;
      margin: 0 !important;
      transform: none !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .arbree-nav-group--main {
      align-self: center !important;
      display: flex !important;
      align-items: center !important;
      height: 46px !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      padding: 0 !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .apl-slot {
      align-self: center !important;
      height: 46px !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
    }
    html body #arbree-header#arbree-header#arbree-header#arbree-header#arbree-header#arbree-header:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .apl-btn {
      translate: none !important;
    }
  }
}

/* Fenêtre du menu, nouvelle disposition (06/12/2026) : fenêtre plus large ; cases à cocher dans la colonne
   de gauche (liste verticale sous les rubriques) ; boutons Architecture & IA et Nous contacter dans la barre
   du haut, alignés avec la recherche (tout à 42 px de haut). */
@layer iia-header {
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__win { width: min(1440px, calc(100vw - 48px)) !important; }

  /* Barre du haut : marque · recherche (s'étire) · boutons · Échap · fermer */
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__top { gap: 12px !important; padding: 14px 16px 14px 26px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__brand { margin: 0 14px 0 0 !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__filter { flex: 1 1 auto !important; width: auto !important; max-width: 560px !important; height: 42px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__actions { display: flex !important; align-items: center !important; gap: 8px !important; margin-left: auto !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__actions .apl__cta {
    height: 42px !important;
    gap: 12px !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    white-space: nowrap !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__key { align-self: center !important; }

  /* Colonne de gauche : rubriques puis cases à cocher, défilement si besoin */
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__body { grid-template-columns: 330px minmax(0, 1fr) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__rail {
    gap: 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding: 18px 16px 22px 18px !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__tabs { display: flex !important; flex-direction: column !important; gap: 4px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab { padding: 12px 14px 12px 14px !important; border-radius: 14px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab-title { font-size: 16px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__tab-sub { font-size: 12px !important; }

  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__facets {
    gap: 18px !important;
    margin: 18px 0 0 !important;
    padding: 16px 10px 12px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .03) !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-group { display: block !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-legend { float: none !important; display: block !important; padding: 0 10px 8px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-list { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 2px !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 36px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: transparent !important;
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet:hover { background: rgba(255, 255, 255, .06) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet.is-on { background: rgba(237, 95, 84, .16) !important; }
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__facet-status { padding: 4px 10px 0 !important; justify-content: space-between !important; }

  /* Le contenu à droite profite de la largeur */
  html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__panes { padding: 28px 40px 40px !important; }

  @media (max-width: 1320px) {
    html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__body { grid-template-columns: 290px minmax(0, 1fr) !important; }
    html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__brand { display: none !important; }
    html body :is(#apl, #apl-m):is(#apl, #apl-m):is(#apl, #apl-m) .apl__key { display: none !important; }
  }
}

/* Fenêtre « Espace membres » (06/12/2026) : même style que la fenêtre de navigation, plus compacte. */
@layer iia-header {
  html body #apl-m#apl-m#apl-m .apl__win {
    width: min(1180px, calc(100vw - 48px)) !important;
    height: auto !important;
    max-height: calc(100vh - 2 * clamp(16px, 4vh, 40px)) !important;
  }
  html body #apl-m#apl-m#apl-m .apl__top { justify-content: flex-end !important; }
  html body #apl-m#apl-m#apl-m .apl__brand { display: flex !important; margin: 0 auto 0 0 !important; }
  html body #apl-m#apl-m#apl-m .apl__key { display: inline-block !important; }
  html body #apl-m#apl-m#apl-m .apl__body { grid-template-columns: 330px minmax(0, 1fr) !important; min-height: 0 !important; }
  html body #apl-m#apl-m#apl-m .apl__panes { padding: 28px 40px 36px !important; }
  html body #apl-m#apl-m#apl-m .apl__rail { padding: 22px 16px 22px 18px !important; }

  html body #apl-m#apl-m#apl-m .apl__acct-user {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 18px !important;
    padding: 0 10px !important;
    max-width: none !important;
    font: 600 15px/1.2 "Inter", system-ui, sans-serif !important;
    color: var(--apl-ink) !important;
  }
  html body #apl-m#apl-m#apl-m .apl__acct-user i { color: var(--apl-coral) !important; font-size: 18px !important; }
  html body #apl-m#apl-m#apl-m .apl__acct { display: flex !important; flex-direction: column !important; gap: 8px !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-item {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 16px 14px 12px !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, .06) !important;
    text-decoration: none !important;
    color: var(--apl-ink) !important;
    -webkit-text-fill-color: var(--apl-ink) !important;
    transition: background-color .2s ease !important;
  }
  html body #apl-m#apl-m#apl-m .apl__acct-item:hover { background: rgba(255, 255, 255, .11) !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-item:focus-visible { outline: 2px solid var(--apl-coral) !important; outline-offset: 2px !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-ico {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    background: rgba(237, 95, 84, .16) !important;
    color: var(--apl-coral) !important;
    -webkit-text-fill-color: var(--apl-coral) !important;
    font-size: 15px !important;
  }
  html body #apl-m#apl-m#apl-m .apl__acct-txt { display: flex !important; flex-direction: column !important; gap: 4px !important; min-width: 0 !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-title { font: 600 15px/1.2 "Inter", system-ui, sans-serif !important; color: inherit !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-sub { font: 400 12.5px/1.3 "Inter", system-ui, sans-serif !important; color: var(--apl-muted) !important; -webkit-text-fill-color: var(--apl-muted) !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-arrow { font-size: 15px !important; color: var(--apl-dim) !important; -webkit-text-fill-color: var(--apl-dim) !important; transition: transform .25s cubic-bezier(.2, .8, .2, 1), color .2s ease !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-item:hover .apl__acct-arrow { transform: translateX(4px) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  /* Action principale (Se connecter / Tableau de bord) : corail plein */
  html body #apl-m#apl-m#apl-m .apl__acct-item.is-main { background: var(--apl-coral) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-item.is-main:hover { background: #f4483c !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-item.is-main .apl__acct-ico { background: rgba(255, 255, 255, .18) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body #apl-m#apl-m#apl-m .apl__acct-item.is-main :is(.apl__acct-sub, .apl__acct-arrow) { color: rgba(255, 255, 255, .85) !important; -webkit-text-fill-color: rgba(255, 255, 255, .85) !important; }

  @media (max-width: 1140px) {
    html body #apl-m#apl-m#apl-m { display: none !important; }
  }
}
