.page_layout {
    width: 100%;
    padding-right: var(--layout_padding_xs);
    padding-left: var(--layout_padding_xs);
    margin-right: auto;
    margin-left: auto;
}

.top-bar {
    margin: 0;
}

/* ----- HERO ------------------------------------------------------------- */
.hero {
    margin-top: 82px;
    position: relative;
}

.hero div.wrapper {
    position: relative;
    border-radius: 0 0 15px 15px;
    padding-top: 20px;
    z-index: -80;
    background-color: var(--header_background);
}

.hero .img-wrap {
    overflow: hidden;
    width: 100%;
    height: 150px;
    mask-image: linear-gradient(#0000 0, #000 50px);
}

.hero .img-wrap img {
    object-fit: cover;
    object-position: right center; 
    width: 100%;
    transition: transform .5s;
}

.hero-title  {    
    z-index: 5;
    margin-top:40px;
}

.hero-title h1 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: normal;
}

.hero-title h1 span {
    font-size: 1.3rem;
    font-weight: 200;
    line-height: 2rem;
    display: block;
    color: #93ad59;
}

/* -------------------------------------------------------------------*/

.section_pop.invisible {
    opacity: 0;
    pointer-events: none; /* pour éviter les clics sur du contenu invisible */
}

.section_pop {
    opacity: 1;
    transition: opacity .3s ease;
}

.grid-toolbar {
    margin-top: 50px;
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 30px;
}

/* ── MASONRY CARDS ── */

.activity-card {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: 1px 1px 4px 0px #00000029;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-sizing: border-box
}

.masonry-grid {
    /* Masonry will position children absolutely – needs relative + width */
    position: relative;
}
/* Column-width sizer: 1 col of container */
.masonry-grid .grid-sizer,
.masonry-grid .activity-card {
    width: 100%; /* (1 col = 100%) */
} 
.masonry-grid .gutter-sizer {
    width: 0;
}
.card-img {
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #ddd;
    box-shadow:0 8px 24px rgba(0, 0, 0, .2);
}
.card-img img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.card-img h3 {
    position: absolute;
    bottom: 5px;
    color: white;
    text-shadow: 0px 0px 3px rgb(0 0 0);
    font-size: 1.5rem;
}
.card-body {
    padding: 10px;
} 
.card-title {
    font-size: 1.2rem;
    font-weight: 400;
}
.card-desc {
    margin:0;
    padding:0;
}
.activity-card:hover .card-img img {
    transform: scale(1.07);
}
.img-tall {
    height: 320px;
}
.img-medium {
    height: 300px;
}
.img-short {
    height: 280px;
}
.carousel-wrap {
    position: relative;
}
.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.carousel::-webkit-scrollbar {
    display: none;
}
.carousel-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.carousel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.carousel-card:hover img {
    transform: scale(1.05);
}
.carousel-nav {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}
.carousel-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    transition: all 0.2s;
}
.carousel-btn svg {
    width: 16px;
    height: 16px;
}

/* Tablettes (>= 768px) */
@media (min-width: 768px) {
    .page_layout {
        padding-right: var(--layout_padding);
        padding-left: var(--layout_padding);
    }
    .hero div.wrapper {
        height: 270px;
    }
    .hero-title {
        height: 250px;
        position: absolute;
        top: 0;
        left: 10px;
        width: 50%;
        margin:0;
    }       
    .hero-title h1 {
        font-size: 1.8rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    .hero-title h1 span {
        font-size: 1.4rem;
    }
    .hero .img-wrap {
        top:0;
        display: block;
        height: 100%;
    }
    .hero div.wrapper {
        grid-template-columns: 1fr; 
    }     

    .masonry-grid .grid-sizer,
    .masonry-grid .activity-card {
        width: 48.5%; /* (2 col = 2 * 48.5% + gutter : 3%) */
    } 
    .masonry-grid .gutter-sizer {
        width: 3%;
    }         
}

/* Desktops (>= 992px) */
@media (min-width: 992px) {
    .hero div.wrapper {
        height: 320px;
    }
    .hero-title h1 {
        font-size: clamp(2rem, 3vw, 2.5rem);
        font-size: 2.2rem;
    }
    .hero-title h1 span {
        font-size: 1.5rem;
    }     
    .masonry-grid .grid-sizer,
    .masonry-grid .activity-card {
        width: 32%; /* (3 col = 3 * 32% + gutters : 2 * 2%) */
    } 
    .masonry-grid .gutter-sizer {
        width: 2%;
    }
}

/* Grands écrans (>= 1200px) */
@media (min-width: 1200px) {
    .hero .wrapper {
        height: 370px;
    }
    .hero-title h1 {
        font-size: 2.5rem;
    }
    .hero-title h1 span {
        font-size: 1.5rem;
    }     
    .masonry-grid .grid-sizer,
    .masonry-grid .activity-card {
        width: 22.75%; /* (4 col = 4 * 22.75% + gutters : 3 * 3%) */
    } 
    .masonry-grid .gutter-sizer {
        width: 3%;
    }
}

/* Écrans XXL (>= 1400px) */
@media (min-width: 1400px) {
    .page_layout {
        max-width: 1320px;
    }
    .hero-title h1 {
        font-size: 2.5rem;
    }
    .hero-title h1 span {
        font-size: 1.6rem;
    }         
    .masonry-grid .grid-sizer,
    .masonry-grid .activity-card {
        width: 18%; /* (5 col = 5 * 18% + gutters : 4 * 2.5%) */
    } 
    .masonry-grid .gutter-sizer {
        width: 2.5%;
    }
}




/* @media (min-width: 768px) {
   
    .short_desc {
        display: block;    
    }
}

@media (min-width: 992px) {
   
    .article-sidebar {
        display: block; 
        margin-top: -80px;   
    }
}

@media (min-width: 1200px) {    
}

@media (min-width: 1400px) {
   
} */