/******* Section header *******/

.home-presentation {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.text-presentation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.text-presentation {
    text-align: center;
    margin-bottom: 6rem;
}

.text-presentation h1 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.text-presentation p {
    font-size: 1.5rem;
}

.img-home-container {
    flex: 1;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.img-home {
    width: 100%;
    height: 100%;
    background-size: 130%;
    background-repeat: no-repeat;
    transform: translateY(10%);
}

/******* Section présentation *******/

.full-height {
    display: flex;
    flex-direction: column;
    height: auto;
    margin: 2rem;
    padding-bottom: 2rem;
}

.about-section, .reason-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--dark-gray);
    font-family: 'Montserrat', sans-serif;
    padding: 0 1rem;
}

.about-text strong {
    color: var(--dark-green);
}

.about-text em {
    font-style: italic;
    color: var(--dark-gray);
}

.reason-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.reason-title {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 2rem;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin-bottom: 2rem;
}

.reason-card {
    display: flex;
    flex-direction: column;
    width: 16rem;
    overflow: hidden;
}

.reason-image {
    width: 100%;
    height: 15rem;
}

.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.reason-text {
    text-align: center;
}

.reason-text h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.reason-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
}


/******* Section des produits *******/

h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.grid-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 1.25rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.category {
    margin-bottom: 2.5rem;
}

.card-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title h3 {
    margin: 0;
    font-size: 1.5rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
    color: var(--light-green);
    text-decoration: none;
    transition: color 0.3s;
}

.link-arrow .arrow {
    margin-left: 0.5rem;
}

.link-arrow:hover {
    color: var(--dark-green);
}

/******* Vue Tablette *******/

@media (max-width: 1024px) and (min-width: 768px) {
    .home-presentation {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .img-home-container {
        order: -1;
        width: 90%;
        height: 250px;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .img-home {
        width: 100%;
        height: 100%;
        background-size: contain;
    }

    .text-presentation-container {
        padding: 10px;
    }

    .text-presentation h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .text-presentation p {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .card-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .reason-card {
        width: auto;
    }

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


/******** Vue mobile *******/

@media (max-width: 768px) {
    .home-presentation {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .img-home-container {
        order: -1;
        width: 90%;
        height: 200px;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .img-home {
        width: 100%;
        height: 100%;
        background-size: contain;
    }

    .text-presentation-container {
        padding: 10px;
    }

    .text-presentation h1 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .text-presentation p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .reason-title {
        font-size: 1.5rem;
    }

    .reason-card {
        width: 100%;
    }

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