/* ===== Index/Homepage Styles (Page-Specific) ===== */
/* Common styles (nav, body, etc.) are in common.css */

/* Navigation override for Homepage */
nav {
    background: transparent;
    position: absolute;
    box-shadow: none;
    border-bottom: none;
}

/* Hero Section */
.hero {
    background: #1a1a1a;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background-1, .hero-background-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out;
}

.hero-background-1 {
    z-index: 2;
    opacity: 0.3;
}

.hero-background-2 {
    z-index: 1;
    opacity: 0;
}

/* Removed CSS animations slideshow-odd and slideshow-even in favor of JS */

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,40 Q300,80 600,40 T1200,40 L1200,120 L0,120 Z" fill="rgba(248,249,250,0.9)"/></svg>');
    background-repeat: repeat-x;
    background-size: 600px 100px;
    animation: wave 15s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(600px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.cta-button {
    background: #ff6b6b;
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    animation: fadeInScale 0.8s ease-out 0.4s both;
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.secondary-button {
    background: transparent;
    border: 2px solid white;
    margin-left: 1rem;
}

.secondary-button:hover {
    background: white;
    color: #667eea;
}

/* Featured Products Section */
.featured-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 1rem auto 0;
}

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-emoji {
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translate(-100%, -100%); }
    100% { transform: translate(100%, 100%); }
}

.product-image-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.image-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-weight: bold;
}

.image-nav-btn:hover {
    background: white;
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 10;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

.product-button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.product-button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Categories Section */
.categories-section {
    padding: 5rem 2rem;
    background: white;
}

.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Conteneur pour chaque catégorie principale avec ses enfants */
.category-main-group {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f3f7 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e0e7ff;
    transition: all 0.3s ease;
}

.category-main-group:hover {
    border-color: #0066cc;
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.15);
}

/* Carte de catégorie principale */
.main-category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
    padding: 2rem !important;
    border-radius: 12px !important;
    cursor: pointer;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.main-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
}

.main-category-card .category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.main-category-card .category-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

/* Conteneur des sous-catégories */
.subcategories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-left: 1rem;
}

/* Carte de sous-catégorie */
.sub-category-card {
    background: white !important;
    border: 2px solid #e0e7ff !important;
    border-radius: 10px !important;
    padding: 1.5rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.sub-category-card::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 1.5rem;
    height: 2px;
    background: #667eea;
}

.sub-category-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.sub-category-card .category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.sub-category-card .category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Conteneur des sous-sous-catégories */
.subsubcategories-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

/* Carte de sous-sous-catégorie */
.subsub-category-card {
    background: #fafafa !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.subsub-category-card::before {
    content: '↪';
    color: #764ba2;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.subsub-category-card:hover {
    background: white !important;
    border-color: #764ba2 !important;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.15);
    transform: translateX(4px);
}

.subsub-category-card .category-icon {
    font-size: 1.8rem;
    margin: 0;
}

.subsub-category-card .category-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    margin: 0;
}

/* Styles généraux des cartes */
.category-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f3f7 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: #0066cc;
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.category-card:hover .category-name {
    color: #0066cc;
}

/* Responsive */
@media (max-width: 768px) {
    .subcategories-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .category-main-group {
        padding: 1.5rem;
    }
    
    .main-category-card {
        padding: 1.5rem !important;
    }
    
    .main-category-card .category-icon {
        font-size: 2.5rem;
    }
    
    .main-category-card .category-name {
        font-size: 1.2rem;
    }
}



/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: #f8f9fa;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature p {
    color: #666;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 2rem;
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-section p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-form button:hover {
    background: #ff5252;
}

/* Footer */
footer {
    background: #222;
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-contact-info {
    line-height: 1.8;
}

.footer-contact-info a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-contact-info a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
    }
}

/* Carousel Section */
.carousel-section {
    padding: 4rem 2rem;
    background: white;
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    flex: 0 0 calc(25% - 0.75rem);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.carousel-item-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.carousel-item-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.carousel-item-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 4rem 2rem;
    }

    .cta-button {
        display: block;
        margin-bottom: 1rem;
    }

    .secondary-button {
        margin-left: 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== Hierarchical Dropdown Menu Styles ===== */

.dropdown-column {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.dropdown-column:not(:last-child) {
    border-right: 1px solid #eee;
    padding-right: 1rem;
}

.dropdown-column:not(:first-child) {
    padding-left: 1rem;
}

.dropdown-item.main-category {
    font-weight: 600;
    border-bottom: 1px solid #eee;
    color: #333;
    padding: 0.8rem 1.5rem !important;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.dropdown-item.main-category:hover {
    background: #f5f5f5;
}

.dropdown-item.subcategory {
    padding-left: 3rem !important;
    font-size: 0.95rem;
    color: #555;
    position: relative;
    padding: 0.6rem 1.5rem 0.6rem 3rem !important;
    margin-left: 0;
}

.dropdown-item.subcategory::before {
    content: '↳';
    position: absolute;
    left: 1.5rem;
    color: #667eea;
    font-weight: bold;
}

.dropdown-item.subcategory:hover {
    background: #f0f0f0;
}

.dropdown-item.subsubcategory {
    padding-left: 4.5rem !important;
    font-size: 0.9rem;
    color: #666;
    position: relative;
    padding: 0.5rem 1.5rem 0.5rem 4.5rem !important;
    margin-left: 0;
}

.dropdown-item.subsubcategory::before {
    content: '↪';
    position: absolute;
    left: 3rem;
    color: #764ba2;
    font-weight: bold;
}

.dropdown-item.subsubcategory:hover {
    background: #efefef;
}

/* Responsive styles for small screens */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .featured-section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .categories-section {
        padding: 3rem 1rem;
    }
    
    .category-main-group {
        padding: 1.5rem;
    }
}

@media (max-width: 450px) {
    body {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }
    
    nav {
        padding: 0.5rem 0;
        overflow: visible;
    }
    
    .nav-container {
        gap: 0.25rem;
        padding: 0 1rem;
    }
    
    .nav-logo-section {
        width: 100%;
        margin-bottom: 0;
    }
    
    .nav-logo-section img {
        height: 150px !important;
        margin: 0 0 -50px 0 !important;
        width: auto;
    }
    
    .nav-controls {
        width: 100%;
        justify-content: space-between;
        z-index: 20;
    }
    
    .hero {
        padding: 2rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .featured-section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .categories-section {
        padding: 2rem 1rem;
    }
    
    .category-main-group {
        padding: 1rem;
    }
}



/* Mobile Hero Buttons Alignment */
@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .secondary-button {
        margin-left: 0;
    }
}

/* Mobile Hero Buttons Alignment */
@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .secondary-button {
        margin-left: 0;
    }
}
