/* components.css ← boîte auteur, barre de lecture, etc. - VERSION CORRIGÉE */

/* ========================================
   AUTHOR BOX
   ======================================== */
.author-box {
    padding: 1rem;
    margin: 20px 0;
    display: flex;
    align-items: center;
    color: var(--color-title);
    width: 100%;
    box-sizing: border-box;
}

.author-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%; /* AJOUTÉ */
}

.author-photo {
    width: 55px;
    height: 55px;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0; /* AJOUTÉ pour empêcher la compression */
}

.author-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.25rem; /* AJOUTÉ pour l'espacement */
}

.author-position {
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 3px;
    color: var(--color-text-secondary); /* AJOUTÉ pour différencier */
}

.author-box img {
    margin-bottom: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    flex: 1; /* AJOUTÉ pour prendre l'espace restant */
}

/* ========================================
   AUTHOR BOX RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .author-box {
        padding: 0.75rem;
        margin: 15px 0;
    }
    
    .author-photo {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-position {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .author-box {
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .author-link {
        flex-direction: column;
        text-align: center;
    }
    
    .author-photo {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 50px;
        height: 50px;
    }
    
    .author-info {
        align-items: center;
    }
}

/* ========================================
   CORRECTION NOTE
   ======================================== */
.correction-note,
.correction-note p {
    font-size: 0.8rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: none;
    color: var(--color-text-secondary); /* AJOUTÉ */
}

.correction-note .correction-line {
    width: 16.6667%;
    height: 2px;
    background-color: var(--color-gentologie-green);
    margin-bottom: 1rem;
}

/* ========================================
   READING PROGRESS BAR
   ======================================== */
#reading-progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: transparent;
    z-index: 9999;
    pointer-events: none; /* AJOUTÉ pour éviter les interactions */
}

#reading-progress-bar {
    height: 6px;
    background-color: var(--color-gentologie-green);
    width: 0%;
    transition: width 0.25s ease-out;
}

/* ========================================
   READING PROGRESS BAR RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    #reading-progress-container {
        height: 4px; /* Plus fin sur mobile */
    }
    
    #reading-progress-bar {
        height: 4px;
    }
}

/* ========================================
   COMPOSANTS SUPPLÉMENTAIRES
   ======================================== */

/* Navigation breadcrumb si utilisée */
.breadcrumb {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--color-gentologie-green);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--color-text-secondary);
}

/* Boutons de partage social si utilisés */
.social-share {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.social-share-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-share-button:hover {
    background: var(--color-gentologie-green);
    color: var(--color-background);
    border-color: var(--color-gentologie-green);
}

@media (max-width: 480px) {
    .social-share {
        justify-content: center;
    }
    
    .social-share-button {
        flex: 1;
        justify-content: center;
        min-width: 0;
        padding: 0.75rem 0.5rem;
    }
}

/* Boîte d'information/alerte */
.info-box {
    padding: 1rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--color-gentologie-green);
    background: color-mix(in srgb, var(--color-gentologie-green) 5%, transparent);
}

.info-box.warning {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

.info-box.error {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.info-box p:first-child {
    margin-top: 0;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Correction pour empêcher les débordements */
@media (max-width: 768px) {
   
    
    .author-box,
    .correction-note,
    .social-share,
    .info-box {
        max-width: 100%;
        overflow-x: hidden;
    }
}