/* ============================================================
   Boris Foucaud — CSS pour les textes (/textes/)
   Style semiosis-ontologie.fr : Garamond élégant, couleurs terre
   
   Ce fichier vient EN PLUS de boris-foucaud.css
   Il surcharge les styles nécessaires pour les articles uniquement
   ============================================================ */

/* Import Garamond (EB Garamond via Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=JetBrains+Mono:wght@300;400&display=swap');

/* ===== VARIABLES SPÉCIFIQUES TEXTES ===== */
/* Utilise la même colorimétrie que boris-foucaud.css */
/* Pas de dark mode, uniquement mode clair */

/* ===== CONTENEUR PRINCIPAL TEXTE ===== */
.texte-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    background: var(--blanc);
}

/* ===== MÉTADONNÉES ARTICLE ===== */
.texte-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--ardoise);
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-top: 2rem;
}

.texte-meta .theme-badge {
    display: inline-block;
    border: 1px solid var(--brume);
    padding: 2px 12px;
    border-radius: 2px;
    margin-right: 12px;
    color: var(--accent);
}

/* ===== TITRE ARTICLE ===== */
.texte-container h1 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--noir);
}

/* ===== ENCADRÉ MISE À JOUR ===== */
.texte-update {
    padding: 1.5rem;
    background: var(--ivoire);
    border-left: 3px solid var(--accent);
    margin: 2rem 0;
    font-style: italic;
    color: var(--graphite);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== CONTENU ARTICLE ===== */
.texte-content {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--graphite);
}

.texte-content h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 3rem 0 1.5rem;
    color: var(--noir);
}

.texte-content h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--noir);
}

.texte-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
}

.texte-content strong {
    color: var(--noir);
    font-weight: 600;
}

.texte-content em {
    font-style: italic;
}

.texte-content a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.texte-content a:hover {
    color: var(--accent-clair);
}

/* ===== LISTES ===== */
.texte-content ul,
.texte-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--graphite);
}

.texte-content li {
    margin-bottom: 0.75rem;
    line-height: 1.65;
}

/* ===== BLOCKQUOTES ===== */
.texte-content blockquote {
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--graphite);
}

/* ===== TABLEAUX ===== */
.texte-content table {
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9rem;
    width: 100%;
}

.texte-content th,
.texte-content td {
    border: 1px solid var(--brume);
    padding: 0.6rem 0.8rem;
    text-align: left;
    color: var(--graphite);
}

.texte-content th {
    color: var(--noir);
    font-weight: 600;
    background: var(--ivoire);
}

/* ===== SÉPARATEUR ===== */
.texte-separator {
    border: none;
    border-top: 1px solid var(--brume);
    margin: 3rem 0;
}

/* ===== FOOTER AUTEUR ===== */
.texte-auteur {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: var(--ardoise);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--brume);
}

.texte-auteur p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.texte-auteur a {
    color: var(--accent);
}

.texte-auteur a:hover {
    color: var(--accent-clair);
}

/* ===== PAGE INDEX TEXTES ===== */

/* Barre de recherche */
.textes-search {
    width: 100%;
    padding: 12px 16px;
    background: var(--ivoire);
    border: 1px solid var(--brume);
    border-radius: 2px;
    color: var(--noir);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    outline: none;
}

.textes-search:focus {
    border-color: var(--accent);
}

.textes-search::placeholder {
    color: var(--ardoise);
}

/* Boutons filtres */
.textes-filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 2rem;
}

.filtre-btn {
    background: transparent;
    border: 1px solid var(--brume);
    color: var(--ardoise);
    padding: 4px 14px;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s;
}

.filtre-btn:hover,
.filtre-btn.active {
    background: var(--accent);
    color: var(--blanc);
    border-color: var(--accent);
}

/* Compteur */
.textes-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--ardoise);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

/* Carte article */
.texte-card {
    border-bottom: 1px solid var(--brume);
    padding: 2rem 0;
    transition: background 0.2s;
}

.texte-card:hover {
    background: rgba(139, 105, 20, 0.03);
    margin: 0 -1rem;
    padding: 2rem 1rem;
}

.texte-card.hidden {
    display: none;
}

.texte-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.texte-card-theme {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
}

.texte-card-date,
.texte-card-words {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: var(--ardoise);
    letter-spacing: 1px;
}

.texte-card h3 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.texte-card h3 a {
    color: var(--noir);
    text-decoration: none;
}

.texte-card h3 a:hover {
    color: var(--accent);
}

.texte-card-abstract {
    color: var(--graphite);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.texte-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.texte-card-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    color: var(--ardoise);
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .texte-container {
        padding: 0 1.5rem;
    }
    
    .texte-container h1 {
        font-size: 2rem;
    }
    
    .texte-content {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .texte-container h1 {
        font-size: 1.5rem;
    }
    
    .textes-filtres {
        gap: 4px;
    }
    
    .filtre-btn {
        font-size: 0.5rem;
        padding: 3px 10px;
    }
}
