/*
 * Home Page
 * -----------------------------
 */

main.homepage {
    background-color: var(--white);
}

/*
 * Hero Section
 * ----------------
 */
main.homepage .hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: auto;
    background: url('') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: -100px;
}

main.homepage .hero-section .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

main.homepage .hero-section .content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(2rem, 5vw, 5.5rem);
}

main.homepage .hero-section .content .subtitle {
    font-family: var(--font-elegante-garamond);
    font-size: 2rem;
    font-weight: normal;
    font-variant: normal;
    color: var(--white);
}

main.homepage .hero-section .content .title {
    font-family: var(--font-calligraphie-greatvibes);
    font-size: 5.5rem;
    font-weight: normal;
    font-variant: normal;
    line-height: 1;
    color: var(--white);
}

main.homepage .hero-section .content .date {
    font-family: var(--font-elegante-garamond);
    font-size: 2rem;
    font-weight: normal;
    font-variant: normal;
    color: var(--white);
    text-align: center;
}

/* Media Queries Hero Section */
@media only screen 
    and (max-device-height: 575px) 
    and (orientation: landscape) {
        main.homepage .hero-section .content {
            gap: unset;
            margin-top: 80px;
        }

        main.homepage .hero-section .content .subtitle {
            display: none;
        }
}

/*
 * Countdown Section
 * ----------------
 */
main.homepage .countdown-section {
    background-color: var(--color-sec-blanccasse);
}

main.homepage .countdown-section .content {
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

main.homepage .countdown-section .content .desc {
    font-family: var(--font-elegante-garamond);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-ui-vert);
}

main.homepage .countdown-section .content .countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
}

main.homepage .countdown-section .content .countdown > div {
    text-align: center;
    position: relative;
    padding: 0 4rem;
}

main.homepage .countdown-section .content .countdown > div:first-child {
    padding-left: 0;
}

main.homepage .countdown-section .content .countdown > div:last-child {
    padding-right: 0;
}

main.homepage .countdown-section .content .countdown > div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    height: 80px;
    width: 1px;
    background-color: var(--color-ui-vert);
    opacity: 0.3;
}

main.homepage .countdown-section .content .countdown span {
    display: block;
    color: var(--color-ui-vert);
    font-family: var(--font-elegante-playfair);
    font-size: 5rem;
    font-weight: normal;
    font-variant: normal;
    line-height: 1;
}

main.homepage .countdown-section .content .countdown small {
    display: block;
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-family: var(--font-elegante-playfair);
    font-size: 1rem;
    font-weight: normal;
    font-variant: normal;
    letter-spacing: 1px;
    color: var(--color-ui-vert);
}

/* Media Queries Countdown Section */
@media (max-width: 767px) {
    main.homepage .countdown-section .content .countdown span {
        font-size: 3.5rem;
    }
}

@media (max-width: 667px) {
    main.homepage .countdown-section .content .countdown > div {
        padding: 0 2rem;
    }
}

@media (max-width: 499px) {
    main.homepage .countdown-section .content {
        padding: 25px 0;
    }

    main.homepage .countdown-section .content .desc {
        padding: 0 20px;
        text-align: center !important;
    }

    main.homepage .countdown-section .content .countdown {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 0;
    }

    main.homepage .countdown-section .content .countdown > div:first-child {
        padding-left: 20px;
    }
    main.homepage .countdown-section .content .countdown > div:last-child {
        padding-right: 20px;
    }

    main.homepage .countdown-section .content .countdown > div:nth-child(2)::after {
        display: none;
    }
}

@media only screen 
    and (max-device-height: 430px) 
    and (orientation: landscape) {
        main.homepage .countdown-section .content {
            padding: 25px 0;
        }
}

/*
 * Histoire Section
 * ----------------
 */

main.homepage .histoire-section {
    background-color: var(--white);
    padding: 90px 0;
}

main.homepage .histoire-section .bloc-texte {
    padding-top: 60px;
}

main.homepage .histoire-section .bloc-texte .title {
    font-family: var(--font-calligraphie-greatvibes);
    font-size: 3.5rem;
    font-weight: normal;
    font-style: normal;
    color: var(--color-typo-vert);
    margin-bottom: 40px;
}

main.homepage .histoire-section .bloc-texte p {
    font-family: var(--font-elegante-garamond);
    font-size: 1.3rem;
    font-weight: normal;
    font-style: normal;
    color: var(--color-typo-noir);
    line-height: 1.5;
}

main.homepage .histoire-section .bloc-texte a.cta {
    margin-top: 40px;
}

main.homepage .histoire-section .bloc-images {
    position: relative;
    width: 100%;
    height: 530px;
}

main.homepage .histoire-section .bloc-images .img1 {
    width: 80%;
    height: auto;
    aspect-ratio: 16/10;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 15px;
}

main.homepage .histoire-section .bloc-images .img2 {
    width: 60%;
    height: auto;
    aspect-ratio: 16/8;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 15px;
}

main.homepage .histoire-section .bloc-images .img3 {
    width: 35%;
    height: auto;
    aspect-ratio: 5/4;
    position: absolute;
    top: 250px;
    right: 0;
    border-radius: 15px;
}

/* Media Queries Histoire Section */
@media screen and (max-width: 1399px) {
    main.homepage .histoire-section .contenu-texte {
        margin-bottom: 80px;
    }
    main.homepage .histoire-section .bloc-texte {
        padding-top: 0;
    }
    main.homepage .histoire-section .bloc-images {
        height: 910px;
    }
    main.homepage .histoire-section .bloc-images .img3 {
        top: 480px;
    }
}

@media screen and (max-width: 1199px) {
    main.homepage .histoire-section .bloc-images {
        height: 760px;
    }
    main.homepage .histoire-section .bloc-images .img3 {
        top: 380px;
    }
}

@media screen and (max-width: 991px) {
    main.homepage .histoire-section .bloc-images {
        height: 570px;
    }
    main.homepage .histoire-section .bloc-images .img3 {
        top: 280px;
    }
}

@media screen and (max-width: 767px) {
    main.homepage .histoire-section .bloc-images {
        height: 420px;
    }
    main.homepage .histoire-section .bloc-images .img3 {
        top: 220px;
    }
}

@media screen and (max-width: 575px) {
    main.homepage .histoire-section .contenu-texte {
        padding: 0 20px;
    }
    main.homepage .histoire-section .bloc-images {
        height: auto;
        padding: 0 20px;
        position: relative;
    }

    main.homepage .histoire-section .bloc-images .img1 {
        width: 80%;
        height: auto;
        aspect-ratio: 16/9;
        position: relative;
        margin: 0 auto 20px;
        border-radius: 15px;    
    }

    main.homepage .histoire-section .bloc-images .img2 {
        width: 60%;
        height: auto;
        aspect-ratio: 16/9;
        position: relative;
        margin: 0 auto 0 0;
        border-radius: 15px;
    }

    main.homepage .histoire-section .bloc-images .img3 {
        width: 40%;
        height: auto;
        aspect-ratio: 5/3.5;
        position: absolute;
        top: 60%;
        right: 20px;
        transform: translateY(-50%);
        border-radius: 15px;
    }
}

@media screen and (max-width: 499px) {
    main.homepage .histoire-section {
        padding: 50px 0;
    }
}

@media only screen 
    and (max-device-height: 430px) 
    and (orientation: landscape) {
        main.homepage .histoire-section {
            padding: 50px 0;
        }
}


/*
 * Programme Section
 * ----------------
 */

main.homepage .programme-section {
    background-color: var(--color-sec-blanccasse);
    padding: 90px 0;
}

main.homepage .programme-section .content {
    text-align: center;
}

main.homepage .programme-section .content .title {
    font-family: var(--font-calligraphie-greatvibes);
    font-size: 3.5rem;
    color: var(--color-ui-rose);
    margin-bottom: 40px;
}

main.homepage .programme-section .content .desc {
    font-family: var(--font-elegante-garamond);
    font-size: 1.3rem;
    color: var(--color-ui-rose);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.3;
    text-align: center !important;
}

main.homepage .programme-section .programme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 50px;
}

main.homepage .programme-section .programme-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

main.homepage .programme-section .programme-item .icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

main.homepage .programme-section .programme-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

main.homepage .programme-section .programme-item .hour {
    font-family: var(--font-calligraphie-greatvibes);
    font-size: 1.6rem;
    color: var(--color-ui-rose);
    margin: 0;
}

main.homepage .programme-section .programme-item .event {
    font-family: var(--font-calligraphie-greatvibes);
    font-size: 2rem;
    color: var(--color-ui-rose);
    margin: 0;
}

/* Media Queries Programme Section */
@media screen and (max-width: 575px) {
    main.homepage .programme-section .content {
        padding: 0 20px;
    }
}

@media screen and (max-width: 499px) {
    main.homepage .programme-section {
        padding: 50px 0;
    }

    main.homepage .programme-section .programme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }
}

@media only screen 
    and (max-device-height: 430px) 
    and (orientation: landscape) {
        main.homepage .programme-section {
            padding: 50px 0;
        }
}

/*
 * Infos Section
 * ----------------
 */

main.homepage .infos-section {
    background-color: var(--color-sec-vertclair);
    padding: 50px 0;
}

main.homepage .infos-section .content {
    margin: 0 auto;
    background-color: rgba(168, 184, 165, 0.4);
    border-radius: 15px;
    padding: 70px 120px;
}

main.homepage .infos-section .content .title {
    font-family: var(--font-calligraphie-greatvibes);
    font-size: 3rem;
    color: var(--color-typo-vert);
    margin-bottom: 40px;
    text-align: left;
    line-height: 1.1;
}

main.homepage .infos-section .content .text-content {
    margin-bottom: 30px;
}

main.homepage .infos-section .content .text-content p {
    font-family: var(--font-elegante-garamond);
    font-size: 1.3rem;
    color: var(--color-typo-vert);
    line-height: 1.3;
    margin-bottom: 20px;
}

main.homepage .infos-section .content .text-content p:last-child {
    margin-bottom: 0;
}

/* Media Queries Infos Section */
@media screen and (max-width: 991px) {
    main.homepage .infos-section .content {
        padding: 70px;
    }
}

@media screen and (max-width: 767px) {
    main.homepage .infos-section .content {
        padding: 40px;
    }
}

@media screen and (max-width: 499px) {
    main.homepage .infos-section {
        padding: 20px 0 !important;
    }
}

@media only screen 
    and (max-device-height: 430px) 
    and (orientation: landscape) {
        main.homepage .infos-section {
            padding: 20px 0 !important;
        }
}

/*
 * RSVP Section
 * ----------------
 */

main.homepage .rsvp-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 90px 0;
}

main.homepage .rsvp-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

main.homepage .rsvp-section .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

main.homepage .rsvp-section .content .subtitle {
    font-family: var(--font-elegante-garamond);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 50px;
}

main.homepage .rsvp-section .content .title {
    font-family: var(--font-calligraphie-greatvibes);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--white);
    margin-bottom: 50px;
}

/* Media Queries RSVP Section */
@media screen and (max-width: 499px) {
    main.homepage .rsvp-section {
        padding: 70px 0 !important;
    }
}
