:root {
    --blue-dark: #001f3f;
    --gold: #d4af37;
    --bg-soft: #f7f9fc;
}

/* Base */
body {
    font-family: "Inter", sans-serif;
    background-color: #f5f5f5;
    color: #111827;
}

/* Navbar boutique */
.wc-shop-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.wc-shop-navbar .navbar-brand {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: -0.5px;
}

.wc-shop-navbar .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #4b5563;
}

.wc-shop-navbar .nav-link.active {
    color: var(--blue-dark);
}

.wc-shop-navbar .btn-outline-primary {
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Hero accueil boutique */
.wc-shop-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, #0b2d52 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
}

.wc-shop-hero h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}

.wc-shop-hero p {
    opacity: 0.95;
}

.wc-shop-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.wc-shop-hero-img {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    min-height: 220px;
}

.wc-shop-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Hero pages internes (cours, livres, etc.) */
.wc-page-hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, #0b2d52 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
}

.wc-page-hero h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
}

.wc-page-hero p {
    opacity: 0.95;
    max-width: 720px;
}

/* Titres sections */
.wc-section-title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.75rem;
}

.wc-section-subtitle {
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 0.95rem;
}

.wc-section-alt {
    background-color: var(--bg-soft);
}

/* Cartes produits (index / catalogues) */
.wc-product-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wc-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 31, 63, 0.10);
    border-color: rgba(0, 31, 63, 0.18);
}

.wc-product-thumb {
    position: relative;
    background: #f3f4f6;
    padding-top: 60%;
}

.wc-product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wc-product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    background: rgba(0, 31, 63, 0.85);
    color: #fff;
}

.wc-product-body {
    padding: 1rem 1rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wc-product-title {
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.25rem;
}

.wc-product-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.wc-product-desc {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.wc-product-footer {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.wc-product-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--blue-dark);
}

.wc-product-price small {
    font-weight: 500;
    color: #6b7280;
}

.wc-product-btn {
    border-radius: 999px;
    font-size: 0.85rem;
}

/* Ruban catégories */
.wc-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #374151;
    text-decoration: none;
}

.wc-category-pill i {
    font-size: 0.9rem;
}

.wc-category-pill:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--blue-dark);
}

/* Bandeau info */
.wc-shop-info-strip {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.wc-shop-info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.wc-shop-info-item i {
    color: var(--blue-dark);
}

/* Barre de filtres (cours, recherches) */
.wc-filter-bar {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    margin-top: -1.5rem;
    position: relative;
    z-index: 5;
}

.wc-filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.wc-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 0.85rem;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wc-filter-pill:hover {
    background: #f3f4f6;
    color: var(--blue-dark);
}

.wc-filter-pill.active {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: var(--blue-dark);
}

.wc-filter-pill i {
    font-size: 0.9rem;
}

/* Message "aucun résultat" (filtres articles / cours / livres) */
.wc-no-results {
    color: #6b7280;
}

.wc-no-results i {
    font-size: 1.8rem;
    color: #c7d2fe;
}

/* Cartes cours (cours.html, listes) */
.wc-course-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 1.25rem 1.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wc-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 31, 63, 0.09);
    border-color: rgba(0, 31, 63, 0.15);
}

.wc-course-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.wc-course-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--blue-dark);
}

.wc-course-meta {
    font-size: 0.8rem;
    color: #6b7280;
}

.wc-course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.wc-course-tag {
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    background: #f3f5f9;
    color: #334155;
}

.wc-course-body {
    font-size: 0.9rem;
    color: #4b5563;
}

.wc-course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.wc-course-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--blue-dark);
}

.wc-course-price small {
    font-weight: 500;
    color: #6b7280;
}

.wc-course-btn {
    border-radius: 999px;
    font-size: 0.85rem;
}

.pd-gallery-thumbs {
    display: flex;
    flex-direction: row;
    gap: .6rem;
    overflow-x: auto;
    padding-bottom: .5rem;
}
.pd-thumb {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, transform .15s ease;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--blue-dark); box-shadow: 0 0 0 2px rgba(0,31,63,.15); }
.pd-thumb-swatch { width: 100%; height: 100%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:.8rem; }
.pd-main-image-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-main-image-wrap img { width: 100%; max-height: 460px; object-fit: contain; }
.pd-size-chip {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .85rem;
    background: #fff;
    cursor: pointer;
    transition: all .15s ease;
}
.pd-size-chip:hover { border-color: var(--blue-dark); }
.pd-size-chip.active { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.pd-size-chip.disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
@media (min-width: 992px) {
    .pd-gallery-thumbs {
        flex-direction: column;
        overflow-x: visible;
        overflow-y: auto;
        max-height: 460px;
        position: sticky;
        top: 90px;
    }
}

/* Responsive */
@media (max-width: 767.98px) {
    .wc-shop-hero {
        padding: 2.75rem 0 2.5rem;
    }

    .wc-shop-hero h1 {
        font-size: 1.7rem;
    }

    .wc-page-hero {
        padding: 2rem 0 1.75rem;
    }

    .wc-page-hero h1 {
        font-size: 1.6rem;
    }
}
