main {
    background: var(--background);
}

section .section-container {
    max-width: 1112px;
}

h2 i {
    color: var(--secondary-brown);
}


/* Hero Section */
#heroSection .section-container {
    background-image: url("https://ronronmalin.fr/wp-content/uploads/2025/07/chat-gris-avec-mur-monochrome-derriere-elle-1.webp");
}

#heroSection h1 {
    max-width: 80%;
}


/* Sticky Section */
#stickySection .section-container {
    padding-bottom: 0;
}

#stickySection .cards-container {
    margin-top: 8px;
}

#stickySection .cards-container > a {
    width: 100%;
    background: white;
    border-radius: var(--hight-radius);
    box-shadow: var(--small-shadow);
    overflow: hidden;
}

#stickySection a:first-of-type {
    position: relative;
}

#stickySection .cards-container > a:hover {
    transform: translateY(-5px);
    opacity: 0.9;
    box-shadow: var(--medium-shadow);
}

#stickySection .cards-container > a article {
    display: flex;
}

#stickySection .cards-container > a:last-of-type article {
    flex-direction: row-reverse;
}

#stickySection a figure {
    width: 40%;
}

#stickySection a:first-of-type figure {
    width: 100%;
    z-index: initial;
    height: 200px;
}

#stickySection a .content {
    padding: 16px;
    width: 60%;
    position: relative;
}

#stickySection a:first-of-type .content {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.80), 65%, transparent);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 16px;
}

#stickySection a .content div:after {
    content: " ";
    position: absolute;
    top: 60%;
    left: 16px;
    background: var(--secondary-brown);
    height: 4px;
    width: 75px;
    border-radius: 50px;
}

#stickySection a:first-of-type .content div:after {
    height: 110px;
    width: 4px;
    top: 72px;
}

#stickySection a:first-of-type .content > div {
    padding-left: 12px;
    margin-top: auto;
}

#stickySection a h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 16px 0;
    transition: all 0.3s ease;
}

#stickySection a:first-of-type h3 {
    margin-bottom: 0;
    color: var(--background);
    -webkit-line-clamp: 2;
}

#stickySection a:hover h3 {
    color: var(--secondary-brown);
}

#stickySection a:first-of-type:hover h3 {
    color: var(--tertiary-bg);
}

#stickySection p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: black;
    margin-top: 8px;
}

#stickySection a:first-of-type p {
    color: white;
    margin-top: 4px;
}


/* Articles Section */
#articles .cards-container {
    margin: 8px 0 24px 0;
}

#articles .cards-container a {
    width: 100%;
}

#articles .cards-container a:hover {
    transform: translate(5px , -5px);
}

#articles article {
    display: flex;
    gap: 16px;
    background: white;
    border-radius: var(--hight-radius);
    box-shadow: var(--small-shadow);
    padding: 16px;
    transition: all 0.3s ease;
}

#articles .cards-container a:hover article {
    box-shadow: var(--medium-shadow);
}

#articles article figure {
    width: calc(35% - 8px);
    height: 110px;
    border-radius: var(--medium-radius);
    overflow: hidden;
}

#articles article .content {
    width: calc(65% - 8px);
}

article .categories {
    display: flex;
    gap: 8px;
}

article .categories span {
    font-size: 10px;
    text-transform: uppercase;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 5px;
}

#articles article .content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 16px 0;
    transition: all 0.3s ease;
}

#articles .cards-container a:hover h3 {
    color: var(--secondary-brown);
}

#articles article time {
    display: flex;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    color: var(--green-dark);
}

#articles article time:after {
    content: " ";
    position: absolute;
    bottom: 20px;
    left: 0;
    background: var(--secondary-brown);
    height: 4px;
    width: calc(100% - 130px);
    border-radius: 50px;
}

#articles .section-container > a {
    margin-left: auto;
    margin-right: auto;
}


/* Catégories Section */
#categories .section-container {
    padding: 0 0 calc(0rem - 8px) 0;
}

#categories h2 {
    margin: 0 16px 8px 16px;
}

#categories .cards-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 16px 8px 16px;
}

#categories .cards-container::-webkit-scrollbar {
    display: none;
}

#categories a {
    min-width: 200px;
    max-width: 200px;
}

#categories article {
    border-radius: var(--medium-radius);
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: var(--small-shadow);
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s ease;
}

#categories article:hover {
    scale: 1.05;
    box-shadow: var(--medium-shadow);
}

#categories article h3 {
    padding: 8px;
    color: black;
    transition: all 0.3s ease;
}

#categories article:hover h3 {
    color: var(--secondary-brown);
}

#categories article figure img {
    height: 144px;
    object-position: center;
}


/* About Section */
#about {
    background: var(--background);
}

#about .section-container > div {
    background: white;
    padding: 16px;
    border-radius: var(--hight-radius);
    box-shadow: var(--small-shadow);
}

#about h2 {
    margin-bottom: 8px;
}

#about h2 i {
    color: var(--secondary-brown);
}

#about .text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: justify;
}

#about .text strong {
    font-weight: 700;
    color: var(--green-dark);
}

#about .imgs-container {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

#about .imgs-container figure:nth-of-type(1) {
    margin-top: 32px;
}

#about .imgs-container figure:nth-of-type(2) {
    margin: 16px 0;
}

#about .imgs-container figure:last-of-type {
    margin-top: 0;
    margin-bottom: 32px;
}

#about .imgs-container img {
    border-radius: var(--medium-radius);
    box-shadow: var(--medium-shadow);
}



    /* Pad Version */
    @media screen and (min-width: 768px)  {
        /* Sticky Section */
        #stickySection .cards-container {
            flex-direction: row;
            flex-wrap: wrap;
        }

        #stickySection .cards-container > a:first-of-type {
            width: 100%;
        }

        #stickySection .cards-container > a {
            width: calc(50% - 8px);
        }

        #stickySection .cards-container > a article,
        #stickySection .cards-container > a:last-of-type article {
            flex-direction: column;
        }

        #stickySection a:first-of-type figure {
            height: 296px;
        }

        #stickySection a figure {
            width: 100%;
            height: 224px;
        }

        #stickySection a .content {
            width: 100%;
        }

        #stickySection a .content div::after {
            top: 57%;
        }

        #stickySection a:first-of-type .content div::after {
            height: 96px;
            top: 184px;
        }

        #stickySection a h3 {
            margin: 8px 0 16px 0;
        }


        /* Articles Section */
        #articles .section-container {
            position: relative;
        }

        #articles .cards-container {
            margin: 32px 0 0 0;
        }

        #articles article figure {
            height: 120px;
            max-width: 120px;
        }

        #articles article .content {
            width: auto;
        }

        article .categories span {
            font-size: 11px;
        }

        #articles article .content h3 {
            margin: 8px 0 16px 0;
        }

        #articles article time {
            padding-top: 16px;
            font-size: 14px;
            justify-content: left;
        }

        #articles article time::after {
            top: 0;
            width: 80px;
            height: 4px;
        }

        #articles .section-container > a {
            margin-left: 0;
            margin-right: 0;
            position: absolute;
            top: 4rem;
            right: 40px;
            height: 40px;
        }


        /* Catégories Section */
        #categories .section-container {
            padding: 0 0 calc(0 - 8px) 0;
        }

        #categories h2 {
            margin: 0 40px 8px 40px;
        }

        #categories .cards-container {
            padding-left: 40px;
            padding-right: 40px;
        }

        #categories a {
            min-width: 248px;
            max-width: 248px;
        }

        #categories article figure img {
            height: 172px;
        }


        /* About Section */
        #about .section-container > div {
            padding: 24px;
        }

        #about .imgs-container {
            gap: 16px;
        }
    }



        /* Desktop Version */
        @media screen and (min-width: 992px) {
            /* Hero Section */
            #heroSection p {
                margin: 32px 0 128px 0;
            }


            /* Sticky Section */
            #stickySection a .content,
            #stickySection a:first-of-type .content {
                padding: 24px;
            }

            #stickySection a .content div::after {
                left: 24px;
                top: 54%;
            }

            #stickySection a:first-of-type .content > div {
                padding-left: 8px;
            }

            #stickySection a:first-of-type .content div::after {
                height: 110px;
                top: 240px;
            }

            #stickySection a figure {
                height: 248px;
            }

            #stickySection a:first-of-type figure {
                height: 376px;
            }

            #stickySection a:first-of-type .categories {
                padding-left: 8px;
            }

            #stickySection a h3 {
                margin: 8px 0 24px 0;
            }

            #stickySection a:first-of-type h3 {
                padding-left: 8px;
            }

            #stickySection a:first-of-type p {
                margin-top: 8px;
                padding-left: 8px;
            }


            /* Articles Section */
            #articles article figure {
                height: 144px;
                max-width: 144px;
            }

            article .categories span {
                font-size: 12px;
                padding: 4px 8px;
            }

            #articles article .content h3 {
                margin: 16px 0 24px 0;
            }

            #articles article time {
                padding-top: 24px;
                font-size: 16px;
            }

            #articles .section-container > a {
                top: 5rem;
                right: 56px;
            }


            /* Catégories Section */
            #categories .section-container {
                padding: 0 56px;
            }

            #categories h2 {
                margin: 0 0 8px 0;
            }

            #categories .cards-container {
                padding: 0;
                overflow: visible;
            }

            #categories a {
                width: 100%;
                min-width: unset;
                max-width: unset;
            }

            #categories article figure img {
                height: 176px;
            }


            /* About Section */
            #about .section-container > div {
                padding: 32px;
            }

            #about .imgs-container figure:nth-of-type(1) {
                width: 100%;
                height: 260px;
            }

            #about .imgs-container figure:nth-of-type(2) {
                height: 250px;
                margin-top: 100px;
                margin-bottom: 0;
                width: 100%;
            }

            #about .imgs-container figure:last-of-type {
                height: 275px;
                margin-bottom: 0;
                width: 100%;
            }
        }