/* En-têtes EXISTANTES uniquement. Géométrie301/305 et phases305/311 ; aucune toolbar métier.
   Le même fichier est importé par React et lié par les quatre shells serveur.
   Contraste : blanc sur surface sombre en haut ; noir sur clair, au scroll et menu ouvert. */
:root {
  --ec-green-cta-radius: 25px;
  --ec-green-cta-padding-y: 8px;
  --ec-green-cta-padding-x: 20px;
  --ec-green-cta-min-height: 44px;
  --ec-green-cta-border: #849381;
}
@font-face{font-family:"EC Header Inter";src:url('/showcase/inter-latin.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
/* Pro/Plan public header uses the viewport, even when a body scrollbar narrows its containing block.
 * All other public/auth headers retain the canonical auto width fallback. */
:is(.ec-site.ec-home-world>header.ec-header,body>header.global-header[data-ec-universe-header]){--ec-public-universe-header-width:calc(100vw - max(8px,env(safe-area-inset-left)) - max(8px,env(safe-area-inset-right)))}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)){--ec-header-mark:#000;--ec-header-symbol-filter:brightness(0);position:fixed!important;inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) auto max(8px,env(safe-area-inset-left))!important;z-index:100;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:var(--ec-public-universe-header-width,auto)!important;max-width:none!important;height:64px!important;min-height:64px!important;margin:0!important;padding:10px 24px!important;flex-wrap:nowrap!important;border:0!important;border-bottom:1px solid transparent!important;border-radius:16px!important;outline-color:transparent!important;background-color:transparent!important;background-image:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;transition:background-color .48s cubic-bezier(.42,0,.2,1),-webkit-backdrop-filter .48s cubic-bezier(.42,0,.2,1),backdrop-filter .48s cubic-bezier(.42,0,.2,1),box-shadow .48s cubic-bezier(.42,0,.2,1),transform var(--ec-header-group-motion,.36s cubic-bezier(.42,0,.2,1))!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup))[data-ec-header-tone=white]{--ec-header-mark:#fff;--ec-header-symbol-filter:none}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)):not([data-ec-header-tone]):has(~main [data-ec-header-surface=dark]){--ec-header-mark:#fff;--ec-header-symbol-filter:none}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-lockup.brand-lockup{display:inline-flex;align-items:center;flex-flow:row nowrap;gap:10px!important;margin-left:0!important;color:var(--ec-header-mark)!important;text-decoration:none;flex-shrink:0}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-lockup.brand-lockup .brand-symbol{--ec-logo-forest:#ffffff!important;--ec-logo-sage:#ffffff!important;--ec-logo-detail:#ffffff!important;display:block;width:44px!important;height:44px!important;filter:var(--ec-header-symbol-filter)!important;object-fit:contain;flex:none;transition:filter .48s cubic-bezier(.42,0,.2,1)!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-lockup.brand-lockup .brand-name{font:550 20px/1.1 var(--ec-public-brand-font,"EC Header Inter"),Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.6px!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-lockup.brand-lockup :is(.brand-word-easy291,.brand-word-chantier291){color:var(--ec-header-mark)!important;font-family:inherit!important;transition:color .48s cubic-bezier(.42,0,.2,1)!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-word-easy291{font-weight:650!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-word-chantier291{font-weight:550!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup))[data-ec-header-scrolled=true]{background-color:rgba(255,255,255,.51)!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important;box-shadow:0 3px 6px rgba(0,0,0,.08),0 11px 11px rgba(0,0,0,.07),0 24px 14px rgba(0,0,0,.04),0 43px 17px rgba(0,0,0,.01),0 67px 19px rgba(0,0,0,0)!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup))[data-ec-header-scrolled=true]{--ec-header-mark:#000;--ec-header-symbol-filter:brightness(0)}
/* 325 · Menu ouvert : UNE seule règle pour toutes les entêtes du site et de l'application.
   Gabriel, 14 novembre 2026 : « Lorsque le menu s'affiche, l'entête devient transparente. Ça n'est pas correct. »
   Valeur du skill (fichier 04) : entête blanche pleine #fff, logo et icônes à l'encre, ombre de l'entête vitrée ;
   pas de flou sous un blanc opaque ; jamais masquée tant que le menu est ouvert.
   États couverts sans dépendre du contrôleur : menu React public (.ec-header-menu-open), /plan/ (body.ec-header-menu-open),
   pages serveur (.ep-header-menu-open126), menus <details> logés dans l'entête (Plan seul, salarié, client, pages serveur),
   tiroirs Pro et Bureau (.cc-sidebar.is-open, .office-sidebar.is-open).
   :is(:root,#ec-entete-menu-ouvert) ne vise que :root ; cet identifiant n'existe pas dans le DOM, il donne seulement
   le poids d'un identifiant pour passer devant les règles #root d'entete314.css. Aucune autre feuille ne déclare
   le fond, le flou, l'ombre ou le déplacement de l'entête menu ouvert. */
html:is(:root,#ec-entete-menu-ouvert):root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup),.cc-app>.cc-mobile-bar,.office-shell>.office-mobile-bar,.cc-app>.et-worker-header,.cc-app>.cc-client-header,.ec-planonly328>.ec-planonly328-header):is(.ec-header-menu-open>*,.ep-header-menu-open126,:has(details[open]),.cc-app:has(>.cc-sidebar.is-open)>*,.office-shell:has(>.office-sidebar.is-open)>*){--ec-header-mark:#000!important;--ec-header-symbol-filter:brightness(0)!important;background-color:#fff!important;background-image:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:0 3px 6px rgba(0,0,0,.08),0 11px 11px rgba(0,0,0,.07),0 24px 14px rgba(0,0,0,.04),0 43px 17px rgba(0,0,0,.01),0 67px 19px rgba(0,0,0,0)!important;transform:none!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) button.ec-menu.ec-menu{background-color:transparent!important;background-image:none!important;box-shadow:none!important;border-color:transparent!important;color:var(--ec-header-mark)!important;transition:color .48s cubic-bezier(.42,0,.2,1),background-color .2s ease-out!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) button.ec-menu.ec-menu:hover{background-color:rgba(20,37,31,.06)!important}
html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup))[data-ec-header-hidden=oui]{transform:translateY(var(--ec-header-group-translate,calc(-100% - max(16px,env(safe-area-inset-top)))))!important}
/* Keep every existing server navigation link reachable inside the same fixed geometry. No menu/content is removed. */
body>header:has(.brand-lockup)>nav{display:flex;flex:1 1 auto;min-width:44px;max-height:44px;align-items:center;flex-wrap:nowrap;gap:16px;overflow-x:auto;white-space:nowrap;overscroll-behavior-x:contain}
body>header:has(.brand-lockup)>nav>a{flex:none;display:inline-flex;align-items:center;min-height:44px}
@media(max-width:520px){body>header:has(.brand-lockup)>nav{gap:12px;padding-inline-end:24px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 24px),transparent)}body>header:has(.brand-lockup)>nav::-webkit-scrollbar{display:none}}
body>header:has(.brand-lockup)>nav.language{flex:0 1 auto}
html:root:root:root:root:root:root:root:root body .ec-site>header.ec-header[data-ec-header-tone=white] :is(button.ec-menu,a.brand-lockup):focus-visible{outline-color:#d6eabf!important}
body>header:has(.brand-lockup)~footer>nav>a{display:inline-flex;align-items:center;min-height:44px}
body>header:has(.brand-lockup)~main label:has(>input[type=checkbox]){display:flex;align-items:flex-start;gap:10px}
body>header:has(.brand-lockup)~main label>input[type=checkbox]{width:auto;flex:none;margin:3px 0 0;padding:0}
body:has(>header .brand-lockup){padding-top:96px}
@media(max-width:767px){html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)){height:56px!important;min-height:56px!important;padding:6px 8px!important}body:has(>header .brand-lockup){padding-top:88px}}
@media(max-width:520px){html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-lockup.brand-lockup{gap:9px!important}html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-lockup.brand-lockup .brand-symbol{width:34px!important;height:34px!important}}
@media(max-width:360px){html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-lockup.brand-lockup{gap:6px!important}}

/* Companions use the same phase and vector; their existing layout stays owned by the page. */
[data-ec-header-group]{--ec-header-group-motion:.36s cubic-bezier(.42,0,.2,1)}
[data-ec-header-group] [data-ec-header-companion][data-ec-header-sync=attached]{transform:translateY(0);transition:transform var(--ec-header-group-motion)}
[data-ec-header-group] [data-ec-header-companion][data-ec-header-sync=attached][data-ec-header-hidden=oui]{transform:translateY(var(--ec-header-group-translate,0px))}
@media(prefers-reduced-motion:reduce){[data-ec-header-group] [data-ec-header-companion][data-ec-header-sync=attached]{transition:none!important}}
@media(prefers-reduced-motion:reduce){html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)),html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) .brand-lockup :is(.brand-word-easy291,.brand-word-chantier291,.brand-symbol),html:root:root:root:root:root:root:root:root body :is(.ec-site>header.ec-header,.ec-parcours303>header.p303-entete,.cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277,.ec-formule285>header.site-header,.cc-app.ec-checkout-v8>header.ec-formule287-header,body>header:has(.brand-lockup)) button.ec-menu.ec-menu{transition:none!important}}

/* Connexion seulement : en-tête blanche fixe, lisible et toujours visible. */
html:root:root:root:root:root:root:root:root:root body .cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277[data-ec-header-static=true]{--ec-header-mark:#000!important;--ec-header-symbol-filter:brightness(0)!important;--ec-header-group-translate:0px!important;position:fixed!important;background-color:#fff!important;background-image:none!important;color:#000!important;transform:none!important;box-shadow:0 3px 6px rgba(0,0,0,.08),0 11px 11px rgba(0,0,0,.07),0 24px 14px rgba(0,0,0,.04),0 43px 17px rgba(0,0,0,.01),0 67px 19px rgba(0,0,0,0)!important}
html:root:root:root:root:root:root:root:root:root body .cc-app.cc-auth.ec-auth-design277:not(.ec-formule285-auth>*)>header.ec-auth-header277[data-ec-header-static=true] .ec-auth-return277{color:#000!important}

:is(a,button).ep-button:not(.mp-soft) { display: inline-flex; align-items: center; justify-content: center; }

/* Text actions rendered by the editorial, Bureau and workspace templates. */
:is(button,a):is([class="cc-button"], .cc-button:is(.is-primary,.cc-button-full,.ec-shop-apply,
    .ec-create-action,.ux-completion-primary,.ec-supplier210-upload), .cc-auth-submit212,
  [class="office-button"], .office-button:is(.primary,.ec-fe376-save,.ec-create-action,.cc-button),
  .ec-button:not(.ec-button-light,.ec-demo-action), .ec-a216-button,
  .ec-professional-access-primary, .ep-button:not(.mp-soft)):not(.cc-button-light,.secondary,[role="switch"],[role="tab"],[role="checkbox"],[aria-pressed],:has(>svg:only-child),
    .office-access-prompt *, .cc-template-picker *, .cc-delete-account *, .ec-payroll252-destinations *,
    .tp-workspace-links183 *, .ec-plans300-header > *) {
  box-sizing: border-box;
  min-height: var(--ec-green-cta-min-height) !important;
  padding: var(--ec-green-cta-padding-y) var(--ec-green-cta-padding-x) !important;
  border: 1px solid var(--ec-green-cta-border) !important;
  border-radius: var(--ec-green-cta-radius) !important;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 2px solid #fffef7;
    border-radius: inherit;
    opacity: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    &:focus-visible::after { animation: ec-green-cta-contour .78s ease both; }
    @media (hover: hover) {
      &:not(:disabled,[aria-disabled=true]):hover::after { animation: ec-green-cta-contour .78s ease both; }
    }
  }
  @media (forced-colors: active) {
    border-color: ButtonText !important;
    &::after { display: none; }
  }
}
@keyframes ec-green-cta-contour {
  0% { clip-path: inset(0 100% 0 0); opacity: 0; }
  16% { opacity: 1; }
  82% { opacity: 1; }
  100% { clip-path: inset(0); opacity: 0; }
}
