/* Styles propres au site, chargés après le thème historique. */

/*
 * Les dimensions HTML des visuels stabilisent la mise en page, tandis que ce
 * cadre carré garantit un recadrage circulaire sans déformation.
 */
.spotlight .image {
    aspect-ratio: 1 / 1;
}

.spotlight .image picture,
.spotlight .image img {
    display: block;
    width: 100%;
    height: 100%;
}

.spotlight .image img {
    border-radius: inherit;
    object-fit: cover;
    object-position: var(--spotlight-image-position, 50% 50%);
}

.analytics-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 10000;
    width: min(32rem, calc(100% - 2rem));
    padding: 1.25rem;
    border: 1px solid #d6d6d6;
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.2);
    color: #555555;
}

.analytics-consent[hidden] {
    display: none;
}

.analytics-consent p {
    margin-bottom: 0.75rem;
}

.analytics-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.analytics-consent-actions button {
    margin: 0;
}

.cookie-settings-link {
    height: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: inherit !important;
    font: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-transform: none;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus {
    background: none;
    box-shadow: none;
    color: inherit !important;
}

.privacy-page #header {
    height: auto;
    min-height: 0;
    padding: 4rem 2rem;
}

.privacy-content {
    width: min(50rem, calc(100% - 3rem));
    margin: 0 auto;
    padding: 4rem 0 2rem;
}
