/* ====================================
   Home & Products - Cartes produits et page d'accueil
   ==================================== */

/* Product Cards */
.product-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    padding: 11px;
    margin: 0 0 16px;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    border-color: rgba(33, 189, 208, 0.38);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.product-card__media {
    flex: 0 0 112px;
    max-width: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__media img {
    max-width: 100%;
    max-height: 112px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: none;
}

.product-card__body {
    flex: 1 1 260px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--text-heading);
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
}

.product-card__title a:hover {
    color: var(--primary-dark);
}

.product-card__badge--disabled {
    color: #c62828;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 6px;
}

/* ====================================
   Produits indisponibles / redirigés
   Style subtil pour démarquer visuellement
   ==================================== */
.product-card--unavailable {
    position: relative;
    opacity: 0.75;
    border-color: #e0e0e0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.product-card--unavailable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.015) 10px,
        rgba(0, 0, 0, 0.015) 20px
    );
    border-radius: 14px;
    pointer-events: none;
    z-index: 0;
}

.product-card--unavailable > * {
    position: relative;
    z-index: 1;
}

.product-card--unavailable:hover {
    opacity: 0.85;
    border-color: #d0d0d0;
    transform: none;
    box-shadow: none;
}

.product-card--unavailable .product-card__media img {
    filter: grayscale(30%);
    opacity: 0.85;
}

.product-card--unavailable .product-card__title a {
    color: #666;
}

.product-card--unavailable .product-card__badge--replaced {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    margin-left: 6px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 1px solid rgba(230, 81, 0, 0.2);
}

.product-card--unavailable .product-card__badge--replaced::before {
    content: '↪';
    font-size: 0.9em;
}

.product-card__excerpt {
    color: var(--text-body);
    font-size: 0.86rem;
    line-height: 1.5;
}

.product-card__lot {
    display: inline-block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.product-card__actions {
    flex: 0 0 200px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    align-self: stretch;
}

.product-card__price-wrapper {
    align-self: flex-end;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card__price-wrapper .product-card__discount-tag {
    align-self: flex-end;
}

.product-card__link--inline {
    align-self: stretch;
}

.product-card__button-stack {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    width: auto;
}

.product-card__button-stack .product-card__link {
    width: 130px;
}

.product-card__button-stack .add_to_cart {
    width: 130px;
    justify-content: center;
    box-sizing: border-box;
    min-height: 30px;
}

.product-card .add_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 26px 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    background-image: url('/images/cart.png');
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: right 9px center;
}

.product-card .add_to_cart:hover,
.product-card .add_to_cart:focus {
    background-image: url('/images/cart.png');
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: right 9px center;
}

.product-card .add_to_cart:hover {
    background-color: var(--primary-color);
    color: #0c2b3f;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(33, 189, 208, 0.28);
}

.product-card .add_to_cart:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.product-card .add_to_cart[name="indispo"],
.product-card .add_to_cart[value="Indispo"] {
    border-color: rgba(176, 188, 205, 0.8);
    color: rgba(137, 149, 171, 0.9);
    background-color: transparent;
    box-shadow: none;
    cursor: not-allowed;
    background-image: none;
}

.product-card .add_to_cart[name="indispo"]:hover,
.product-card .add_to_cart[value="Indispo"]:hover {
    transform: none;
    background-color: transparent;
    color: rgba(137, 149, 171, 0.9);
    box-shadow: none;
    background-image: none;
}

.product-card__price {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-heading);
}

.product-card__price--primary {
    color: var(--primary-dark);
}

.product-card__price--promo {
    color: #b72a2a;
}

.product-card__discount-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(33, 189, 208, 0.18);
    color: #0c2b3f;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.product-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--primary-dark);
    background: transparent;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.74rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 30px;
    width: 100%;
    box-sizing: border-box;
}

.product-card__link:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(41, 84, 145, 0.24);
    text-decoration: none;
}

.product-card__link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Optimisation mobile pour les cartes produits */
@media (max-width: 720px) {
    .product-card {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        margin: 0 0 12px;
    }

    .product-card__media {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .product-card__media img {
        max-height: 140px;
    }

    .product-card__body {
        flex: 1 1 auto;
        min-width: 100%;
        width: 100%;
    }

    .product-card__title {
        font-size: 0.95rem;
    }

    .product-card__excerpt {
        font-size: 0.82rem;
    }

    .product-card__actions {
        flex: 0 0 auto;
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .product-card__price-wrapper {
        align-self: center;
        text-align: left;
        order: -1;
        flex: 1;
    }

    .product-card__price {
        font-size: 1.05rem;
    }

    .product-card__button-stack {
        margin-top: 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        width: auto;
    }

    .product-card__button-stack .product-card__link {
        width: auto;
        padding: 6px 14px;
        white-space: nowrap;
    }

    .product-card__button-stack .add_to_cart {
        width: auto;
        padding: 6px 28px 6px 14px;
        white-space: nowrap;
    }
}

@media (max-width: 860px) {
    .product-card {
        flex-direction: column;
        align-items: stretch;
    }

    .product-card__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .product-card__cta .add_to_cart {
        width: 100%;
    }

    .product-card__media {
        margin: 0 auto;
    }
}

/* ============================================
   Home Sections - Séparateurs Premium
   Design moderne avec effet de profondeur
   ============================================ */
.home-section {
    margin-bottom: 0;
    padding-bottom: 0;
    position: relative;
}

/* Conteneur du séparateur avec espacement généreux */
.home-section::after {
    content: '';
    display: block;
    position: relative;
    width: 100%;
    height: 80px;
    margin-top: 40px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(241, 245, 249, 0.5) 30%,
        rgba(241, 245, 249, 0.8) 50%,
        rgba(241, 245, 249, 0.5) 70%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 15%,
        black 85%,
        transparent 100%
    );
}

/* Ligne décorative avec dégradé animé */
.home-section::before {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 400px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(33, 189, 208, 0.15) 10%,
        rgba(33, 189, 208, 0.4) 30%,
        rgba(41, 84, 145, 0.5) 50%,
        rgba(33, 189, 208, 0.4) 70%,
        rgba(33, 189, 208, 0.15) 90%,
        transparent 100%
    );
    border-radius: 2px;
    z-index: 1;
}

/* Effet de lueur subtile derrière la ligne */
.home-section > *:last-child::after {
    content: '';
    display: block;
    height: 0;
}

@media (max-width: 1024px) {
    .home-section::after {
        height: 60px;
        margin-top: 30px;
    }
    
    .home-section::before {
        bottom: 30px;
        width: 70%;
        max-width: 300px;
    }
}

@media (max-width: 720px) {
    .home-section::after {
        height: 50px;
        margin-top: 24px;
    }
    
    .home-section::before {
        bottom: 25px;
        width: 50%;
        max-width: 180px;
        height: 1px;
    }
}

/* Dernière section : pas de séparateur */
.home-section:last-of-type {
    margin-bottom: 0;
}

.home-section:last-of-type::after,
.home-section:last-of-type::before {
    display: none;
}

.home-heading {
    margin: 32px 0 18px;
    color: var(--text-heading);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media (max-width: 720px) {
    .home-heading {
        margin: 20px 0 12px;
        font-size: 1.2rem;
    }
}

.home-heading:first-of-type {
    margin-top: 0;
}

.home-heading--sub {
    font-size: 1.32rem;
    font-weight: 600;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 44px;
}

/* Conserver 4 colonnes même sur très grands écrans */
@media (min-width: 1800px) {
    .home-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
}

/* 3 colonnes sur tablettes */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

/* 2 colonnes sur mobiles */
@media (max-width: 767px) {
    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

.home-grid:last-of-type {
    margin-bottom: 0;
}

.home-card {
    background: var(--surface-strong);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 11px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 767px) {
    .home-card {
        padding: 8px;
        gap: 6px;
        border-radius: 10px;
    }
}

.home-card:hover {
    transform: translateY(-1px);
    border-color: rgba(33, 189, 208, 0.38);
    box-shadow: var(--shadow-sm);
}

.home-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
}

.home-card__media img {
    width: auto;
    max-width: 100%;
    max-height: 140px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: none;
}

@media (max-width: 767px) {
    .home-card__media {
        min-height: 100px;
        padding: 6px;
    }
    .home-card__media img {
        max-height: 100px;
        border-radius: 4px;
    }
}

.home-card__title {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text-heading);
}

@media (max-width: 767px) {
    .home-card__title {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

.home-card__title a {
    color: inherit;
    text-decoration: none;
}

.home-card__title a:hover {
    color: #295491;
}

.home-card__category {
    margin: 0;
    font-size: 0.78rem;
    color: rgba(68, 81, 111, 0.92);
}

@media (max-width: 767px) {
    .home-card__category {
        font-size: 0.68rem;
    }
}

.home-card__category a {
    color: var(--primary-dark);
    font-style: italic;
    text-decoration: none;
    font-size: inherit;
}

.home-card__category a:hover {
    text-decoration: underline;
}

.home-card__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.home-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
}

.home-card__price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-heading);
}

@media (max-width: 767px) {
    .home-card__price {
        font-size: 0.85rem;
    }
}

.home-card__price--primary {
    color: #295491;
}

.home-card__price--promo {
    color: #b72a2a;
}

/* Indicateur "En stock" vert à gauche */
.home-card__stock {
    display: inline-flex;
    align-items: center;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    margin-right: auto;
}

.home-card__stock::before {
    content: "●";
    margin-right: 4px;
    font-size: 0.5rem;
}

.home-card__discount-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(33, 189, 208, 0.18);
    color: #0c2b3f;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Badges pour produits alternatifs (stock, populaire) */
.home-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.home-card__badge--stock {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.home-card__badge--popular {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

/* ====================================
   Section Déstockage - Liquidation
   ==================================== */
.home-section--destockage {
    margin: 0;
    padding: 0;
}

.destockage-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.destockage-header h1 {
    margin: 0;
    color: var(--text-heading);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.destockage-subtitle {
    color: rgba(68, 81, 111, 0.8);
    font-size: 0.95rem;
    font-weight: 400;
}

.home-card--destockage {
    position: relative;
}

/* Badge Déstockage - style cohérent avec les autres badges */
.home-card__badge--destockage {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.home-card__badge--destockage.critique {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.home-card__badge--destockage.haute {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.home-card__badge--destockage.moyenne {
    background: linear-gradient(135deg, #21bdd0 0%, #0891b2 100%);
    color: white;
}

/* Pricing Déstockage */
.home-card__pricing--destockage {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.home-card__prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
}

.home-card__price--old {
    text-decoration: line-through;
    color: rgba(68, 81, 111, 0.5);
    font-size: 0.82rem;
    font-weight: 400;
}

.home-card__price--liquidation {
    color: #059669;
    font-size: 1rem;
    font-weight: 700;
}

/* CTA Déstockage - même style que .home-card__cta */
.home-card__cta--destockage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--primary-dark);
    background: transparent;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.74rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    min-height: 30px;
    width: 100%;
    box-sizing: border-box;
}

.home-card__cta--destockage:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(41, 84, 145, 0.24);
    text-decoration: none;
}

@media (max-width: 767px) {
    .destockage-header h1 {
        font-size: 1.2rem;
    }
    
    .home-card__price--liquidation {
        font-size: 0.85rem;
    }
}

.home-card--alt {
    position: relative;
}

@media (max-width: 767px) {
    .home-card__discount-tag {
        font-size: 0.65rem;
        padding: 2px 7px;
    }
}

.home-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (max-width: 767px) {
    .home-card__cta {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

.home-card__cta:hover {
    background: var(--primary-color);
    color: #0c2b3f;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(33, 189, 208, 0.28);
    text-decoration: none;
}

.home-card__cta:focus-visible {
    outline: 2px solid #295491;
    outline-offset: 2px;
}

/* Home Activity */
.home-activity {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 44px;
}

.home-activity:last-of-type {
    margin-bottom: 0;
}

.home-activity__item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(41, 84, 145, 0.12);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-activity__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(17, 39, 88, 0.15);
}

.home-activity__thumb {
    width: 100%;
    min-height: 120px;
    max-height: 160px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 8px;
}

.home-activity__thumb img {
    width: auto;
    max-width: 100%;
    max-height: 140px;
    height: auto;
    object-fit: contain;
}

.home-activity__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.home-activity__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2547;
}

.home-activity__title a {
    color: inherit;
    text-decoration: none;
}

.home-activity__title a:hover {
    color: #295491;
}

.home-activity__price {
    font-size: 0.85rem;
    color: #21bdd0;
    font-weight: 700;
}

.home-activity__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.home-activity__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(33, 189, 208, 0.15);
    color: #0c2b3f !important;
    font-weight: 600;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-activity__cta:hover {
    background: #21bdd0;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Home Category */
.home-category {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 32px 0 0;
}

.home-category:last-of-type {
    margin-bottom: 0;
}

.home-category__card {
    display: flex;
    gap: 18px;
    align-items: stretch;
    width: 100%;
    height: 180px;
    box-sizing: border-box;
    border: 1px solid rgba(41, 84, 145, 0.12);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(18, 43, 97, 0.08);
    padding: 14px;
    overflow: hidden;
}

.home-category__media {
    display: block;
}

.home-category__card > a {
    flex: 0 0 140px;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.home-category__card > a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-category__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.home-category__body h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-category__body p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-body);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.home-category__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #295491 !important;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-end;
    margin-top: auto;
}

.home-category__link:hover {
    text-decoration: underline;
}

/* ====================================
   Bannière Promo Responsive
   ==================================== */

/* Grille de bannières */
.promo-banners-grid {
    display: grid;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

/* 1 bannière = pleine largeur */
.promo-banners-grid--1 {
    grid-template-columns: 1fr;
}

/* 2 bannières = 60% / 40% */
.promo-banners-grid--2 {
    grid-template-columns: 1.5fr 1fr;
}

/* 3+ bannières = égales */
.promo-banners-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.promo-banners-grid--4 {
    grid-template-columns: repeat(2, 1fr);
}

/* Bannière individuelle */
.promo-banner {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Tailles forcées */
.promo-banner--large {
    grid-column: span 2;
}

.promo-banner--small .promo-banner__picture img {
    max-height: 200px;
}

.promo-banner__link {
    display: block;
    width: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.promo-banner__picture {
    display: block;
    width: 100%;
}

.promo-banner__picture img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hauteur réduite pour grilles */
.promo-banners-grid--2 .promo-banner:last-child .promo-banner__picture img,
.promo-banners-grid--3 .promo-banner__picture img {
    max-height: 280px;
}

.promo-banner__link:hover .promo-banner__picture img {
    transform: scale(1.02);
}

/* Overlay optionnel avec texte */
.promo-banner__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 32px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.promo-banner__content {
    flex: 1;
}

.promo-banner__tag {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
}

.promo-banner__title {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.promo-banner__subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

.promo-banner__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    /* Glassmorphism Apple style */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.promo-banner__cta:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.promo-banner__cta:active {
    transform: translateY(-1px) scale(0.98);
    background: rgba(255, 255, 255, 0.2);
}

.promo-banner__cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.promo-banner__cta:hover svg {
    transform: translateX(5px);
}

/* Position variants pour l'overlay */
/* TOP - positions en haut */
.promo-banner__overlay--top-left,
.promo-banner__overlay--top-center,
.promo-banner__overlay--top-right {
    top: 0;
    bottom: auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.promo-banner__overlay--top-left {
    align-items: flex-start;
    justify-content: flex-start;
}

.promo-banner__overlay--top-center {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.promo-banner__overlay--top-right {
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: row-reverse;
}

/* MIDDLE - positions au milieu */
.promo-banner__overlay--center-left,
.promo-banner__overlay--center,
.promo-banner__overlay--center-right {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
}

.promo-banner__overlay--center-left {
    align-items: center;
    justify-content: flex-start;
    left: 0;
    right: auto;
    width: auto;
    max-width: 60%;
    border-radius: 0 12px 12px 0;
}

.promo-banner__overlay--center {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 70%;
    border-radius: 12px;
}

.promo-banner__overlay--center-right {
    align-items: center;
    justify-content: flex-end;
    flex-direction: row-reverse;
    left: auto;
    right: 0;
    width: auto;
    max-width: 60%;
    border-radius: 12px 0 0 12px;
}

/* BOTTOM - positions en bas (défaut ajusté) */
.promo-banner__overlay--bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

.promo-banner__overlay--bottom-center {
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.promo-banner__overlay--bottom-right {
    /* Défaut - maintient le style par défaut */
    align-items: flex-end;
    justify-content: flex-end;
}

/* Ajustements contenu pour positions centrées */
.promo-banner__overlay--top-center .promo-banner__content,
.promo-banner__overlay--center .promo-banner__content,
.promo-banner__overlay--bottom-center .promo-banner__content {
    text-align: center;
}

.promo-banner__overlay--center .promo-banner__cta,
.promo-banner__overlay--bottom-center .promo-banner__cta {
    margin-top: 12px;
}

/* Responsive - Tablette */
@media (max-width: 900px) {
    .promo-banner {
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .promo-banner__overlay {
        padding: 20px 24px;
        flex-direction: column;
        align-items: flex-start;
        box-sizing: border-box;
    }
    
    /* Reset positions en tablette - garder en bas */
    .promo-banner__overlay--top-left,
    .promo-banner__overlay--top-center,
    .promo-banner__overlay--top-right,
    .promo-banner__overlay--center-left,
    .promo-banner__overlay--center,
    .promo-banner__overlay--center-right {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    }
    
    .promo-banner__content {
        max-width: 100%;
        width: 100%;
    }
    
    .promo-banner__title {
        font-size: 1.25rem;
    }
    
    .promo-banner__subtitle {
        font-size: 0.88rem;
    }
    
    .promo-banner__cta {
        max-width: 100%;
        width: auto;
        align-self: flex-start;
        padding: 10px 20px;
        box-sizing: border-box;
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    /* Grille en colonne sur mobile */
    .promo-banners-grid--2,
    .promo-banners-grid--3,
    .promo-banners-grid--4 {
        grid-template-columns: 1fr;
    }
    
    .promo-banner--large {
        grid-column: span 1;
    }
    
    .promo-banner {
        border-radius: 10px;
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    .promo-banner__overlay {
        padding: 14px 16px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .promo-banner__tag {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .promo-banner__title {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .promo-banner__subtitle {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .promo-banner__cta {
        font-size: 0.85rem;
        padding: 10px 18px;
        gap: 8px;
        max-width: 100%;
        box-sizing: border-box;
        white-space: nowrap;
    }
    
    .promo-banner__cta svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }
}

/* Mode sans overlay (image seule) */
.promo-banner--simple .promo-banner__overlay {
    display: none;
}

/* Animation au chargement */
@keyframes promoBannerSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promo-banner {
    animation: promoBannerSlideIn 0.6s ease-out;
}

/* Section sans séparateur (pour bannière) */
.home-section--no-separator::after,
.home-section--no-separator::before {
    display: none;
}


/* ====================================
   Category Section - Pages de catégories
   ==================================== */
.category-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-soft, #e5e7eb);
}

.category-section:last-child {
    border-bottom: none;
    margin-bottom: 1rem;
}

.category-section__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #21bdd0;
    display: inline-block;
}

.category-section__more {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.category-section__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #21bdd0;
    background: rgba(33, 189, 208, 0.08);
    border: 1px solid rgba(33, 189, 208, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-section__link:hover {
    background: #21bdd0;
    color: #fff;
    border-color: #21bdd0;
    transform: translateX(4px);
    text-decoration: none;
}

.category-section__link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.category-section__link:hover svg {
    transform: translateX(4px);
}

.category-section__empty {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    font-style: italic;
}

/* Responsive pour category-section */
@media (max-width: 768px) {
    .category-section__title {
        font-size: 1.25rem;
    }
    
    .category-section__more {
        justify-content: center;
    }
    
    .category-section__link {
        width: 100%;
        justify-content: center;
    }
}

/* ====================================
   Thème Éco-responsable
   Couleurs naturelles et badges écologiques
   ==================================== */

/* Variables éco */
:root {
    --eco-primary: #22c55e;
    --eco-primary-dark: #16a34a;
    --eco-primary-light: #86efac;
    --eco-secondary: #065f46;
    --eco-bg-light: #f0fdf4;
    --eco-bg-gradient: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
}

/* Bannière héro éco-responsable */
.eco-hero {
    position: relative;
    padding: 3rem 2rem;
    margin: -20px -10px 2rem;
    background: var(--eco-bg-gradient);
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}

.eco-hero__background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.eco-hero__leaves {
    position: absolute;
    inset: 0;
}

.eco-hero__leaf {
    position: absolute;
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    color: rgba(34, 197, 94, 0.12);
    animation: leafFloat 6s ease-in-out infinite;
}

.eco-hero__leaf--1 {
    width: 35px;
    height: 35px;
    top: 15%;
    right: 12%;
    animation-delay: 0s;
}

.eco-hero__leaf--2 {
    width: 28px;
    height: 28px;
    top: 45%;
    right: 22%;
    animation-delay: 2s;
    transform: rotate(45deg);
}

.eco-hero__leaf--3 {
    width: 45px;
    height: 45px;
    bottom: 15%;
    right: 8%;
    animation-delay: 4s;
    transform: rotate(-30deg);
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.eco-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.eco-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--eco-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.eco-hero__badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.eco-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--eco-secondary);
    margin: 0 0 0.75rem;
    border: none !important;
}

.eco-hero__subtitle {
    font-size: 1.1rem;
    color: #166534;
    margin: 0 0 1.5rem;
    opacity: 0.9;
}

.eco-hero__stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.eco-hero__stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.eco-hero__stat-icon {
    font-size: 1.25rem;
}

.eco-hero__stat-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--eco-secondary);
}

/* Section thème éco */
.category-section.theme-eco {
    background: linear-gradient(180deg, transparent 0%, rgba(240, 253, 244, 0.5) 100%);
    padding: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 16px;
}

.category-section.theme-eco .category-section__title {
    border-bottom-color: var(--eco-primary);
    color: var(--eco-secondary);
}

/* Carte produit éco */
.home-card--eco {
    position: relative;
    border: 1px solid rgba(34, 197, 94, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.home-card--eco:hover {
    border-color: var(--eco-primary);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.15);
}

.home-card__eco-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--eco-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.home-card__eco-badge svg {
    width: 12px;
    height: 12px;
}

/* Catégorie éco */
.home-card--eco .home-card__category a {
    color: var(--eco-primary) !important;
}

.home-card--eco .home-card__category a:hover {
    color: var(--eco-primary-dark) !important;
}

/* Bouton CTA éco */
.home-card__cta--eco {
    border-color: var(--eco-primary) !important;
    color: var(--eco-primary) !important;
}

.home-card__cta--eco:hover {
    background: var(--eco-primary) !important;
    color: white !important;
    border-color: var(--eco-primary) !important;
}

/* Lien "voir tous" éco */
.category-section__link--eco {
    color: var(--eco-primary) !important;
    background: rgba(34, 197, 94, 0.08) !important;
    border-color: rgba(34, 197, 94, 0.2) !important;
}

.category-section__link--eco:hover {
    background: var(--eco-primary) !important;
    color: white !important;
    border-color: var(--eco-primary) !important;
}

/* Responsive éco-hero */
@media (max-width: 768px) {
    .eco-hero {
        padding: 2rem 1rem;
        margin: -20px -10px 1.5rem;
    }
    
    .eco-hero__title {
        font-size: 1.75rem;
    }
    
    .eco-hero__subtitle {
        font-size: 1rem;
    }
    
    .eco-hero__stats {
        gap: 0.75rem;
    }
    
    .eco-hero__stat {
        padding: 0.5rem 1rem;
    }
    
    .eco-hero__stat-text {
        font-size: 0.75rem;
    }
    
    .eco-hero__leaf--1,
    .eco-hero__leaf--2,
    .eco-hero__leaf--3 {
        display: none;
    }
    
    .category-section.theme-eco {
        padding: 1rem;
        margin-left: -10px;
        margin-right: -10px;
    }
}
