/* Styles de la page d'accueil — extraits du template pour cache HTTP */

/* ===== Alert Banner ===== */
.alert-banner {
    background: linear-gradient(90deg, var(--im-accent) 0%, var(--im-accent-dark) 100%);
    padding: 0.75rem 1rem;
    text-align: center;
    animation: slideDown 0.5s ease;
}

.alert-content {
    font-weight: 600;
    font-size: 1.1rem;
    color: white !important;
}

.alert-content i {
    margin-right: 0.5rem;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== Hero Carousel ===== */
.hero-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.hero-carousel .carousel-item {
    position: relative;
    height: 550px;
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--im-accent) 0%, var(--im-accent-dark) 100%);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
}

.hero-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-price-new {
    color: #4ade80;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-price-old {
    color: #fca5a5;
    text-decoration: line-through;
    font-size: 1.5rem;
    margin-left: 1rem;
}

.hero-btn {
    background: linear-gradient(135deg, var(--im-primary) 0%, var(--im-primary-dark) 100%);
    border: none;
    padding: 15px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.hero-carousel .carousel-indicators {
    bottom: 30px;
}

.hero-carousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators li.active {
    width: 35px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--im-primary) 0%, #48BCE2 100%);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    opacity: 1;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev { left: 20px; }
.hero-carousel .carousel-control-next { right: 20px; }

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ===== Welcome Hero (no promos) ===== */
.welcome-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 500px;
    overflow: hidden;
}

.welcome-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.welcome-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 700px;
}

.welcome-subtitle {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.welcome-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.95;
}

.welcome-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.welcome-btn-primary {
    background: linear-gradient(135deg, var(--im-primary) 0%, var(--im-primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(20, 97, 181, 0.4);
}

.welcome-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(5px);
}

.welcome-btn:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--im-bg) 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--im-text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--im-text-muted);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--im-primary) 0%, #48BCE2 100%);
    border-radius: var(--im-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.category-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 280px;
    }
}

/* ===== Why Choose Us Section ===== */
.why-us-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--im-primary) 0%, var(--im-primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.why-us-content {
    position: relative;
    z-index: 1;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-us-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.why-us-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--im-accent) 0%, var(--im-accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.why-us-icon i {
    font-size: 2rem;
    color: white;
}

.why-us-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.why-us-text {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* ===== Brands Section ===== */
.brands-section {
    padding: 4rem 0;
    background: var(--im-bg);
    overflow: hidden;
}

.brands-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-carousel {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scroll-brands 30s linear infinite;
    width: max-content;
}

.brands-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.brand-logo {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-link:hover .brand-logo {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 4rem 0;
    background: white;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.2);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: #78350f;
    margin-bottom: 1.5rem;
}

.cta-btn {
    background: linear-gradient(135deg, var(--im-primary) 0%, var(--im-primary-dark) 100%);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(20, 97, 181, 0.4);
    color: white;
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-carousel .carousel-item {
        height: 450px;
    }

    .welcome-hero {
        height: auto;
        min-height: 100vh;
        padding: 70px 0 30px 0; /* padding-top for navbar height + small margin */
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .welcome-hero img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .welcome-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 1rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-title,
    .welcome-title {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 1.5rem;
        padding: 10px 25px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        display: none;
    }

    .welcome-buttons {
        flex-direction: column;
        align-items: center;
    }

    .welcome-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ===== Catalogue CTA Section ===== */
.catalogue-cta-section {
    padding: 0;
    background: linear-gradient(135deg, #0f4c81 0%, var(--im-primary) 50%, #1e7bd9 100%);
    position: relative;
    overflow: hidden;
}

.catalogue-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.catalogue-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.catalogue-cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.catalogue-cta-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--im-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.catalogue-cta-icon i {
    font-size: 2rem;
    color: white;
}

.catalogue-cta-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
}

.catalogue-cta-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.catalogue-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--im-accent) 0%, var(--im-accent-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.catalogue-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.catalogue-cta-btn i {
    transition: transform 0.3s ease;
}

.catalogue-cta-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .catalogue-cta-container {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .catalogue-cta-content {
        flex-direction: column;
    }

    .catalogue-cta-text h2 {
        font-size: 1.5rem;
    }

    .catalogue-cta-btn {
        width: 100%;
        justify-content: center;
    }
}
