/* Style Histoire - Affichage des histoires bibliques */

.histoire-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.histoire-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.histoire-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.histoire-header p {
    margin: 0;
    font-size: 1.1em;
    opacity: 0.95;
}

.histoire-main {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* COLONNE GAUCHE - SÉLECTEUR */
.histoire-selector {
    grid-column: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.selector-title {
    color: #667eea;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.2);
}

.titres-list {
    border-top: 2px solid #667eea;
    padding-top: 20px;
}

.titres-list-title {
    color: #764ba2;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 15px;
}

.titre-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 4px solid #764ba2;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95em;
    color: #333;
}

.titre-item:hover {
    background: #f0f0f0;
    padding-left: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.titre-item.active {
    background: #667eea;
    color: white;
    border-left-color: #764ba2;
}

.empty-message {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 0.95em;
}

/* COLONNE DROITE - HISTOIRE AFFICHÉE */
.histoire-display {
    grid-column: 2;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.histoire-card {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.histoire-titre-display {
    color: #333;
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #667eea;
}

.histoire-theme-display {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.histoire-contenu-display {
    color: #333;
    line-height: 1.4;
    text-align: justify;
    margin-bottom: 20px;
    font-size: 1em;
}

.histoire-contenu-display br {
    margin: 5px 0;
}

.lecture-biblique-display {
    background: #e8f0ff;
    padding: 15px;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    color: #333;
    margin-bottom: 20px;
}

.lecture-biblique-display strong {
    color: #667eea;
}

.btn-random {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: opacity 0.3s;
    width: 100%;
    margin-top: 20px;
}

.btn-random:hover {
    opacity: 0.9;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}

/* RESPONSIVE - TABLETTE ET MOBILE */
@media (max-width: 1024px) {
    .histoire-container {
        padding: 10px;
    }

    .histoire-header {
        padding: 20px;
        margin-bottom: 25px;
    }

    .histoire-header h1 {
        font-size: 1.6em;
    }

    .histoire-header p {
        font-size: 0.95em;
    }

    .histoire-main {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .histoire-selector {
        position: static;
        padding: 20px;
        order: 1;
    }

    .histoire-display {
        padding: 20px;
        order: 2;
    }

    .selector-title {
        font-size: 1.1em;
    }

    .histoire-titre-display {
        font-size: 1.3em;
    }

    .histoire-contenu-display {
        font-size: 0.95em;
        text-align: left;
    }

    .titre-item {
        padding: 10px;
        font-size: 0.9em;
    }

    .btn-random {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .form-group select {
        font-size: 0.95em;
    }

    .titres-list-title {
        font-size: 1em;
    }
}
