/* ==================== STYLES PAGE DÉTAIL HÉROS ==================== */

/* Image de fond pour page héros */
.bg-image-hero {
    background-image: url("../img/arrierePlan.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header avec bande rouge */
.hero-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Container principal du héros */
.hero-detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Carte image du héros */
.hero-image-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    text-align: center;
}

.hero-image-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image-card img:hover {
    transform: scale(1.03);
}

/* Badge nom du héros */
.hero-name-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.hero-name-badge h1 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* Carte contenu du héros - Fond blanc opaque */
.hero-content-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

/* Carte histoire avec hauteur fixe */
.hero-story-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-story-card .hero-story {
    flex: none;
    overflow: visible;
}

/* Titres de section */
.hero-section-title {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #e74c3c;
}

.hero-section-title i {
    font-size: 1.5rem;
    color: #e74c3c;
}

/* Liste d'informations */
.hero-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-info-list li {
    color: #2c3e50;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
    transition: all 0.2s ease;
    line-height: 1.6;
}

.hero-info-list li strong {
    color: #e74c3c;
    font-weight: 700;
    display: inline-block;
}

/* Histoire du héros */
.hero-story {
    color: #2c3e50;
    line-height: 1.9;
    font-size: 1.05rem;
}

.hero-story p {
    margin-bottom: 1.5rem;
    text-align: justify;
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.hero-story p:last-child {
    margin-bottom: 0;
}

/* Scrollbar personnalisée pour histoire 
.hero-story-card .hero-story::-webkit-scrollbar {
    width: 8px;
}

.hero-story-card .hero-story::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.hero-story-card .hero-story::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 10px;
}

.hero-story-card .hero-story::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}*/

/* Liens vers autres héros */
.hero-link-hero {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(231, 77, 60, 0.062);
}

.hero-link-hero:hover {
    color: white;
    background: #0d6efd;
    transform: translateY(-1px);
}

/* Responsive pour page héros */
@media (max-width: 992px) {
    .hero-content-card {
        padding: 2rem;
    }

    .hero-story-card {
        height: auto;
    }

    .hero-story-card .hero-story {
        max-height: 500px;
    }

    .hero-section-title {
        font-size: 1.5rem;
    }

    .hero-name-badge h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-content-card {
        padding: 1.5rem;
    }

    .hero-section-title {
        font-size: 1.3rem;
    }

    .hero-story {
        font-size: 1rem;
    }

    .hero-story p {
        padding: 1rem;
    }

    .hero-info-list li {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .hero-name-badge h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
}

/* Navbar avec ombre */
.navbar {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Animation des liens de navigation */
.navbar-dark .navbar-nav .nav-link {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Bouton Like */
.btn-like {
    background: transparent;
    border: 2px solid #e74c3c;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: #e74c3c;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-like:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
}

.btn-like.liked {
    background: #e74c3c;
    color: white;
}

.btn-like.liked i {
    animation: heartBeat 0.3s ease;
}

.like-count {
    font-weight: 700;
    font-size: 1rem;
}

/* Animation du coeur */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* ==================== STYLES COMMENTAIRES ==================== */

/* Section Commentaires */
.comment-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.comment-content {
    margin: 0.5rem 0 0 0;
    line-height: 1.6;
    color: #2c3e50;
}

/* Formulaire commentaire */
#commentInput {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#commentInput:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

#charCount {
    font-weight: 600;
}

/* Actions des commentaires */
.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-comment-like {
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    text-decoration: none;
}

.btn-comment-like:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

.btn-comment-like.liked {
    color: #e74c3c;
    font-weight: 600;
}

.btn-comment-like.liked i {
    animation: heartBeat 0.3s ease;
}

.btn-comment-like .like-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Animation du coeur */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .hero-story-card {
        height: auto;
        display: block;
    }

    .hero-story-card .hero-story {
        max-height: none;
        overflow: visible;
    }

    .hero-story p {
        text-align: left;
        word-spacing: normal;
        letter-spacing: normal;
        line-height: 1.7;
    }
}

/* ==================== LIKE COMMENTAIRE STYLE HERO ==================== */

.btn-comment-like {
    background: transparent;
    border: 2px solid #e74c3c;
    border-radius: 50px;
    padding: 0.25rem 0.9rem;
    color: #e74c3c;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

/* Hover */
.btn-comment-like:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.05);
}

/* Quand liké */
.btn-comment-like.liked {
    background: #e74c3c;
    color: white;
}

/* Animation coeur */
.btn-comment-like.liked i {
    animation: heartBeat 0.3s ease;
}

/* compteur */
.btn-comment-like .like-count {
    font-weight: 700;
    font-size: 0.9rem;
}

/* animation */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}
