html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: rgb(0, 107, 183);
    /*#0071c1*/
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI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LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}


/* -------------- Personal Global Styles -------------- */
#footer {
    font-size: 0.9rem;
    background-color: #111;
}

main{
    min-height:85vh;
}

body {
    background-color: #111;
    color: #f4f4f4;
}

h1 {
    font-size: clamp(2.3rem, 5vw, 3.7rem);
    font-weight: 800;
    color: #f4f4f4;
    margin-bottom: 0.4em;
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 600;
    color: #f4f4f4;
    margin-bottom: 0.4em;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: #f4f4f4;
    margin-bottom: 0.4em;
}

article.home_page {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s cubic-bezier(.18, .89, .32, 1.18),
        transform 0.7s cubic-bezier(.18, .89, .32, 1.18);
    will-change: opacity, transform;
    /* Optionnel : pour éviter que l'article soit clickable */
    pointer-events: none;
}

article.home_page.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.img-hover img {
    transition: transform .2s cubic-bezier(.3, 1.5, .5, 1.3), box-shadow .2s;
    cursor: pointer;
}

.img-hover img:hover {
    transform: scale(1.08);
    z-index: 1;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, .35);
}


/* ------------------ RUBRICS ------------------ */

.card-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-animate.visible:nth-child(1) {
    transition-delay: 0.2s;
}

.card-animate.visible:nth-child(2) {
    transition-delay: 0.4s;
}

.card-animate.visible:nth-child(3) {
    transition-delay: 0.6s;
}

.card-animate.visible:nth-child(4) {
    transition-delay: 0.8s;
}

/* 
.card-animate.visible:nth-child(5) {
    transition-delay: 1s;
} */

.rankings .icon-toggle,
.rankings .icon-toggle-lg {
    font-weight: bold;
    line-height: 1;
    color: rgb(255, 193, 7);
}

/* ------------------ CONTACT ------------------ */

.custom-link-btn {
    display: inline-block;
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem 1rem;
    background-color: #ffc107;
    color: #000;
    border-radius: 0.3rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.2s ease;
    min-width: 120px;
    white-space: nowrap;
}

.custom-link-btn:hover {
    background-color: #ffcd39;
    transform: translateY(-2px);
    color: #000;
}

.card-body .d-flex {
    justify-content: center;
}

.btn-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 153, 51, 0.74);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(133, 214, 4, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(172, 3, 3, 0.658);
    }
}

/* ------------------ GALLERY ------------------ */
/* ------------------ ANIMATION OF FOLDABLE BLOCKS ------------------ */

.slide-toggle-block {
    max-height: 3000px;
    padding-top: 1.8rem;
    padding-bottom: 1.8rem;
    opacity: 1;
    overflow: hidden;
    transition:
        max-height 0.75s linear,
        padding-top 0.55s linear,
        padding-bottom 0.55s linear,
        opacity 0.5s linear;
}

.slide-toggle-block.closed {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
}

.go-back {
    position: fixed;
    top: 80px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
}

@media (max-width: 600px) {
    .go-back {
        top: 60px;
    }
}

/* ------------------ CUSTOM COLOR TIPS BLOCK ------------------ */

.alert-info:has(.slide-toggle-block) {
    background: rgba(158, 234, 249, 0.5);
    color: rgb(35, 222, 255);
}

/* ------------------ FOLDABLE ICONS SIZE AND COLOR ------------------ */

.gallery .icon-toggle,
.gallery .icon-toggle-lg {
    font-weight: bold;
    line-height: 1;
    color: #d32f2f;
}

.icon-toggle {
    font-size: 1.7rem;
}

.icon-toggle-lg {
    font-size: 2rem;
}

button:has(.icon-toggle),
button:has(.icon-toggle-lg) {
    padding: 0.45em;
    border: none;
    background: none;
}

/* ------------------ MODERNS CARDS ALBUMS ------------------ */

.album-card {
    background: #34343542;
    border-radius: 1.2rem;
    transition:
        box-shadow 0.22s,
        transform 0.32s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 transparent;
    overflow: hidden;
    position: relative;
    padding: 1rem 0.8rem 0.8rem 0.8rem;
}

.album-card:hover,
.album-card:focus {
    transform: translateY(-5px) scale(1.055);
    box-shadow: 0 10px 24px rgba(211, 47, 47, 0.14), 0 0 0 2px #d32f2f44;
    z-index: 10;
    text-decoration: none;
}

.album-thumb-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.album-thumb {
    max-height: 100%;
    max-width: 100%;
    border-radius: 0.9em;
    transition: transform 0.45s cubic-bezier(.21, .88, .55, 1.18);
    box-shadow: 0 2px 10px #0004;
    object-fit: cover;
}

.album-card:hover .album-thumb {
    transform: scale(1.10) rotate(-2.5deg);
    box-shadow: 0 8px 24px 2px #d32f2f45;
}

.album-title {
    display: block;
    margin-top: 0.5rem;
    line-height: 1.25;
    min-height: 2em;
    letter-spacing: 0.02em;
    color: #f0f0f0;
}