/* Mot-symbole et variantes du header public 0.18.179, communs au Logo Lab. */
[data-ag-brand] {
    display: inline-flex;
    align-items: baseline;
    position: relative;
    color: #1f2430 !important;
    font: 800 29px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    letter-spacing: -.045em;
    text-decoration: none !important;
    white-space: nowrap;
}

[data-ag-brand] b { color: #ff4365; font-weight: 900; }
[data-ag-brand] small {
    position: absolute;
    top: 4px;
    left: 100%;
    margin-left: 1px;
    color: #ff4365;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    transform: none;
}

.ag-brand-o {
    position: relative;
    top: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: .67em;
    height: 1em;
    vertical-align: -.03em;
    transform-origin: 50% 62%;
    will-change: transform, opacity;
}

.ag-brand-js [data-ag-brand] .ag-brand-o { visibility: hidden; }
.ag-brand-js [data-ag-brand].is-logo-rolling .ag-brand-o,
.ag-brand-js [data-ag-brand].is-logo-rolled .ag-brand-o { visibility: visible; }
.is-logo-rolling .ag-brand-o { animation: agLogoORoll 1.35s cubic-bezier(.18,.72,.2,1) both; }

/* Preserve the current normal glyph's mobile rasterization after the roll. */
.is-logo-rolled .ag-brand-o[data-kind="normal"] {
    will-change: var(--ag-logo-normal-rest-layer, transform, opacity);
}

@keyframes agLogoORoll {
    0% { opacity: 0; transform: translate3d(calc(-100vw + 80px),0,0) rotate(-720deg) scale(1); }
    10% { opacity: 1; }
    62% { transform: translate3d(14px,0,0) rotate(20deg) scale(1); }
    70% { transform: translate3d(7px,-14px,0) rotate(10deg) scale(.95,1.05); }
    77% { transform: translate3d(1px,2px,0) rotate(2deg) scale(1.07,.91); }
    85% { transform: translate3d(-3px,-6px,0) rotate(-5deg) scale(.98,1.02); }
    92% { transform: translate3d(1px,1px,0) rotate(1deg) scale(1.025,.97); }
    100% { opacity: 1; transform: none; }
}

.ag-brand-o > img.emoji {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    max-width: none !important;
    margin: 0 !important;
    vertical-align: 0 !important;
}

/* Retouches optiques mesurées sur le corps des symboles, hors accessoires. */
.ag-brand-o[data-kind="halloween"] { font-size: .78em; filter: saturate(1.1); margin-left: 1px; }
.ag-brand-o[data-kind="newyear"] { font-size: .82em; top: 1px; }
.ag-brand-o[data-kind="valentine"] { font-size: 1.03em; min-width: .72em; color: #ff4365; }
.ag-brand-o[data-kind="carnival"] { font-size: .80em; top: 1px; }
.ag-brand-o[data-kind="easter"] { font-size: .78em; top: 0; }
.ag-brand-o[data-kind="summer"] { font-size: .84em; color: #ffb400; top: -2px; }

.ag-brand-o:is([data-kind="christmas"], [data-kind="belgium"], [data-kind="pride"]) {
    width: .72em;
    height: .72em;
    min-width: .72em;
    border-radius: 50%;
    color: transparent;
    margin: 0 .02em;
}

.ag-brand-o[data-kind="christmas"] {
    top: var(--ag-christmas-logo-top, -1px);
    width: .74em;
    height: .74em;
    min-width: .74em;
    background: radial-gradient(circle at 32% 25%,rgba(255,255,255,.8) 0 7%,transparent 8%),
        linear-gradient(135deg,#e73450 0 42%,#f3c94d 43% 50%,#e73450 51% 100%);
    box-shadow: inset -2px -2px 0 rgba(120,0,20,.13);
}

.ag-brand-o[data-kind="christmas"]::before,
.ag-brand-o[data-kind="christmas"]::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    content: "";
}

.ag-brand-o[data-kind="christmas"]::before {
    top: -.19em;
    width: .28em;
    height: .16em;
    border-radius: 3px 3px 1px 1px;
    background: #d6b24c;
}

.ag-brand-o[data-kind="christmas"]::after {
    top: -.30em;
    width: .25em;
    height: .20em;
    border: 2px solid #d6b24c;
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
}

.ag-brand-o[data-kind="belgium"] {
    background: linear-gradient(90deg,#111 0 33.333%,#ffd90a 33.333% 66.666%,#ef3340 66.666% 100%);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}

.ag-brand-o[data-kind="pride"] {
    background: linear-gradient(180deg,#e40303 0 16.66%,#ff8c00 16.66% 33.33%,#ffed00 33.33% 50%,
        #008026 50% 66.66%,#24408e 66.66% 83.33%,#732982 83.33% 100%);
}

.ag-brand-o[data-kind="saintnicholas"] {
    display: inline-block;
    top: var(--ag-mitre-logo-top, 0px);
    color: #ff4365;
    overflow: visible;
}

.ag-brand-o[data-kind="saintnicholas"]::before,
.ag-brand-o[data-kind="saintnicholas"]::after {
    position: absolute;
    left: 50%;
    opacity: 0;
}

.ag-brand-o[data-kind="saintnicholas"]::before {
    top: -.36em;
    z-index: 2;
    width: .575em;
    height: .552em;
    border-radius: 45% 45% 12% 12%;
    background: #e73450;
    clip-path: polygon(50% 0,92% 38%,82% 100%,18% 100%,8% 38%);
    transform: translate(-50%,-.55em) rotate(-8deg);
    content: "";
}

.ag-brand-o[data-kind="saintnicholas"]::after {
    top: -.24em;
    z-index: 3;
    color: #f3c94d;
    font-size: .2875em;
    font-weight: 900;
    line-height: 1;
    transform: translate(-50%,-1.05em) rotate(-8deg);
    content: "✚";
}

.is-logo-rolled .ag-brand-o[data-kind="saintnicholas"]::before { animation: agMitreDrop .42s cubic-bezier(.2,.85,.25,1.15) forwards; }
.is-logo-rolled .ag-brand-o[data-kind="saintnicholas"]::after { animation: agMitreCrossDrop .42s cubic-bezier(.2,.85,.25,1.15) forwards; }

@keyframes agMitreDrop { to { opacity: 1; transform: translate(-50%,0) rotate(-8deg); } }
@keyframes agMitreCrossDrop { to { opacity: 1; transform: translate(-50%,0) rotate(-8deg); } }

[data-ag-brand] .ag-womensday-mark {
    display: none;
    color: #ff4365;
    margin-left: 2px;
    font: 400 12px/1 Arial,sans-serif;
    letter-spacing: 0;
    transform: translateY(2px);
}
.ag-brand-o[data-kind="womensday"] + .ag-womensday-mark { display: inline-block; }

.ag-brand-o:is([data-kind="pinkoctober"], [data-kind="aidsday"])::after {
    position: absolute;
    right: -.34em;
    bottom: -.30em;
    top: auto;
    font-size: .64em;
    line-height: 1;
    transform: rotate(8deg);
    content: "🎗";
}

.ag-brand-o[data-kind="pinkoctober"]::after { filter: hue-rotate(300deg) saturate(1.5); }
.ag-brand-o[data-kind="aidsday"]::after { filter: hue-rotate(335deg) saturate(2); }

.ag-brand-o[data-kind="movember"]::before {
    position: absolute;
    bottom: -.18em;
    left: 50%;
    width: 1.02em;
    height: .42em;
    border-radius: 45% 45% 55% 55%;
    background: #1f2430;
    clip-path: polygon(0 40%,8% 55%,18% 58%,28% 48%,38% 28%,46% 12%,50% 25%,54% 12%,62% 28%,72% 48%,82% 58%,92% 55%,100% 40%,96% 64%,86% 78%,74% 79%,62% 68%,50% 46%,38% 68%,26% 79%,14% 78%,4% 64%);
    transform: translateX(-50%);
    opacity: 0;
    content: "";
}

.is-logo-rolled:not(.is-movember-fading) .ag-brand-o[data-kind="movember"]::before { opacity: 1; }
.is-movember-fading .ag-brand-o[data-kind="movember"]::before { animation: agMovemberMustacheFade 1.5s ease-in-out forwards; }

@keyframes agMovemberMustacheFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .ag-brand-js [data-ag-brand] .ag-brand-o { visibility: visible; }
    .is-logo-rolling .ag-brand-o,
    .is-movember-fading .ag-brand-o[data-kind="movember"]::before { animation: none; }
    .is-logo-rolled .ag-brand-o[data-kind="saintnicholas"]::before,
    .is-logo-rolled .ag-brand-o[data-kind="saintnicholas"]::after {
        transform: translate(-50%,0) rotate(-8deg);
        opacity: 1;
        animation: none;
    }
}
