
/* Conteneur principal du viewer */
.bulletin-viewer-wrapper {
    max-width: 100%;
    margin: 30px auto;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Container du PDF avec hauteur fixe */
.bulletin-pdf-container {
    position: relative;
    width: 100%;
    background: #525659;
    overflow: hidden;
}

/* iframe PDF natif */
.bulletin-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Notice mobile */
.bulletin-mobile-notice {
    display: none;
    padding: 15px;
    background: #2271b1;
    color: white;
    text-align: center;
    font-size: 14px;
}

.bulletin-mobile-notice a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

/* Styles responsive */
@media screen and (max-width: 768px) {
    .bulletin-viewer-wrapper {
        margin: 20px 0;
        border-radius: 0;
    }
    
    .bulletin-pdf-container {
        height: 600px !important; /* Hauteur fixe pour mobile */
    }
    
    .bulletin-mobile-notice {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .bulletin-pdf-container {
        height: 500px !important;
    }
    
    .bulletin-mobile-notice {
        font-size: 13px;
        padding: 12px;
    }
}

/* Support du dark mode */
@media (prefers-color-scheme: dark) {
    .bulletin-viewer-wrapper {
        background: #2c2c2c;
    }
    
    .bulletin-pdf-container {
        background: #1a1a1a;
    }
}

/* Style pour les navigateurs qui ne supportent pas iframe */
.bulletin-pdf-container noscript {
    display: block;
    padding: 40px;
    text-align: center;
    background: white;
    color: #333;
}

.bulletin-pdf-container noscript a {
    color: #2271b1;
    font-weight: bold;
    text-decoration: underline;
}

/* Animation de chargement */
.bulletin-pdf-iframe {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
