a.cg-quick-trigger {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .55rem .9rem;
    border: 1px solid #ffffff3d;
    border-radius: 2rem;
    background: #203a2d;
    color: #fff;
    box-shadow: 0 3px 14px #142a2130;
    font: 600 .875rem/1.25 Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
}
a.cg-quick-trigger:hover {
    background: #314f3d;
    color: #fff;
}
.cg-quick-icon {
    display: block;
    width: .75rem;
    height: .75rem;
    background:
        linear-gradient(#cddba9, #cddba9) left top / 42% 42% no-repeat,
        linear-gradient(#cddba9, #cddba9) right top / 42% 42% no-repeat,
        linear-gradient(#cddba9, #cddba9) left bottom / 42% 42% no-repeat,
        linear-gradient(#cddba9, #cddba9) right bottom / 42% 42% no-repeat;
}
.cg-quick-trigger:focus-visible,
.cg-quick-panel :is(a, button):focus-visible,
.cg-quick-directory a:focus-visible {
    outline: 3px solid #607b00;
    outline-offset: 3px;
}
.cg-quick-dialog {
    position: fixed;
    inset: auto 1.125rem 1.125rem auto;
    width: min(54rem, calc(100% - 2.25rem));
    max-width: none;
    max-height: calc(100vh - 2.25rem);
    max-height: calc(100dvh - 2.25rem);
    scroll-padding-top: 6rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 1.25rem;
    background: #f7f7f0;
    color: #142a21;
    box-shadow: 0 16px 64px #10271b50;
    overscroll-behavior: contain;
}
.cg-quick-dialog::backdrop {
    background: #10271b90;
}
html:has(.cg-quick-dialog[open]) {
    overflow: hidden;
}
.cg-quick-panel,
.cg-quick-directory {
    font: 400 1rem/1.5 Arial, sans-serif;
    color: #142a21;
}
.cg-quick-content {
    padding: clamp(.875rem, 2.7vw, 1.75rem);
}
.cg-quick-directory {
    padding-block: 0 3rem;
}
.cg-quick-heading {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .875rem clamp(.875rem, 2.7vw, 1.75rem);
    background: #203a2d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cg-quick-panel .cg-quick-heading h2 {
    margin: 0;
    font: 400 clamp(1.625rem, 4.5vw, 2.25rem)/1.1 Georgia, serif;
    color: inherit;
}
.cg-quick-heading button {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffffff55;
    border-radius: 50%;
    background: #ffffff12;
    color: #fff;
    cursor: pointer;
    font: 400 1.75rem/1 Arial, sans-serif;
}
.cg-quick-heading button:hover {
    background: #ffffff26;
}
.cg-quick-heading button:focus-visible {
    outline-color: #e5f2bd;
}
.cg-quick-panel ul,
.cg-quick-directory ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cg-quick-primary ul,
.cg-quick-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.cg-quick-primary a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .6rem .75rem;
    border-radius: .625rem;
    background: #e8eddc;
    color: #142a21;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}
.cg-quick-primary li:first-child a {
    background: #203a2d;
    color: #fff;
}
.cg-quick-primary a:hover {
    box-shadow: inset 0 0 0 1px currentColor;
}
.cg-quick-groups {
    gap: 1.5rem;
    margin-block: 1.75rem 1.25rem;
}
.cg-quick-group :is(h2, h3) {
    margin: 0 0 .5rem;
    color: #344c30;
    font: 700 1rem/1.4 Arial, sans-serif;
}
.cg-quick-group li a,
.cg-quick-all {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .35rem 0;
    border-bottom: 1px solid #d9ded1;
    color: inherit;
    text-decoration: none;
}
.cg-quick-group li a:hover,
.cg-quick-all:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}
.cg-quick-all {
    border: 0;
    font-weight: 600;
}
.cg-quick-panel .cg-quick-groups {
    gap: .75rem;
    margin-block: .875rem;
}
.cg-quick-panel .cg-quick-group {
    min-width: 0;
    padding: .875rem;
    border: 1px solid #dce3d4;
    border-radius: .75rem;
    background: #fff;
}
.cg-quick-panel .cg-quick-group h3 {
    margin-bottom: .625rem;
    color: #2c4736;
}
.cg-quick-panel .cg-quick-group li a {
    font-size: .9375rem;
    line-height: 1.3;
}
.cg-quick-panel .cg-quick-group li:last-child a {
    border-bottom: 0;
}
.cg-quick-panel .cg-quick-all {
    justify-content: center;
    padding-inline: .75rem;
    border: 1px solid #c6d1bc;
    border-radius: .625rem;
    background: #f1f4ea;
}
@media (max-width: 640px) {
    body:has(.mobile-actions) a.cg-quick-trigger {
        bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    }
}
@media (max-width: 660px) {
    .cg-quick-primary ul,
    .cg-quick-groups {
        grid-template-columns: 1fr;
    }
    .cg-quick-groups {
        gap: 1rem;
    }
}
@media (max-width: 660px) {
    .cg-quick-dialog {
        inset: auto 0 0;
        width: 100%;
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: 1.125rem 1.125rem 0 0;
    }
    .cg-quick-content {
        padding-bottom: calc(.875rem + env(safe-area-inset-bottom, 0px));
    }
    .cg-quick-panel .cg-quick-primary ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }
    .cg-quick-panel .cg-quick-primary li:first-child {
        grid-column: 1 / -1;
    }
}
@media (min-width: 370px) and (max-width: 660px) {
    .cg-quick-panel .cg-quick-group ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: .75rem;
    }
    .cg-quick-panel .cg-quick-group li:nth-last-child(2) a {
        border-bottom: 0;
    }
}
#project-form,
#formulaire-mios,
#formulaire-nice,
#vegetag-form {
    scroll-margin-top: 8rem;
}
@media print {
    a.cg-quick-trigger,
    .cg-quick-dialog {
        display: none;
    }
}
