/*
 * app-pages.css — compléments spécifiques aux pages (formulaires
 * de recherche, tuiles de plateformes, accueil). Le design system
 * générique (cartes, boutons, formulaires, tableaux, pagination)
 * vit dans theme.css : ne remettre ici que le spécifique.
 */

/* ── Tuiles « Options de recherche » (pages view des plateformes) ── */
.prestashop-view .btn-outline-primary,
.woocommerce-view .btn-outline-primary,
.shopify-view .btn-outline-primary {
    padding: 1.25rem 1rem;
    border-radius: var(--radius) !important;
    line-height: 1.35;
    font-weight: 600;
    color: var(--ink) !important;
}

.prestashop-view .btn-outline-primary i,
.woocommerce-view .btn-outline-primary i,
.shopify-view .btn-outline-primary i {
    color: var(--brand);
    transition: transform 0.2s ease;
}

.prestashop-view .btn-outline-primary:hover i,
.woocommerce-view .btn-outline-primary:hover i,
.shopify-view .btn-outline-primary:hover i {
    transform: scale(1.1);
}

/* ── Sélecteurs de type de produit (cartes radio) ────────────── */
.prestashop-products .type-option,
.prestashop-products .variation-option,
.shopify-products .type-option {
    transition: all 0.2s ease;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius) !important;
    cursor: pointer;
}

.prestashop-products .type-option:hover,
.prestashop-products .variation-option:hover,
.shopify-products .type-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand) !important;
}

.prestashop-products .type-option.active,
.prestashop-products .variation-option.active,
.shopify-products .type-option.active {
    border-color: var(--brand) !important;
    background: var(--brand-soft);
    box-shadow: 0 0 0 4px var(--brand-ring);
}

/* ── Page d'accueil ──────────────────────────────────────────── */
.site-index .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-soft);
    color: var(--brand-deep);
    border: 1px solid #f3e3bb;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.site-index .hero-title {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    line-height: 1.15;
}

.site-index .hero-title .accent {
    color: var(--brand-dark);
}

.cms-card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cms-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--brand) !important;
}

.cms-card .cms-logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.cms-card .cms-logo img {
    max-height: 64px;
    max-width: 160px;
    object-fit: contain;
}

.feature-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-tile .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}
