/* ============================================================
   Bonjour NYC — Home page styles
   Loaded only when is_front_page().
   ============================================================ */

.bonjour-home {
    max-width: none;
    margin: 0;
    padding: 0;
}

.bonjour-home > section {
    padding: 4rem 1rem;
}

.bonjour-home .home-hero,
.bonjour-home .home-about,
.bonjour-home .home-promo,
.bonjour-home .home-newsletter {
    padding-left: 0;
    padding-right: 0;
}

.home-hero__inner,
.home-intro__inner,
.home-cards__inner,
.home-about__inner,
.home-activities__inner,
.home-latest__inner,
.home-stats__inner,
.home-promo__inner,
.home-medias__inner,
.home-newsletter__inner,
.home-instagram__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* ---------- 1) Hero ---------- */
.home-hero {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-hero__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
    width: 100%;
    padding: 6rem 0;
}

.home-hero__title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0 0 1rem;
}

.home-hero__subtitle {
    font-family: 'Mulish', sans-serif;
    font-size: 1.25rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ---------- 2) Intro ---------- */
.home-intro {
    text-align: center;
    background: #fff;
}

.home-intro__title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin: 0 0 1rem;
}

.home-intro__text {
    font-family: 'Mulish', sans-serif;
    font-size: 1.1rem;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}

/* ---------- 3) Cards thématiques ---------- */
.home-cards__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-card {
    color: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 290px;
}

.home-card__media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.home-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-card__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.home-card__text {
    flex: 1;
    margin: 0 0 1rem;
    font-family: 'Mulish', sans-serif;
}

.home-card__cta {
    align-self: flex-start;
    background: #fff;
    color: inherit;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- 4) About ---------- */
.home-about {
    background: linear-gradient(135deg, #53B3B7 0%, #2C6087 100%);
    color: #fff;
    padding: 5rem 1rem;
}

.home-about__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.home-about__media img {
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.home-about__title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin: 0 0 1rem;
}

.home-about__text {
    font-family: 'Mulish', sans-serif;
    line-height: 1.7;
}

/* ---------- 5) Activités ---------- */
.home-activities__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.home-activity {
    border-radius: 6px;
    overflow: hidden;
}

.home-activity__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-activity__media {
    background-size: cover;
    background-position: center;
    aspect-ratio: 4 / 3;
}

.home-activity__body {
    padding: 1rem;
}

.home-activity__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}

.home-activity__cta {
    color: #2C6087;
    font-weight: 600;
}

/* ---------- 6) Derniers articles ---------- */
.home-latest__title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin: 0 0 2rem;
}

.home-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-latest-item__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-latest-item__media {
    background-size: cover;
    background-position: center;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
}

.home-latest-item__body {
    padding: 1rem 0;
}

.home-latest-item__cat {
    display: inline-block;
    background: #FFB524;
    color: #fff;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.home-latest-item__title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin: 0;
}

.home-latest__more {
    text-align: center;
    margin-top: 2rem;
}

.home-latest__more a {
    background: #2C6087;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- 7) Stats ---------- */
.home-stats {
    background: #f5f5f5;
}

.home-stats__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.home-stat__number {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2C6087;
}

.home-stat__label {
    font-family: 'Mulish', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
}

/* ---------- 8) Promo banner ---------- */
.home-promo {
    background: linear-gradient(135deg, #53B3B7 0%, #2C6087 100%);
    color: #fff;
    padding: 4rem 1rem;
    text-align: center;
}

.home-promo__inner h1,
.home-promo__inner h2,
.home-promo__inner h3 {
    color: #fff;
    font-family: 'Oswald', sans-serif;
}

.home-promo__inner a {
    color: #FFB524;
}

/* ---------- 9) Media mentions ---------- */
.home-medias__title {
    font-family: 'Oswald', sans-serif;
    text-align: center;
    margin: 0 0 2rem;
}

.home-medias__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.home-medias__item img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.2s, opacity 0.2s;
}

.home-medias__item:hover img {
    filter: none;
    opacity: 1;
}

/* ---------- 10) Newsletter ---------- */
.home-newsletter {
    background: #f9f9f9;
    text-align: center;
    padding: 4rem 1rem;
}

.home-newsletter__title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin: 0 0 1rem;
}

.home-newsletter__text {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.home-newsletter__form {
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- 11) Instagram ---------- */
.home-instagram__inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    max-width: 1400px;
    padding: 0;
}

.home-instagram__item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.home-instagram__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.home-instagram__item:hover img {
    transform: scale(1.05);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
    .home-cards__inner,
    .home-activities__inner,
    .home-latest__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-about__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-about__media img {
        max-width: 240px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .bonjour-home > section {
        padding: 3rem 1rem;
    }

    .home-cards__inner,
    .home-activities__inner,
    .home-latest__grid {
        grid-template-columns: 1fr;
    }

    .home-stats__inner {
        grid-template-columns: 1fr;
    }

    .home-instagram__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-instagram__item:nth-child(5) {
        grid-column: span 2;
    }

    .home-hero__title {
        font-size: 2rem;
    }
}
