/* Logo Geocarnet animé : replié (G) -> déplié (GEOCARNET) au survol / focus */
.gc-logo{display:block;height:var(--gc-h,56px);width:auto;overflow:visible}
.gc-logo .gc-head{transition:transform .55s cubic-bezier(.4,0,.2,1) .1s}
.gc-logo .gc-shaft{stroke-dasharray:1 2;stroke-dashoffset:var(--f0);
  transition:stroke-dashoffset .55s cubic-bezier(.4,0,.2,1) .1s}
.gc-logo .gc-r{transform:translateX(var(--rs));transition:transform .6s cubic-bezier(.4,0,.2,1) .1s}
.gc-logo .gc-gh{transition:opacity .1s linear .62s}
.gc-open .gc-logo .gc-r,:is(a,button,.gc-hover):hover>.gc-logo .gc-r,:is(a,button,.gc-hover):focus-visible>.gc-logo .gc-r,.gc-logo:hover .gc-r
  {transform:none;transition:transform .75s cubic-bezier(.45,0,.15,1)}
.gc-open .gc-logo .gc-gh,:is(a,button,.gc-hover):hover>.gc-logo .gc-gh,:is(a,button,.gc-hover):focus-visible>.gc-logo .gc-gh,.gc-logo:hover .gc-gh
  {opacity:0;transition:opacity .12s linear .08s}
@keyframes gc-r{from{transform:translateX(var(--rs))}to{transform:none}}
@keyframes gc-gh{from{opacity:1}to{opacity:0}}
.gc-autoplay .gc-logo .gc-r{animation:gc-r .75s cubic-bezier(.45,0,.15,1) .4s both}
.gc-autoplay .gc-logo .gc-gh{animation:gc-gh .12s linear .48s both}
.gc-logo .gc-l{stroke-dasharray:1 2;stroke-dashoffset:1;opacity:0;
  transition:stroke-dashoffset .25s ease-in var(--out),opacity .1s linear calc(var(--out) + .18s)}
/* état déplié */
.gc-open .gc-logo .gc-head,:is(a,button,.gc-hover):hover>.gc-logo .gc-head,:is(a,button,.gc-hover):focus-visible>.gc-logo .gc-head,.gc-logo:hover .gc-head
  {transform:translateX(var(--shift));transition:transform 1s cubic-bezier(.45,0,.15,1)}
.gc-open .gc-logo .gc-shaft,:is(a,button,.gc-hover):hover>.gc-logo .gc-shaft,:is(a,button,.gc-hover):focus-visible>.gc-logo .gc-shaft,.gc-logo:hover .gc-shaft
  {stroke-dashoffset:0;transition:stroke-dashoffset 1s cubic-bezier(.45,0,.15,1)}
.gc-open .gc-logo .gc-l,:is(a,button,.gc-hover):hover>.gc-logo .gc-l,:is(a,button,.gc-hover):focus-visible>.gc-logo .gc-l,.gc-logo:hover .gc-l
  {stroke-dashoffset:0;opacity:1;transition:stroke-dashoffset .35s ease-out var(--in),opacity .05s linear var(--in)}
/* option gc-fit (sur le lien) : la largeur réservée suit le dépliage, le menu voisin glisse */
.gc-fit{display:inline-block;overflow:hidden;vertical-align:middle;width:calc(var(--gc-h,56px)*1.3);transition:width .6s cubic-bezier(.4,0,.2,1) .1s}
.gc-fit:hover,.gc-fit:focus-visible,.gc-open .gc-fit,.gc-fit.gc-open{width:calc(var(--gc-h,56px)*4.21);transition:width 1s cubic-bezier(.45,0,.15,1)}
.gc-fit .gc-logo{max-width:none}
@keyframes gc-fit{from{width:calc(var(--gc-h,56px)*1.3)}to{width:calc(var(--gc-h,56px)*4.21)}}
.gc-autoplay .gc-fit{animation:gc-fit 1s cubic-bezier(.45,0,.15,1) .4s both}
/* écrans tactiles : ajouter la classe gc-autoplay sur le parent pour jouer une fois au chargement */
@keyframes gc-head{from{transform:none}to{transform:translateX(var(--shift))}}
@keyframes gc-shaft{from{stroke-dashoffset:var(--f0)}to{stroke-dashoffset:0}}
@keyframes gc-l{from{stroke-dashoffset:1;opacity:1}to{stroke-dashoffset:0;opacity:1}}
.gc-autoplay .gc-logo .gc-head{animation:gc-head 1s cubic-bezier(.45,0,.15,1) .4s both}
.gc-autoplay .gc-logo .gc-shaft{animation:gc-shaft 1s cubic-bezier(.45,0,.15,1) .4s both}
.gc-autoplay .gc-logo .gc-l{animation:gc-l .35s ease-out calc(var(--in) + .4s) both}
/* mouvement réduit : pas d'animation, changement instantané */
@media (prefers-reduced-motion:reduce){
  .gc-logo *,.gc-fit{transition:none!important;animation:none!important}
  .gc-autoplay .gc-fit{width:calc(var(--gc-h,56px)*4.21)}
  .gc-autoplay .gc-logo .gc-head{transform:translateX(var(--shift))}
  .gc-autoplay .gc-logo .gc-r{transform:none}
  .gc-autoplay .gc-logo .gc-gh{opacity:0}
  .gc-autoplay .gc-logo .gc-shaft,.gc-autoplay .gc-logo .gc-l{stroke-dashoffset:0;opacity:1}
}
