/* ============================================================
   STYLES MODERNES POUR PAGE D'ACCUEIL
   ============================================================ */

/* Variables CSS pour la personnalisation */
:root {
    --home-primary-color: #007cba;
    --home-secondary-color: #6c757d;
    --home-accent-color: #28a745;
    --home-bg-color: #f8f9fa;
    --home-text-color: #333;
    --home-border-radius: 0.75rem;
    --home-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --home-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --home-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   SLIDER D'ARTICLES MODERNE
   ============================================================ */

.home-slider {
    margin-bottom: 4rem;
    position: relative;
}

.home-slider .slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--home-border-radius);
    box-shadow: var(--home-shadow);
    background: white;
}

.home-slider .slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-slider .slider-slide {
    min-width: 100%;
    position: relative;
}

.home-slider .slider-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: brightness(0.8);
}

.home-slider .slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 3rem 2rem 2rem;
    backdrop-filter: blur(10px);
}

.home-slider .slider-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.home-slider .slider-content h2 a {
    color: white;
    text-decoration: none;
    transition: var(--home-transition);
}

.home-slider .slider-content h2 a:hover {
    color: #ffc107;
    text-shadow: 0 2px 8px rgba(255, 193, 7, 0.5);
}

.home-slider .slider-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 0;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.home-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--home-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--home-primary-color);
}

.home-slider .slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--home-shadow-hover);
}

.home-slider .slider-nav.prev {
    left: 2rem;
}

.home-slider .slider-nav.next {
    right: 2rem;
}

.home-slider .slider-dots {
    text-align: center;
    margin-top: 2rem;
}

.home-slider .slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--home-transition);
    border: 2px solid transparent;
}

.home-slider .slider-dot.active {
    background: white;
    border-color: var(--home-primary-color);
    transform: scale(1.2);
}

.home-slider .slider-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

/* ============================================================
   GRID D'ARTICLES MODERNE
   ============================================================ */

.articles-grid-2-section,
.articles-grid-3-section {
    margin-bottom: 4rem;
}

.articles-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.articles-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.article-card {
    background: white;
    border-radius: var(--home-border-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
    transition: var(--home-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--home-shadow-hover);
    border-color: var(--home-primary-color);
}

.article-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--home-transition);
}

.article-card:hover img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--home-text-color);
}

.article-card h3 a {
    color: var(--home-text-color);
    text-decoration: none;
    transition: var(--home-transition);
}

.article-card h3 a:hover {
    color: var(--home-primary-color);
}

.article-card p {
    color: var(--home-secondary-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--home-secondary-color);
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: auto;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: var(--home-primary-color);
}

/* ============================================================
   SECTIONS PAR CATÉGORIES MODERNE
   ============================================================ */

.category-section {
    margin-bottom: 5rem;
    background: white;
    border-radius: var(--home-border-radius);
    padding: 2rem;
    box-shadow: var(--home-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.cs-headline {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--home-primary-color);
    position: relative;
}

.cs-headline::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--home-accent-color);
}

.cs-headline__content {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--home-primary-color);
    text-decoration: none;
    transition: var(--home-transition);
    display: inline-block;
}

.cs-headline__content:hover {
    color: var(--home-accent-color);
    transform: translateX(5px);
}

.columns-container {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 3rem;
    align-items: start;
}

.cs-divider-vertical {
    background: linear-gradient(to bottom, transparent, var(--home-secondary-color), transparent);
    width: 1px;
    height: 100%;
    opacity: 0.3;
}

.cs-entry {
    margin-bottom: 2.5rem;
    transition: var(--home-transition);
}

.cs-entry:hover {
    transform: translateY(-2px);
}

.cs-entry__thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--home-border-radius) - 0.25rem);
    transition: var(--home-transition);
}

.cs-entry:hover .cs-entry__thumbnail img {
    transform: scale(1.02);
}

.cs-entry__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    line-height: 1.4;
    color: var(--home-text-color);
}

.cs-entry__title a {
    color: var(--home-text-color);
    text-decoration: none;
    transition: var(--home-transition);
}

.cs-entry__title a:hover {
    color: var(--home-primary-color);
}

.cs-entry__excerpt {
    color: var(--home-secondary-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cs-entry__meta {
    font-size: 0.85rem;
    color: var(--home-secondary-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.cs-entry__meta a {
    color: var(--home-primary-color);
    text-decoration: none;
    transition: var(--home-transition);
}

.cs-entry__meta a:hover {
    color: var(--home-accent-color);
}

/* ============================================================
   PRODUITS E-COMMERCE MODERNE
   ============================================================ */

.products-slider {
    margin-bottom: 4rem;
}

.products-slider .slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--home-border-radius);
    box-shadow: var(--home-shadow);
    background: white;
}

.products-slider .slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-slider .slider-slide {
    min-width: 100%;
    padding: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--home-border-radius);
    overflow: hidden;
    box-shadow: var(--home-shadow);
    transition: var(--home-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--home-shadow-hover);
    border-color: var(--home-primary-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    background: var(--home-bg-color);
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--home-transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--home-text-color);
}

.product-content h3 a {
    color: var(--home-text-color);
    text-decoration: none;
    transition: var(--home-transition);
}

.product-content h3 a:hover {
    color: var(--home-primary-color);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--home-accent-color);
    margin-bottom: 1.5rem;
}

.product-actions {
    margin-top: auto;
}

.product-actions .btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: calc(var(--home-border-radius) - 0.25rem);
    transition: var(--home-transition);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-products {
    margin-bottom: 5rem;
    background: white;
    border-radius: var(--home-border-radius);
    padding: 2rem;
    box-shadow: var(--home-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.category-products .section-title {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--home-primary-color);
    position: relative;
}

.category-products .section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--home-accent-color);
}

.category-products .section-title a {
    color: var(--home-primary-color);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: var(--home-transition);
}

.category-products .section-title a:hover {
    color: var(--home-accent-color);
    transform: translateX(5px);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--home-text-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--home-primary-color), var(--home-accent-color));
    border-radius: 2px;
}

/* ============================================================
   TEXTE PERSONNALISÉ
   ============================================================ */

.home-custom-text {
    margin-bottom: 4rem;
}

.custom-text-content {
    background: white;
    padding: 3rem;
    border-radius: var(--home-border-radius);
    box-shadow: var(--home-shadow);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.custom-text-content h2,
.custom-text-content h3 {
    color: var(--home-primary-color);
    margin-bottom: 1.5rem;
}

.custom-text-content p {
    color: var(--home-secondary-color);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1200px) {
    .articles-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .articles-grid-2,
    .articles-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .columns-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cs-divider-vertical {
        display: none;
    }
    
    .home-slider .slider-content h2 {
        font-size: 2rem;
    }
    
    .home-slider .slider-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .home-slider .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .home-slider .slider-nav.prev {
        left: 1rem;
    }
    
    .home-slider .slider-nav.next {
        right: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .article-card-content,
    .product-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .category-section,
    .category-products {
        padding: 1.5rem;
    }
    
    .custom-text-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-slider .slider-slide {
        padding: 1rem;
    }
    
    .home-slider .slider-content h2 {
        font-size: 1.6rem;
    }
    
    .home-slider .slider-content p {
        font-size: 1rem;
    }
    
    .article-card-content,
    .product-content {
        padding: 1rem;
    }
    
    .category-section,
    .category-products {
        padding: 1rem;
    }
    
    .custom-text-content {
        padding: 1.5rem;
    }
}
