/**
 * Les Caractères - Styles du viewport
 * Zone de texte centrale plate et élégante
 */

/* ========================================
   VIEWPORT (ZONE DE TEXTE CENTRALE)
   ======================================== */

.viewport {
    background: #fff;
    /*border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;*/
    padding: 3rem;
    min-height: 600px;
    overflow: visible;
    position: relative;
    overflow-x: hidden;
}

.text-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
    transition: transform 0.4s ease-out, opacity 0.3s ease-out;
}

/* ========================================
   PARAGRAPHES
   ======================================== */

h2 {
    font-family: 'Garamond';
    font-size: 20pt;
    text-align: left;
    margin-top: 56pt;
    margin-bottom: 6pt;
    margin-left: 20px;
    margin-right: 50px;
    padding-bottom: 4px;
    padding-left: 5px; 
 
    border-bottom: 1px solid black;
}

.paragraph { 
    position: relative;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;

    font-family: 'Garamond';
    font-size: 14pt;
}

.paragraph.active {
    /*border-left-color: #2c3e50;
    background: rgba(44, 62, 80, 0.02);*/
    border-color: #2c3e50;
    background: rgba(74, 144, 226, 0.1);
}

.paragraph:hover::before {
    content: attr(canon_num);
    position: absolute;
    left: -1rem;
    top: 1em;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #555;
    pointer-events: none;
}

div.remark .paragraph + .paragraph {
    padding-top:0;
}

span.italic {
    font-style: italic;
}

span.small_caps {
    font-variant: small-caps;
}

span.page_nb {
    font-size:0.8rem;
    color:gray;
}




/* ========================================
   MARQUEURS ANALYTIQUES
   ======================================== */

.paragraph-marker-appeared,
.paragraph-marker-moved {
    display: none;
}

.show-markers .paragraph-marker-moved {
    color: #2c3e50;
    font-size: 0.8em;
    vertical-align: super;
    display: inline;
    position: absolute;
    left: -2px;
}

.show-markers .paragraph-marker-appeared {
    color: #e67e22;
    font-size: 0.9em;
    vertical-align: middle;
    display: inline;
    position: absolute;
    left: -2px;
}

/* ========================================
   BANDES DE COULEUR POI
   ======================================== */

.paragraph[data-poi]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* ========================================
   MESSAGE PARAGRAPHE NON TROUVÉ
   ======================================== */

.paragraph-not-found {
    position: fixed;
    top: 6rem;
    left: 2rem;
    background: #2c3e50;
    color: white;
    padding: 0.6rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-left: 3px solid #e74c3c;
    z-index: 1001;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}