/*
 * StylesBoutonsAccessRapides — barre d'accès rapide (Importer, Enregistrer…)
 * Dimensions en vh / vw — typographie en rem
 */

.acces-rapide-zone {
    display: flex;
    align-items: center;
    min-height: 4vh;
    padding: 0.25vh 0.7vw;
    border: 1px solid color-mix(in srgb, var(--color-accent) 22%, var(--color-border));
    border-radius: 0.35vh;
    background-color: var(--color-surface);
    box-sizing: border-box;
}

.acces-rapide {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

.acces-rapide__liste {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 0.4vh;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.acces-rapide__liste > li {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.acces-rapide__bouton {
    --bouton-accent: var(--color-accent);

    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1vh;
    width: 100%;
    min-height: 2.25vh;
    padding: 0.15vh 0.5vw;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--bouton-accent) 35%, var(--color-border));
    border-radius: 0.3vh;
    background-color: color-mix(in srgb, var(--bouton-accent) 8%, var(--color-surface));
    color: var(--bouton-accent);
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.acces-rapide__bouton:hover {
    border-color: var(--bouton-accent);
    background-color: color-mix(in srgb, var(--bouton-accent) 16%, var(--color-surface));
    box-shadow: 0 2px 6px color-mix(in srgb, var(--bouton-accent) 12%, transparent);
}

.acces-rapide__bouton:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bouton-accent) 35%, transparent);
}

.acces-rapide__icone {
    flex-shrink: 0;
    width: 1.5vh;
    height: 1.5vh;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.acces-rapide__icone--importer {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232b6cb0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}

.acces-rapide__icone--enregistrer {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232f855a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
}

.acces-rapide__icone--pdf {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239b2c2c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='13' y2='17'/%3E%3C/svg%3E");
}

.acces-rapide__icone--imprimer {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b46c1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 6 2 18 2 18 9'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E");
}

.acces-rapide__libelle {
    display: block;
}

.acces-rapide__bouton--importer {
    --bouton-accent: #2b6cb0;
}

.acces-rapide__bouton--enregistrer {
    --bouton-accent: #2f855a;
}

.acces-rapide__bouton--pdf {
    --bouton-accent: #9b2c2c;
}

.acces-rapide__bouton--imprimer {
    --bouton-accent: #6b46c1;
}

.aide-boutons {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aide-boutons__item {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}
