main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

main img {
    width: 30%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 30px;
    border: 1px solid var(--champagne);
    box-shadow: 0 0 10px rgba(203, 185, 148, 0.25);
}

.titres-index {
    position: relative;
    display: block;
    text-align: center;
    color: var(--rouge-profond);
    font-family: "Playfair Display", serif;
    margin: 2.5rem 0 1rem 0;
}

h1.titres-index::before {
    content: "";
    width: 180px;
    height: 2px;
    background-color: var(--champagne);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -1.5rem;
    border-radius: 2px;
}

h1.titres-index {
    font-size: 3rem;
    letter-spacing: 2px;
    max-width: 90%;
    margin-bottom: 1.5rem;
    margin-top: 4rem;
}

h2.titres-index {
    font-size: 1.3rem;
    font-family: "Lora", serif;
    font-weight: 400;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.albums {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 1.5rem 0;
    padding: 0 2rem;
    box-sizing: border-box;
}

.note-albums {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--rouge-profond);
    max-width: 40rem;
    margin: 0 0 4rem 0;
    padding: 0 2rem;
    box-sizing: border-box;
}

.btn-album {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: "Playfair Display", serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: var(--rouge-profond);
    background-color: var(--ivoire);
    border: 2px solid var(--champagne);
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(77, 0, 19, 0.15);
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.btn-album:hover {
    background-color: var(--rouge-profond);
    color: var(--ivoire);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(77, 0, 19, 0.25);
}

.btn-album:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(77, 0, 19, 0.2);
}

/* Particules au survol des liens d'album */

.particules {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 9998;
}

.particule {
    position: absolute;
    width: var(--taille);
    height: var(--taille);
    margin-left: calc(var(--taille) / -2);
    margin-top: calc(var(--taille) / -2);
    will-change: transform, opacity;
    animation: particule-eclat var(--duree) cubic-bezier(0.15, 0.6, 0.3, 1) forwards;
}

.particule--chute {
    animation-name: particule-chute;
    animation-timing-function: ease-out;
}

.particule__forme,
.particule__forme svg {
    display: block;
    width: 100%;
    height: 100%;
}

.particule__forme--confetti {
    width: 62%;
    margin: 0 auto;
    border-radius: 2px;
    animation: confetti-tourne 0.75s linear infinite;
}

@keyframes particule-eclat {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0.3);
    }
    12% {
        opacity: 1;
        transform: translate(calc(var(--dx) * 0.18), calc(var(--dy) * 0.18)) rotate(calc(var(--rot) * 0.18)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.85);
    }
}

@keyframes particule-chute {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.4);
    }
    10% {
        opacity: 1;
    }
    45% {
        transform: translate(calc(var(--dx) * 0.55), calc(var(--dy) * 0.55 - 70px)) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), calc(var(--dy) + 180px)) scale(1);
    }
}

@keyframes confetti-tourne {
    from {
        transform: rotateY(0deg) rotateZ(0deg);
    }
    to {
        transform: rotateY(360deg) rotateZ(180deg);
    }
}

@media screen and (max-width: 768px) {
    main img {
        width: 90%;
    }

    h1.titres-index {
        font-size: 2rem;
        margin-top: 3rem;
    }

    h2.titres-index {
        font-size: 1.1rem;
    }

    .albums {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }
}
