/**
 * Featured Image Title Overlay - Styles
 * Version: 1.0.0
 */

/* Conteneur principal de l'image avec overlay */
.fito-featured-image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2rem;
    overflow: hidden;
    border-radius: 8px;
}

/* Image principale */
.fito-featured-image-container .fito-featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Overlay avec dégradé */
.fito-featured-image-container .fito-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Titre superposé */
.fito-featured-image-container .fito-title-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Responsive - Tablettes */
@media screen and (max-width: 1024px) {
    .fito-featured-image-container .fito-title-overlay {
        font-size: 28px;
        bottom: 25px;
        left: 25px;
        right: 25px;
    }
    
    .fito-featured-image-container .fito-gradient-overlay {
        height: 65%;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 768px) {
    .fito-featured-image-container .fito-title-overlay {
        font-size: 24px;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .fito-featured-image-container .fito-gradient-overlay {
        height: 70%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    }
}

/* Responsive - Petit mobile */
@media screen and (max-width: 480px) {
    .fito-featured-image-container .fito-title-overlay {
        font-size: 20px;
        bottom: 15px;
        left: 15px;
        right: 15px;
        line-height: 1.4;
    }
    
    .fito-featured-image-container .fito-gradient-overlay {
        height: 75%;
    }
}

/* Cacher l'ancien header de l'article */
.single-post .entry-header {
    display: none !important;
}

/* Animation au survol (optionnel) */
.fito-featured-image-container:hover .fito-featured-image {
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.fito-featured-image-container .fito-featured-image {
    transition: transform 0.6s ease;
}

/* Support pour le mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .fito-featured-image-container .fito-gradient-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    }
}

/* Amélioration de l'accessibilité */
.fito-featured-image-container .fito-title-overlay {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Support RTL (Right-to-Left) */
[dir="rtl"] .fito-featured-image-container .fito-title-overlay {
    left: auto;
    right: 30px;
    text-align: right;
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fito-featured-image-container .fito-title-overlay {
    animation: fadeInUp 0.8s ease-out;
}