/* Variables et reset */
:root {
    --yodea-orange: #FF6B00;
    --yodea-blue: #00A0E3;
    --background-light: #F5F5F5;
    --text-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Navigation principale */
.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #EEEEEE;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

/* Styles du bouton burger */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--yodea-orange);
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* En-tête responsive */
.site-header {
    background: linear-gradient(to bottom, var(--background-light) 50%, #ffffff 100%);
    padding: 20px 0;
}

.nav-item {
    position: relative;
    padding: var(--space-sm) 0;
}

/* Style pour l'élément actif */
.nav-item-active .nav-link {
    color: var(--yodea-orange);
}

/* Effet spécial pour l'élément actif - ajoute une ligne en dessous */
.nav-item-active .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--yodea-orange);
    transform: scaleX(1); /* La ligne est toujours visible pour l'élément actif */
}

/* Style de base pour les liens */
.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    transition: color var(--transition-normal) var(--smooth-timing);
    position: relative;
}
/* En-tête du site */
.site-header {
    background: linear-gradient(to bottom, var(--background-light) 50%, #ffffff 100%);
    padding: 40px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-section {
    position: relative;
    margin-bottom: 40px;
}


.tagline {
    color: var(--yodea-blue);
    font-size: 24px;
}

.bandeau {
    height: 300px;
    background-image: url('banner.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* Sections de catégories */
.category-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.category-header {
    border-bottom: 2px solid var(--yodea-orange);
    padding-bottom: 5px;
    margin-bottom: 30px;
}

.category-title {
    color: var(--yodea-orange);
    font-size: 28px;
    font-weight: normal;
}

.category-subtitle {
    color: var(--text-gray);
    font-size: 24px;
    font-weight: normal;
}

/* Grilles de produits */
.books-grid, .apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}

.book-card {
    text-align: center;
}

.book-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.book-title {
    color: var(--yodea-blue);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.book-price {
    font-size: 14px;
}

.book-status {
    color: #FF0000;
    font-style: italic;
}

/* Apps spécifiques */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Image de l'application */
.app-card img.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Titre de l'application */
.app-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

/* Plateforme */
.app-platform {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 8px;
}

/* Prix */
.app-price {
    color: var(--yodea-orange);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
}

/* Badge App Store */
.app-store-badge {
    width: 120px;
    height: 40px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.app-store-badge:hover {
    opacity: 0.8;
}

/* Pied de page */
.site-footer {
    border-top: 1px solid #EEEEEE;
    padding: 20px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    color: var(--text-gray);
    font-size: 12px;
}

/* Media Queries */
@media (max-width: 768px) {
    .category-title {
        font-size: 24px;
    }
    
    .category-subtitle {
        font-size: 20px;
    }
    
    .books-grid, .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }
    .bandeau{
        height: 110px;
    }
}
/* Media Queries */
@media (max-width: 768px) {
    /* Ajustements du menu pour mobile */
    .burger-menu {
        display: block;
        z-index: 100;
    }

    /* Animation du burger en croix quand le menu est ouvert */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Menu mobile */
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    /* Ajustements du bandeau pour mobile */
    .bandeau {
        padding-top: 50%; /* Ratio d'aspect 2:1 pour mobile */
    }

    /* Ajustements texte pour mobile */
    .logo-section {
        text-align: center;
    }

    .tagline {
        font-size: 20px;
    }
}

