/* ============================================
   HORIZONS NOUVEAUX - Styles
   ============================================ */

.horizons-nouveaux {
    position: relative;
    width: 100%;
}

/* Header avec titre et étoile */
.horizons-header {
    text-align: center;
    margin-bottom: 60px;
}

.horizons-header__text {
    display: inline-block;
    position: relative;
}

.horizons-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.horizons-title {
    font-size: 38px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.horizons-star {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.horizons-star img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Grille des catégories (3 colonnes par défaut, s'adapte automatiquement) */
.horizons-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Sur desktop, forcer 3 colonnes maximum */
@media (min-width: 992px) {
    .horizons-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

.horizons-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.horizons-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.horizons-category-card__title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.horizons-category-card__image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizons-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.horizons-category-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    border-radius: 8px;
}


.horizons-category-card__description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Bouton */
.horizons-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.horizons-button {
    display: inline-block;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background-color: transparent;
    border: 1px solid #999;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.horizons-button:hover {
    background-color: #333;
    color: #FFFFFF;
    border-color: #333;
    text-decoration: none;
}

.horizons-no-categories {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Responsive */
@media (max-width: 991.98px) {
    .horizons-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .horizons-title {
        font-size: 32px;
    }

    .horizons-star img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 767.98px) {
    .horizons-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .horizons-header {
        margin-bottom: 40px;
    }

    .horizons-subtitle {
        font-size: 16px;
    }

    .horizons-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    .horizons-category-card {
        padding: 25px 15px;
    }

    .horizons-category-card__image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .horizons-category-card__title {
        font-size: 18px;
    }

    .horizons-category-card__description {
        font-size: 13px;
    }
}

