main ul {
    padding: revert;
}

main>section {
    padding-top: 20px;
}


.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 8px;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    scroll-snap-align: start;
}

.carousel-image img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    opacity: 0;
}

.carousel-wrapper:hover .carousel-arrows {
    opacity: 1;
}

.carousel-arrow {
    color: #fafafa;
    text-decoration: none;
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    /* border-radius: 50%; */
    pointer-events: auto;
    /* transition: background 0.2s, transform 0.2s; */
}

.carousel-arrow:hover {
    transform: scale(1.2);
    color: #fafafa;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s, transform 0.3s;
}

/* Classe active gérée par JS ou repli CSS :target */
.carousel-dot.active {
    background-color: #333;
    transform: scale(1.25);
}


.col-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
}

@media (min-width: 576px) {
    
    .col-sm-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
}

@media (min-width: 992px) {
    .flex-lg-row-reverse {
        flex-direction: row-reverse !important;
    }

    .order-lg-2 {
        order: 2 !important;
    }
    .order-lg-1 {
        order: 1 !important;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .mx-lg-auto {
        margin-right: auto !important;
        margin-left: auto !important;
    }
}

.blog-grid.row .blog-article img {
    border-radius: 5px;
}

@media (min-width: 992px) {
}
.d-block {
    display: block !important;
}
.img-fluid {
    max-width: 100%;
    height: auto;
}




.profil-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Define 3 separate row tracks per card (Title, Bio, Image) */
    grid-template-rows: auto auto auto;
    padding: 4vh 0;
    gap: 0 2vw;
}
@media (max-width: 767px) {
    .profil-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none; /* Turn off grid rows on mobile layout */
        gap: 5vh 2vw;
    }
    
    .profil-grid div.blog-article {
        grid-row: auto !important;
        grid-template-rows: auto !important;
    }
}

.profil-grid div.blog-article {
    max-width: 380px;
    grid-row: span 3; /* Tell each card block to span across all 3 grid rows */
    display: grid;
    grid-template-rows: subgrid; /* Tell internal elements to align to parent rows */
}

.profil-grid .blog-article .profil-img {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    padding-top: 133.33%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}
.profil-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}
