/*
PAGE D'ACCUEIL
*/

/*
annière Pleine Largeur
*/
.contenu-banniere {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -2rem;
    margin-bottom: 3.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#devanture {
    width: 100%;
    height: 420px;
    object-fit: cover;
    filter: brightness(0.5);
}

.contenu-banniere h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 950px;
    text-align: center;
    color: #ffffff !important;
    font-size: 3.8rem !important;
    margin: 0 !important;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.contenu-banniere h1 span {
    color: #d4a359;
    display: inline-block;
}

/*
Grille des Catégories
*/
main h2 {
    font-size: 2.2rem !important;
    color: #1a1a1a !important;
    text-align: center;
    margin-bottom: 2.5rem !important;
}

.category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 3rem auto;
}

/* 
Cartes générées dynamiquement
*/
a.category-name {
    text-decoration: none !important;
    color: inherit;
    display: flex;
}

.img_title-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.category-name:hover .img_title-container {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: #d4a359;
}

.img_title-container img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.img_title-container span {
    font-size: 1.8rem;
    color: #c89a4b;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    font-weight: bold;
}

.img_title-container p {
    font-size: 1.05rem;
    color: #475569;
    margin: 0;
    line-height: 1.3;
}

/*
Responsive Design
*/

/* IPAD / TABLETTES (769px à 1024px) */
@media (max-width: 1024px) {
    #devanture {
        height: 320px;
    }

    .contenu-banniere h1 {
        font-size: 2.8rem !important;
    }

    .category {
        gap: 1.5rem;
    }

    .img_title-container {
        width: 220px;
    }
}

/* MOBILES (< 768px) */
@media (max-width: 768px) {
    .contenu-banniere {
        margin-top: -1rem;
        margin-bottom: 2rem;
    }

    #devanture {
        height: 240px;
    }

    .contenu-banniere h1 {
        font-size: 1.9rem !important;
        width: 95%;
    }

    main h2 {
        font-size: 1.5rem !important;
    }

    .category {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .img_title-container {
        width: 100%;
        max-width: 320px;
    }
}