@import "base/variables.css";
@import "utilities/animations.css";

:root {
    --border-radius: 0.5rem;
    --navbar-height: 72px;
    --transition-duration: 100ms;
}

[class^="accordion"] {
    border: none !important;
    transition: all var(--transition-duration) ease-in-out !important;
}

.accordion-header {
    border-bottom: lightgrey solid 1px !important;
}

.accordion-header-without-bottom-border {
    border-bottom: none !important;
}

.accordion-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--dark) !important;
    background-color: var(--tertiary-lightest) !important
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: var(--color-base-black);
}

a:hover {
    text-decoration: none;
    color: var(--color-base-black);
}

a:active {
    text-decoration: none;
    color: var(--color-base-black);
}

.button-circle {
    background: var(--light);
    border: 1px solid var(--bs-gray-500);
    border-radius: 50%;
    padding: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.brick {
    position: relative;
    align-items: center;
    display: flex;
    border-radius: var(--border-radius);
    flex-direction: column;
    background-color: white;
    width: 264px;
    height: 216px;
    overflow: hidden;
}

.brick-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    margin: 0.5rem;
    justify-content: space-around;
    align-items: center;
}

.brick-link {
    position: relative;
    align-items: center;
    display: flex;
    border-radius: var(--border-radius);
    flex-direction: column;
    background-color: white;
    width: 365px;
    height: 328px;
    overflow: hidden;
}

.responsive-hider {
    display: block;
}

.divider-h {
    height: 1px;
    background-color: lightgray;
    width: 100%;
}

.divider-v {
    width: 1px;
    background-color: lightgray;
    height: 100%;
}

@media (max-width: 1200px) {
    .brick {
        width: 132px;
        height: 108px;
    }

    .brick-link {
        width: 183px;
        height: 164px;
    }

    .responsive-hider {
        display: none;
    }
}

.brick-decorative {
    position: absolute;
    width: 100%;
    height: 8px;
    border: none;
}

.static-shadow {
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.preserv-card {
    padding: 0.5rem;
    background-color: white;
    border-radius: var(--border-radius);
}

.preserv-news-card {
    color: var(--dark);
    display: flex;
    flex-direction: column;
    height: 446px;
    border-radius: var(--border-radius);
}

.preserv-tag {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 12px;
    gap: 5px;
    padding: 0.25rem;
    width: fit-content;
    height: 32px;
    border: 1px solid;
    border-radius: 1rem;
    border-color: var(--tertiary-darkest);
    color: var(--tertiary-darkest);
    background-color: var(--tertiary-lightest);
}

.preserv-tag-news {
    color: var(--dark); 
    background-color: var(--accent-light); 
    border-color: var(--dark)
}

.preserv-text-primary {
    color: var(--primary);
}

.preserv-bg-primary {
    background-color: var(--primary);
}

.preserv-bg-primary-aux {
    background-color: var(--primary-aux);
}

.preserv-bg-primary-light {
    background-color: var(--primary-light);
}

.preserv-fill-primary {
    fill: var(--primary);
}

.preserv-fill-primary-light {
    fill: var(--primary-light);
}

.preserv-text-secondary {
    color: var(--secondary);
}

.preserv-text-tertiary {
    color: var(--tertiary-aux);
}

.preserv-bg-secondary {
    background-color: var(--secondary);
}

.preserv-bg-tertiary {
    background-color: var(--tertiary-aux);
}

.preserv-text-accent {
    color: var(--accent);
}

.preserv-bg-accent {
    background-color: var(--accent);
}

.preserv-text-accent-dark {
    color: var(--accent-dark);
}

.preserv-bg-accent-dark {
    background-color: var(--accent-dark);
}

.preserv-text-accent-darker {
    color: var(--accent-darker);
}

.preserv-bg-accent-darker {
    background-color: var(--accent-darker);
}

.preserv-bg-blue-rf {
    background-color: var(--blue-rf);
}

.preserv-button {
    background-color: var(--light);
    color: var(--dark);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    gap: 1rem;
}

.preserv-button-primary {
    background-color: var(--primary-aux);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    gap: 1rem;
}

.preserv-button-primary.primary-dark {
    background-color: var(--primary-darkest);
}

.preserv-button-accent {
    background-color: var(--accent-brown);
    color: var(--light);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    gap: 1rem;
}

.preserv-button-accent:hover {
    color: var(--light);
}

.preserv-button-primary:hover {
    color: white;
}

.preserv-button-secondary {
    background-color: var(--secondary);
    color: var(--color-base-black);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    gap: 1rem;
}

.preserv-button-tertiary {
    background-color: var(--tertiary-aux);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    gap: 1rem;
}

.preserv-button-tertiary:hover {
    color: white;
}

.preserv-button-auxiliary {
    background-color: whitesmoke;
    color: var(--color-base-black);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    gap: 1rem;
}

.preserv-bg-gradient-primary {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-light));
}

.preserv-bg-gradient-secondary {
    background: linear-gradient(to right, var(--secondary-dark), var(--secondary-light));
}

.fond-gestionnaire {
    width: 1840px;
    height: 745px;
    border-radius: 40px;
    background: linear-gradient(-90deg, var(--tertiary-light) 45%, transparent), url('../Images/Charly-ROG.jpg') -200px 0 / 1350px no-repeat;
}

/* Menu replié (barre fixe) : défile s'il dépasse la hauteur de l'écran, ex. téléphone en paysage */
@media (max-width: 1199.98px) {
    .navbar.fixed-top .navbar-collapse {
        max-height: calc(100vh - var(--navbar-height) - 0.5rem);
        overflow-y: auto;
    }
}

/* Téléphones : les tailles de titres de base.css sont pensées pour le bureau */
@media (max-width: 575.98px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 21px;
    }
}
