/* Reset et base optimisé */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Optimisations de performance */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ff8000; /* Fallback pour les navigateurs sans gradient */
    background: -webkit-linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
    background: -moz-linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
    background: -o-linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
    background: linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    /* Optimisations de rendu */
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Arrière-plan avec vidéo optimisé et fallbacks complets */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* Fallback gradient pour les navigateurs sans support vidéo */
    background: linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
    -moz-object-fit: cover;
    z-index: -2;
    /* Dézoom pour réduire la pixélisation */
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    -ms-transform: scale(1.2);
    /* Centrage du fond dézoomé */
    object-position: center center;
    -webkit-object-position: center center;
    -moz-object-position: center center;
    /* Transition pour l'apparition */
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
    -moz-transition: opacity 0.5s ease;
    /* Optimisations pour les navigateurs mobiles */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.background-video.loaded {
    opacity: 1;
}

/* Fallback pour les navigateurs sans support vidéo */
.background-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
    background: -webkit-linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
    background: -moz-linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
    background: -o-linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
    z-index: -3;
    opacity: 0;
    transition: opacity 0.5s ease;
    -webkit-transition: opacity 0.5s ease;
    -moz-transition: opacity 0.5s ease;
}

.background-fallback.show {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 153, 51, 0.08);
    z-index: -1;
}

/* Navigation optimisée */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25); /* Fallback pour les navigateurs sans backdrop-filter */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Fallback pour les navigateurs qui ne supportent pas backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgba(255, 255, 255, 0.25);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.nav-logo h2 {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.nav-menu {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    gap: 2rem;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
}

/* Bouton de changement de langue */
.language-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-toggle:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.language-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.language-toggle:hover::before {
    left: 100%;
}

/* Contrôles de musique */
.music-controls {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.music-controls-panel {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

/* Fallback pour backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .music-controls-panel {
        background: rgba(255, 255, 255, 0.25);
    }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-slider {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.volume-icon {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive pour les contrôles de musique */
@media (max-width: 768px) {
    .music-controls {
        margin-left: 0.5rem;
    }
    
    .music-controls-panel {
        padding: 0.4rem 0.8rem;
        gap: 0.6rem;
    }
    
    .volume-slider {
        width: 50px;
    }
}

/* Responsive pour le bouton de langue */
@media (max-width: 768px) {
    .language-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-left: 0.5rem;
        min-width: 50px;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Contenu principal */
.main-content {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Section héro */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.hero-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Fallback pour backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .hero-content {
        background: rgba(255, 255, 255, 0.25);
    }
}

.hero-avatar {
    margin-bottom: 1rem;
}

.avatar-image {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

.avatar-image:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section infos rapides */
.quick-facts {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.fact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Fallback pour backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .fact-card {
        background: rgba(255, 255, 255, 0.25);
    }
}

.fact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.fact-icon {
    width: 96px;
    height: 96px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.fact-icon svg {
    width: 100%;
    height: 100%;
    filter: none;
    background: transparent;
}

.fact-icon .custom-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
    background: transparent;
}

.fact-card:hover .fact-icon {
    transform: scale(1.1);
}

.fact-card:hover .fact-icon .custom-icon {
    filter: none;
    transform: scale(1.05);
}

.fact-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Boutons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b35;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Section newsletter */
.newsletter-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Fallback pour backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .newsletter-section {
        background: rgba(255, 255, 255, 0.25);
    }
}

.newsletter-content h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 4rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Fallback pour backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .footer {
        background: rgba(0, 0, 0, 0.5);
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        justify-content: center;
    }
    
    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-section {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        min-width: 100%;
    }
    
    .footer-content {
        padding: 2rem 1rem;
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nav-logo {
        order: 1;
    }
    
    .nav-menu {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .music-controls {
        order: 3;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .fact-card {
        padding: 1.5rem;
    }
}

/* Animation de transition de langue */
body {
    transition: opacity 0.15s ease-in-out;
}

/* Section des statistiques détaillées */
.detailed-stats {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin: 3rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fallback pour backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
    .detailed-stats {
        background: rgba(255, 255, 255, 0.15);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.stat-content h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.stat-content .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff8000;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(255, 128, 0, 0.3);
}

.stat-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive pour les statistiques */
@media (max-width: 768px) {
    .detailed-stats {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-content .stat-number {
        font-size: 2rem;
    }
    
    .stats-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .detailed-stats {
        padding: 1.5rem 0.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 4rem;
    }
    
    .stat-content h3 {
        font-size: 1.1rem;
    }
    
    .stat-content .stat-number {
        font-size: 1.8rem;
    }
}

/* Corrections supplémentaires pour éviter les problèmes d'affichage */
.fact-card,
.hero-content,
.newsletter-section,
.footer {
    transform: translateZ(0);
}

/* Correction pour les images qui ne se chargent pas */
img {
    background: transparent;
}

/* Transparence complète pour toutes les images PNG */
img[src*=".png"] {
    background: transparent !important;
    filter: none !important;
}

/* Transparence pour l'avatar */
.avatar-image {
    background: transparent !important;
    filter: none !important;
    border-radius: 50%;
    object-fit: cover;
}

/* Transparence pour les icônes personnalisées */
.custom-icon {
    background: transparent !important;
    filter: none !important;
}

/* Transparence pour les images de placeholder */
img[src*="placeholder"] {
    background: transparent !important;
    filter: none !important;
}

/* Transparence pour toutes les images dans les cartes */
.fact-card img {
    background: transparent !important;
    filter: none !important;
}

/* Transparence pour les images dans le hero */
.hero-avatar img {
    background: transparent !important;
    filter: none !important;
}

/* Transparence pour les images dans la navigation */
.navbar img {
    background: transparent !important;
    filter: none !important;
}

/* Transparence pour les images dans le footer */
.footer img {
    background: transparent !important;
    filter: none !important;
}

/* Les styles pour placeholder sont maintenant gérés plus haut avec la transparence complète */

/* Correction pour éviter les problèmes de z-index */
.navbar {
    z-index: 1000;
}

.hero-section {
    z-index: 1;
}

.footer {
    z-index: 1;
}

/* Correction pour les problèmes de performance */
* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Correction pour les problèmes de scroll */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Correction pour les problèmes de focus */
*:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Correction pour les problèmes de sélection */
::selection {
    background: rgba(255, 128, 0, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(255, 128, 0, 0.3);
    color: #fff;
}

/* Animations pour les compteurs */
.stat-number.updated {
    animation: counterUpdate 0.5s ease-in-out;
}

@keyframes counterUpdate {
    0% {
        transform: scale(1);
        color: #fff;
    }
    50% {
        transform: scale(1.1);
        color: #ff8000;
    }
    100% {
        transform: scale(1);
        color: #fff;
    }
}

/* Correction pour les problèmes de chargement de vidéo */
.background-video {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.background-video.loaded {
    opacity: 1;
}

/* Fallback pour la vidéo */
.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb366 0%, #ff9933 50%, #ff8000 100%);
    z-index: -3;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-fallback.show {
    opacity: 1;
}

/* Correction pour les problèmes de responsive sur très petits écrans */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .nav-container {
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .fact-card {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

/* Correction pour les problèmes de performance sur mobile */
@media (max-width: 768px) {
    .background-video {
        object-fit: cover;
        object-position: center;
        transform: scale(1.1);
    }
    
    .fact-card:hover {
        transform: none;
    }
    
    .stat-card:hover {
        transform: none;
    }
    
    .nav-link:hover {
        transform: none;
    }
}
