/* Import Google Fonts - Raleway */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #000000;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation principale */
.main-navigation {
    background-color: white;
    width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    overflow: visible;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: visible;
    position: relative;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-logo .logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    margin: 0;
}

/* Nouveau style pour le logo intégré dans le texte */
.logo-text-integrated {
    color: #333333;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 5;
}

.logo-part-before,
.logo-part-after {
    color: #333333;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
}

.logo-integrated {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    margin: 0 -8px;
    vertical-align: middle;
    z-index: 10;
    position: relative;
    transform: scale(1.2);
}

/* Style pour le nouveau logo principal */
.logo-main {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-main:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 2px solid transparent;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.nav-link:active,
.nav-link.active {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Titre principal */
.page-title {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    font-family: 'Raleway', sans-serif;
}

/* En-tête de page */
.page-header {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
}

.page-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
}

.stats-value {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}

/* Container principal centré - DÉFAUT pour toutes les pages */
.miniatures-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Container principal centré - SPÉCIFIQUE à la page d'accueil */
.page-wrapper.index-page .miniatures-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

/* Contenu principal avec padding */
.page-content {
    padding: 0 20px;
    flex: 1;
}

/* Wrapper principal pour les pages sans .page-content */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Container des catégories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Lien des catégories */
.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Container des skieurs */
.skieurs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Lien des cartes de skieurs */
.skieur-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Carte de skieur */
.skieur-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.skieur-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Photo du skieur */
.skieur-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    transition: border-color 0.3s ease;
}

.skieur-photo:hover {
    border-color: #007bff;
}

/* Placeholder pour photo manquante */
.skieur-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
    font-family: 'Raleway', sans-serif;
    border: 3px solid #ddd;
}

/* Nom du skieur */
.skieur-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
}

/* Pays du skieur */
.skieur-country {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

/* Description du skieur */
.skieur-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-family: 'Raleway', sans-serif;
    text-align: left;
}

/* Liens sociaux */
.skieur-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.social-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: 'Raleway', sans-serif;
}

.social-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 10px 15px;
    font-size: 0.85rem;
}

.social-link.website {
    background-color: #007bff;
}

/* Compteur de vidéos */
.video-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.video-count-text {
    font-size: 0.9rem;
    color: #000000;
    font-family: 'Raleway', sans-serif;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.video-count-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    font-family: 'Raleway', sans-serif;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Carte de catégorie */
.category-card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Bande colorée en haut de la carte - plus utilisée */
.category-header {
    display: none;
}

/* Nom de la catégorie */
.category-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
    font-family: 'Raleway', sans-serif;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5);
}

/* Description de la catégorie */
.category-description {
    font-size: 0.95rem;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.5;
    font-family: 'Raleway', sans-serif;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Tag de la catégorie */
.category-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    margin-bottom: 10px;
    font-family: 'Raleway', sans-serif;
}

/* Carte de miniature pour les vidéos */
.miniature-card {
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
    max-width: 100%;
}

.miniature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Carte de miniature pour les sponsors */
.sponsor-miniature-card {
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
    max-width: 100%;
}

.sponsor-miniature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Carte de miniature pour les skieurs */
.skieur-miniature-card {
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skieur-miniature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Carte de miniature pour les compétitions */
.competition-miniature-card {
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.competition-miniature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Carte de miniature spécifique pour les lieux */
.miniature-card.lieu-card {
    width: 280px !important;
    height: 140px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px !important;
    max-height: 140px !important;
    padding: 10px !important;
}

/* Styles spécifiques pour le contenu des lieux */
.miniature-card.lieu-card .miniature-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
    margin-top: 5px !important;
    line-height: 1.2 !important;
}

.miniature-card.lieu-card .miniature-content > div {
    margin-bottom: 5px !important;
}

.miniature-card.lieu-card .miniature-content > div > div {
    font-size: 10px !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
}

.miniature-card.lieu-card .categories-container {
    margin-top: 5px !important;
}

/* Lien des miniatures */
.miniature-link {
    display: block;
    text-decoration: none;
}

/* Images miniatures */
.miniature-image {
    width: 250px;
    height: 150px;
    border-radius: 6px;
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
    object-fit: cover;
    display: block;
}

.miniature-image:hover {
    border-color: #000000 !important;
}

/* Placeholder pour images manquantes */
.miniature-placeholder {
    width: 250px;
    height: 150px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 2px solid #ddd;
    color: #666;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    flex-direction: column;
    gap: 8px;
}

.placeholder-icon {
    font-size: 24px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 12px;
    opacity: 0.7;
}

/* Titre des vidéos */
.miniature-title {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    max-width: 250px;
    word-wrap: break-word;
    font-family: 'Raleway', sans-serif;
    flex-shrink: 0;
}

/* Zone de contenu principal */
.miniature-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Container des catégories */
.categories-container {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    max-width: 250px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Container des skieurs */
.skieurs-container {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    max-width: 250px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Container des sponsors */
.sponsors-container {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    max-width: 250px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-items: center;
}

/* Container des lieux */
.lieux-container {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    max-width: 250px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    align-items: center;
}

/* Bouton pour afficher plus de catégories */
.categories-expand-btn {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    background-color: #666;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    border: none;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.categories-expand-btn:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* Bouton pour afficher plus de skieurs */
.skieurs-expand-btn {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    background-color: #666;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    border: none;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    height: auto;
    vertical-align: top;
}

.skieurs-expand-btn:hover {
    background-color: #555;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Bouton pour afficher plus de sponsors */
.sponsors-expand-btn {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    background-color: #666;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    border: none;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    height: auto;
    vertical-align: top;
}

.sponsors-expand-btn:hover {
    background-color: #555;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Bouton pour afficher plus de lieux */
.lieux-expand-btn {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    background-color: #666;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    border: none;
    outline: none;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    height: auto;
    vertical-align: top;
}

.lieux-expand-btn:hover {
    background-color: #555;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Animation pour l'expansion de la carte */
.miniature-card.expanded {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

/* Lien des bulles de catégories */
.category-bubble-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Bulle de catégorie */
.category-bubble {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.category-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Lien des bulles de skieurs */
.skieur-bubble-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Bulle de skieur */
.skieur-bubble {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    color: white;
    background-color: #1a428a;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.skieur-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Lien des bulles de sponsors */
.sponsor-bubble-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Bulle de sponsor */
.sponsor-bubble {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    color: white;
    background-color: #a34405;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.sponsor-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Style spécial pour les studios */
.sponsor-bubble.studio-sponsor {
    background-color: #AD78B2;
}

/* Lien des bulles de lieux */
.lieu-bubble-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

/* Bulle de lieu */
.lieu-bubble {
    display: inline-block !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    font-family: 'Raleway', sans-serif !important;
    color: white !important;
    background-color: #009f70 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
    height: auto !important;
    width: auto !important;
    border: none !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
}

.lieu-bubble:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-logo .logo-text {
        font-size: 1.5rem;
    }

    .logo-text-integrated {
        font-size: 2.8rem;
    }

    .logo-integrated {
        width: 4.5rem;
        height: 4.5rem;
        transform: scale(1.1);
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo-main {
        height: 50px;
        max-width: 180px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .categories-grid,
    .skieurs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .skieur-photo,
    .skieur-photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .skieur-name {
        font-size: 1.2rem;
    }
    
    .miniatures-container {
        gap: 20px;
        padding: 10px;
    }
    
    .miniature-image,
    .miniature-placeholder {
        width: 200px;
        height: 120px;
    }
    
    .miniature-title {
        max-width: 200px;
        font-size: 13px;
    }
    
    .categories-container,
    .skieurs-container,
    .sponsors-container,
    .lieux-container {
        max-width: 200px;
    }
    
    .category-bubble,
    .skieur-bubble,
    .sponsor-bubble,
    .lieu-bubble {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Styles pour la page player */
.player-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    margin-bottom: 30px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    font-family: 'Raleway', sans-serif;
}

.video-info {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.video-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
    line-height: 1.3;
}

.video-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
}

.video-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Styles pour les métadonnées de vidéo */
.video-metadata-section {
    margin-top: 20px;
}

.metadata-title {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.metadata-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metadata-bubble-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.metadata-bubble {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    color: rgb(255, 255, 255);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.metadata-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Styles spécifiques pour chaque type de bulle */
.skieur-bubble {
    background-color: #1a428a;
}

.lieu-bubble {
    background-color: #009f70;
}

.sponsor-bubble {
    background-color: #8b1a4c;
}

.sponsor-bubble.studio-sponsor {
    background-color: #AD78B2;
}

.competition-bubble {
    background-color: #F44336;
}

/* Styles pour les descriptions des skieurs */
.skieur-description {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.skieur-description-name {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
}

.skieur-description-text {
    color: #363636;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.description-text {
    color: #363636;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.text-ellipsis {
    color: #999;
    font-weight: bold;
    font-size: 0.8rem;
    margin-top: 5px;
    display: inline-block;
    text-align: left;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.text-ellipsis:hover {
    color: #666;
}

.skieur-description-text.expanded,
.lieu-description-text.expanded,
.sponsor-description-text.expanded,
.description-text.expanded {
    display: block;
    -webkit-line-clamp: none;
    overflow-y: auto;
    max-height: 200px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.5);
}



/* Styles pour les descriptions des lieux */
.lieu-description {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.lieu-description-name {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
}

.lieu-description-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}



/* Styles pour les descriptions des sponsors */
.sponsor-description {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.sponsor-description-name {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
}

.sponsor-description-text {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Raleway', sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}



/* Responsive pour la page player */
@media (max-width: 768px) {
    .player-container {
        padding: 10px;
    }
    
    .video-info {
        padding: 20px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
    
    .video-metadata-section {
        margin-top: 15px;
    }
    
    .metadata-title {
        font-size: 0.9rem;
        gap: 5px;
    }
    
    .metadata-bubble {
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .skieur-description {
        margin-top: 15px;
        padding: 12px;
    }
    
    .skieur-description-name {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .skieur-description-text {
        font-size: 0.8rem;
    }
    
    .lieu-description {
        margin-top: 15px;
        padding: 12px;
    }
    
    .lieu-description-name {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .lieu-description-text {
        font-size: 0.8rem;
    }
    
    .sponsor-description {
        margin-top: 15px;
        padding: 12px;
    }
    
    .sponsor-description-name {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .sponsor-description-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .video-title {
        font-size: 1.3rem;
    }
    
    .video-categories {
        gap: 6px;
    }
    
    .metadata-bubbles {
        gap: 6px;
    }
    
    .metadata-bubble {
        padding: 2px 5px;
        font-size: 9px;
    }
    
    .metadata-title {
        font-size: 0.8rem;
        gap: 4px;
    }
    
    .skieur-description {
        margin-top: 10px;
        padding: 10px;
    }
    
    .skieur-description-name {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .skieur-description-text {
        font-size: 0.75rem;
    }
    
    .lieu-description {
        margin-top: 10px;
        padding: 10px;
    }
    
    .lieu-description-name {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .lieu-description-text {
        font-size: 0.75rem;
    }
    
    .sponsor-description {
        margin-top: 10px;
        padding: 10px;
    }
    
    .sponsor-description-name {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .sponsor-description-text {
        font-size: 0.75rem;
    }
}

/* Styles pour la page de catégorie individuelle */
.category-header-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.category-description-page {
    color: white;
    font-size: 1.1rem;
    margin: 15px auto;
    max-width: 800px;
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
}

.category-info {
    margin-top: 20px;
}

.category-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    font-family: 'Raleway', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.no-videos {
    text-align: center;
    color: white;
    padding: 50px 20px;
    font-family: 'Raleway', sans-serif;
}

.no-videos p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.back-section {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.back-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.back-link:hover {
    background-color: white;
    color: #000;
    transform: translateY(-2px);
}

/* Responsive pour la page de catégorie */
@media (max-width: 768px) {
    .category-description-page {
        font-size: 1rem;
    }
    
    .category-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Container des sponsors */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: start;
}

/* Lien des cartes de sponsors */
.sponsor-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Carte de sponsor */
.sponsor-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: block;
    width: 100%;
    min-height: 280px;
}

.sponsor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Logo du sponsor */
.sponsor-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    background: white;
    padding: 8px;
}

.sponsor-logo:hover {
    border-color: #007bff;
}

/* Placeholder pour logo manquant */
.sponsor-logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 10px;
    font-family: 'Raleway', sans-serif;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Nom du sponsor */
.sponsor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-family: 'Raleway', sans-serif;
}

/* Badge Studio */
.studio-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pays du sponsor */
.sponsor-country {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

/* Description du sponsor */
.sponsor-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: 'Raleway', sans-serif;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Liens du sponsor */
.sponsor-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.sponsor-link {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: 'Raleway', sans-serif;
}

.sponsor-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.sponsor-link.website {
    background-color: #007bff;
}

.sponsor-link.affiliate {
    background-color: #28a745;
}

.sponsor-link.facebook {
    background-color: #1877f2;
}

.sponsor-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.sponsor-link.tiktok {
    background-color: #000000;
}

/* Responsive pour les sponsors */
@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 10px;
    }
    
    .sponsor-logo,
    .sponsor-logo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .sponsor-name {
        font-size: 1.2rem;
    }
    
    .sponsor-links {
        gap: 6px;
    }
    
    .sponsor-link {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
}

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

/* Styles pour la page de sponsor individuel */
.sponsor-header-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.sponsor-header-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    object-fit: contain;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: white;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.sponsor-header-logo-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.studio-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #AD78B2, #7B1FA2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(76, 3, 124, 0.3);
}

.sponsor-header-country {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 10px auto;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.sponsor-header-description {
    color: white;
    font-size: 1.1rem;
    margin: 20px auto;
    max-width: 800px;
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
}

.sponsor-header-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.sponsor-info {
    margin-top: 20px;
}

.video-count-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive pour la page sponsor individuelle */
@media (max-width: 768px) {
    .sponsor-header-logo,
    .sponsor-header-logo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .sponsor-header-description {
        font-size: 1rem;
    }
    
    .sponsor-header-links {
        gap: 8px;
    }
    
    .studio-badge-large {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Styles pour la page de skieur individuel */
.skieur-header-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.skieur-header-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.skieur-header-photo:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.skieur-header-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    border: 4px solid rgba(255, 255, 255, 0.2);
    flex-direction: column;
    gap: 4px;
}

.skieur-header-country {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 10px auto;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.skieur-header-description {
    color: white;
    font-size: 1.1rem;
    margin: 20px auto;
    max-width: 800px;
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
}

.skieur-header-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.skieur-link {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: 'Raleway', sans-serif;
}

.skieur-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.skieur-link.website {
    background-color: #007bff;
}

.skieur-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 6px 12px;
    font-size: 0.75rem;
}



.skieur-info {
    margin-top: 20px;
}

/* Responsive pour la page skieur individuelle */
@media (max-width: 768px) {
    .skieur-header-photo,
    .skieur-header-photo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .skieur-header-description {
        font-size: 1rem;
    }
    
    .skieur-header-links {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    .skieur-link {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    
    .skieur-link.instagram {
        font-size: 0.8rem;
        padding: 7px 10px;
    }
    
    .page-stats {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .logo-text-integrated {
        font-size: 2.2rem;
    }

    .logo-integrated {
        width: 3.5rem;
        height: 3.5rem;
        transform: scale(1.0);
    }

    .logo-image {
        width: 30px;
        height: 30px;
    }
    
    .logo-main {
        height: 45px;
        max-width: 150px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .category-name,
    .skieur-name {
        font-size: 1.2rem;
    }
    
    .skieur-photo,
    .skieur-photo-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .miniature-image,
    .miniature-placeholder {
        width: 150px;
        height: 90px;
    }
    
    .miniature-title {
        max-width: 150px;
        font-size: 12px;
    }
    
    .categories-container,
    .skieurs-container,
    .sponsors-container,
    .lieux-container {
        max-width: 150px;
    }
    
    .category-bubble,
    .skieur-bubble,
    .sponsor-bubble,
    .lieu-bubble {
        font-size: 9px !important;
        padding: 2px 5px !important;
    }
}

/* Styles pour les lieux */
.lieux-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: min-content;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: start;
}

.lieu-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lieu-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: block;
    width: 100%;
    min-height: 280px;
}

.lieu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.lieu-icon-placeholder {
    font-size: 3rem;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}

.lieu-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-family: 'Raleway', sans-serif;
}

.lieu-region {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 6px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-style: italic;
}

.lieu-country {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.lieu-description {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    font-family: 'Raleway', sans-serif;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.lieu-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.lieu-link {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    font-family: 'Raleway', sans-serif;
}

.lieu-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.lieu-link.website {
    background-color: #007bff;
}

.lieu-link.affiliate {
    background-color: #28a745;
}

.lieu-link.affiliate2 {
    background-color: #17a2b8;
}

.lieu-link.map {
    background-color: #fd7e14;
}

/* Styles pour la page de lieu individuel */
.lieu-header-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.lieu-header-icon {
    font-size: 4rem;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.lieu-header-region {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 5px auto;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-style: italic;
}

.lieu-header-country {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 10px auto;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.lieu-header-description {
    color: white;
    font-size: 1.1rem;
    margin: 20px auto;
    max-width: 800px;
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
}

.lieu-header-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.lieu-info {
    margin-top: 20px;
}

/* Styles pour la carte Google Maps */
.lieu-map-section {
    width: 100%;
    margin: 30px 0;
    padding: 0 20px;
}

.map-title {
    color: white;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
}

.lieu-map-container {
    position: relative;
    width: 95%;
    max-width: none;
    height: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    background: #f0f0f0;
}

.lieu-map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Responsive pour les lieux */
@media (max-width: 768px) {
    .lieux-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 10px;
    }
    
    .lieu-icon-placeholder {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
    }
    
    .lieu-name {
        font-size: 1rem;
    }
    
    .lieu-links {
        gap: 4px;
    }
    
    .lieu-link {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .lieu-header-icon {
        font-size: 3rem;
        width: 120px;
        height: 120px;
    }
    
    .lieu-header-description {
        font-size: 1rem;
    }
    
    .lieu-header-links {
        gap: 8px;
    }
    
    .lieu-map-container {
        height: 300px;
        max-width: 100%;
    }
    
    .map-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .lieux-grid {
        grid-template-columns: 1fr;
    }
    
    .lieu-map-container {
        height: 250px;
        max-width: 100%;
    }
    
    .map-title {
        font-size: 1.3rem;
    }
    
    .lieu-map-section {
        margin: 20px auto;
        padding: 0 10px;
    }
}

/* Styles pour les vidéos recommandées */
.recommended-videos-section {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.recommended-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 25px;
    text-align: center;
}

/* Styles pour les contrôles de tri et la recherche */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    padding: 0 20px;
}

.sort-switch {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Raleway', sans-serif;
    color: white;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.sort-label {
    font-weight: 500;
    font-size: 14px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 15px;
    border: 2px solid #333;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    width: 400px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 5px;
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    color: white;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin-right: 10px;
    object-fit: cover;
    background: #333;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
}

.search-result-type {
    font-size: 12px;
    color: #999;
    text-transform: capitalize;
}

.search-loading {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive pour les contrôles de tri et recherche */
@media (max-width: 768px) {
    .sort-controls {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .search-input {
        width: 100%;
        max-width: 300px;
    }
    
    .sort-switch {
        gap: 10px;
    }
    
    .sort-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sort-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .sort-label {
        font-size: 12px;
    }
    
    .switch {
        transform: scale(0.8);
    }
    
    .slider:before {
        width: 20px;
        height: 20px;
    }
    
    input:checked + .slider:before {
        transform: translateX(20px);
    }
}

/* Bannière boursière défilante */
.stock-ticker {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 12px 0;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ticker-content {
    display: inline-flex;
    animation: scroll 60s linear infinite;
    align-items: center;
    gap: 40px;
    padding-left: 100%;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Effet hover seulement pour les catégories cliquables */
.ticker-item.ticker-item-clickable:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Pas d'effet hover pour les statistiques */
.ticker-item.ticker-item-static:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    box-shadow: none;
}

.ticker-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    margin-left: 4px;
}

.ticker-percentage {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
}

.ticker-percentage.positive {
    color: #ffffff;
    background: linear-gradient(135deg, #0e4d0a, #0a3308);
    box-shadow: 0 0 8px rgba(14, 77, 10, 0.3);
}

.ticker-percentage.negative {
    color: #ffffff;
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

.ticker-percentage.neutral {
    color: #cccccc;
    background: rgba(255, 255, 255, 0.1);
}

.ticker-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ticker-category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    margin: 0 20px;
}

.ticker-category-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.ticker-category-link:hover {
    text-decoration: none;
}

.ticker-category-link:visited {
    color: inherit;
}

/* Responsive pour la bannière */
@media (max-width: 768px) {
    .stock-ticker {
        padding: 10px 0;
        margin: 15px 0;
    }
    
    .ticker-content {
        gap: 25px;
        animation-duration: 45s;
    }
    
    .ticker-item {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .ticker-label {
        font-size: 11px;
    }
    
    .ticker-value {
        font-size: 12px;
    }
    
    .ticker-percentage {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .ticker-category-color {
        width: 10px;
        height: 10px;
    }
    
    .ticker-separator {
        margin: 0 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .ticker-content {
        gap: 20px;
        animation-duration: 35s;
    }
    
    .ticker-item {
        padding: 3px 6px;
        gap: 4px;
    }
    
    .ticker-label {
        font-size: 10px;
    }
    
    .ticker-value {
        font-size: 11px;
    }
    
    .ticker-percentage {
        font-size: 9px;
        padding: 1px 3px;
    }
    
    .ticker-separator {
        margin: 0 10px;
    }
}

/* Bouton Charger plus */
.load-more-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.load-more-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #ff5252, #ff7575);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.2);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.load-more-btn:disabled:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
}

.load-more-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .load-more-container {
        margin: 30px 0;
        padding: 0 15px;
    }
    
    .load-more-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .load-more-container {
        margin: 25px 0;
        padding: 0 10px;
    }
    
    .load-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Styles pour le footer */
.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 30px 0 20px;
    margin-top: auto;
    font-family: 'Raleway', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.footer-tagline {
    font-style: italic;
    font-size: 0.8rem !important;
    margin-top: 5px !important;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .site-footer {
        padding: 20px 0 15px;
    }
}

/* Styles pour la page Information */
.info-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: white;
}

.info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.info-content {
    line-height: 1.6;
    font-family: 'Raleway', sans-serif;
}

.info-content p {
    margin-bottom: 15px;
    color: #e0e0e0;
}

.info-content h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    font-family: 'Raleway', sans-serif;
}

.info-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.info-content li {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.info-content a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.info-content a:hover {
    color: #66BB6A;
    text-decoration: underline;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
}

.contact-info p {
    margin: 8px 0;
}

@media (max-width: 768px) {
    .info-container {
        padding: 15px;
    }
    
    .info-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .info-section-title {
        font-size: 1.5rem;
    }
    
    .info-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 15px;
    }
    
    .info-section-title {
        font-size: 1.3rem;
    }
    
    .info-content {
        font-size: 0.9rem;
    }
}

/* Styles spécifiques pour le filtre des lieux */
.locations-filter {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 15px 0;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.filter-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.filter-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-label {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    min-width: 200px;
    backdrop-filter: blur(5px);
}

.filter-select:focus {
    outline: none;
    border-color: #0e4d0a;
    box-shadow: 0 0 8px rgba(14, 77, 10, 0.3);
}

.filter-select option {
    background: #2d2d2d;
    color: #ffffff;
    padding: 8px;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.filter-btn-primary {
    background: linear-gradient(135deg, #0e4d0a, #0a3308);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(14, 77, 10, 0.3);
}

.filter-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 77, 10, 0.4);
}

.filter-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-stats-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.filter-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .locations-filter {
        padding: 12px 0;
        margin: 15px 0;
    }
    
    .filter-content {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .filter-item {
        padding: 6px 12px;
        gap: 6px;
    }
    
    .filter-label {
        font-size: 11px;
    }
    
    .filter-select {
        min-width: 160px;
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .filter-content {
        gap: 12px;
    }
    
    .filter-select {
        min-width: 140px;
        font-size: 11px;
    }
    
    .filter-stats-value {
        font-size: 12px;
    }
}





/* ========== PUBLICITÉS INTÉGRÉES ========== */

/* Container principal pour le contenu */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Zone centrale pour le contenu */
.content-center {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive pour la grille de vidéos */
@media (max-width: 768px) {
    .miniatures-container {
        gap: 20px;
        padding: 10px;
    }
    
    .page-wrapper.index-page .miniatures-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .miniatures-container {
        gap: 15px;
        padding: 10px;
    }
    
    .page-wrapper.index-page .miniatures-container {
        grid-template-columns: 1fr;
    }
}

/* Styles pour la solution YouTube API avec overlay noir */

#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-end-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fefefe;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay-content {
    text-align: center;
    color: #333333;
    font-family: 'Raleway', sans-serif;
}

.overlay-content p {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333333;
}

.replay-btn {
    background-color: #91322f;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Raleway', sans-serif;
}

.replay-btn:hover {
    background-color: #cc3333;
}




