html {
    -webkit-print-color-adjust: exact;
}

* {
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
}

html,
body {
    background-color: #191919;
    color: #D4D4D4;
    margin: 2em auto;
    max-width: 900px;
    line-height: 1.4;
}

a,
a.visited {
	color: inherit;
	text-decoration: underline;
}

a:hover {
    color: #646464;
}


.pdf-relative-link-path {
    font-size: 80%;
    color: #444;
}

h1,
h2,
h3 {
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75em;
}

h1 {
    font-size: 1.875rem;
    margin-top: 1.875rem;
}

h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
}

figure {
    margin: 1.25em 0;
    page-break-inside: avoid;
}

figcaption {
    opacity: 0.5;
    font-size: 85%;
    margin-top: 0.5em;
}

hr {
    border: none;
    border-top: 1px solid #373737;
    width: 100%;
}

img {
    max-width: 100%;
}

/* Enlever les cadres des GIFs */
img[src*=".gif"] {
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media only print {
    img {
        max-height: 100vh;
        object-fit: contain;
    }
}

@page {
    margin: 1in;
}

.collection-content {
    font-size: 0.875rem;
}

.column-list {
    display: flex;
    justify-content: space-between;
}

.column {
    padding: 0 1em;
    flex: 1;
}

.column:first-child {
    padding-left: 0;
}

.column:last-child {
    padding-right: 0;
}

/* Classes spécifiques pour la section Deconstructed Art */
.art-image-column {
    flex: 0 0 20%;
}

.art-image-column img {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.art-text-column {
    flex: 0 0 80%;
}

/* Styles pour les images */
figure.image {
    margin: 1em 0;
}

figure.image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5em;
    font-style: italic;
}


.icon {
    display: inline-block;
    max-width: 1.2em;
    max-height: 1.2em;
    text-decoration: none;
    vertical-align: text-bottom;
    margin-right: 0.5em;
}


.page-cover-image {
    display: block;
    object-fit: cover;
    width: 100%;
    max-height: 30vh;
}

.page-header-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header-icon-with-cover {
    margin-top: -0.72em;
    margin-left: 0.07em;
}

.page-header-icon img {
    border-radius: 3px;
}


p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.image {
    border: none;
    margin: 1.5em 0;
    padding: 0;
    border-radius: 0;
    text-align: center;
}


.sans {
    font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}


.block-color-gray_background {
    background: #252525;
    height: 1.8em;
    display: flex;
    align-items: center;
    padding: 0.2em;
}

/* Styles pour le bouton Go Back */
button {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
    color: #D4D4D4;
    border: 2px solid #404040;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button::before {
    content: '←';
    font-size: 18px;
    transition: transform 0.3s ease;
}

button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 212, 212, 0.1), transparent);
    transition: left 0.6s ease;
}

button:hover::after {
    left: 100%;
}

button:hover {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 50%, #3a3a3a 100%);
    border-color: #606060;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

button:hover::before {
    transform: translateX(-3px);
}

button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

button:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(212, 212, 212, 0.2);
}

@media (max-width: 1000px) {
    /* Styles communs pour les écrans de 1000px ou moins */
    .page-body {
        padding: 4%;
    }

    .page-title {
        text-align: center;
        font-size: 2.2rem;
    }

    .column-list {
        display: block;
    }

    .column {
        width: 100% !important;
        padding: 0;
        margin-bottom: 2em;
    }

    .block-color-gray_background {
        text-align: center;
    }

    .page-header-icon, .page-header-icon-with-cover {
        text-align: center;
    }

    button {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
        padding: 14px 24px;
        font-size: 18px;
    }

    /* Améliorer l'affichage des images sur tablettes */
    figure.image img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto 1em auto;
    }
}

@media (max-width: 800px) {
    /* Styles spécifiques pour les écrans de 800px ou moins */
    html, body {
        max-width: 95%;
        margin: 1.5em auto;
    }

    .page-title {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: left;
    }

    figcaption {
        text-align: center;
        font-size: 0.85rem;
        margin-top: 0.5em;
        font-style: italic;
    }
}

@media (max-width: 480px) {
    /* Styles pour les petits écrans mobiles */
    html, body {
        max-width: 100%;
        margin: 1em auto;
        padding: 0 0.5em;
    }

    .page-title {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    p {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .column {
        margin-bottom: 1.5em;
    }

    figure.image {
        margin-bottom: 1em;
    }

    figure.image img {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }
}