﻿/* Styles pour les cartes d'article */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-card__image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.1);
}

.blog-card__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f97316;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card__content {
    padding: 25px;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.blog-card__date,
.blog-card__reading-time {
    display: flex;
    align-items: center;
}

.blog-card__date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 6px;
    font-size: 0.75rem;
}

.blog-card__reading-time::before {
    content: '\f017';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 6px;
    font-size: 0.75rem;
}

.blog-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card__excerpt {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    color: #f97316;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-card__read-more:hover {
    color: #ea580c;
}

.blog-card__read-more:hover i {
    transform: translateX(5px);
}

.blog-card__tags {
    display: flex;
    gap: 8px;
}

.blog-card__tag {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-radius: 4px;
}

.ebook-card {
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ebook-card:hover {
    transform: scale(1.05);
}
.ebook-card__image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 350px; /* Augmentation de la hauteur pour une meilleure visibilité */
}
.ebook-card__image-container img, .common-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.ebook-card__content {
    padding: 1.5rem;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Formulaire de newsletter */
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    color: #111827;
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

.newsletter-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    background-color: white;
    color: #111827;
}

.newsletter-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* Motifs de points */
.pattern-dots {
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: calc(10 * 1px) calc(10 * 1px);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card__content {
        padding: 15px;
    }
    .blog-card__image-container {
        height: 180px;
        aspect-ratio: unset;
    }
    .blog-card__title {
        font-size: 1rem;
    }
    .blog-card__excerpt {
        font-size: 0.875rem;
    }
    
    .ebook-card__image-container {
        height: 200px;
    }
    .ebook-card__content {
        padding: 1rem;
    }
    .ebook-card__content h3 {
        font-size: 1rem;
    }
    .ebook-card__content p {
        font-size: 0.875rem;
    }
    
    
    .formation-card__content {
        padding: 1rem;
    }
    .formation-card__content h3 {
        font-size: 1rem;
    }
    .formation-card__content p {
        font-size: 0.875rem;
    }
    
    .blog-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .newsletter-form {
        padding: 0 15px;
    }
    
    .newsletter-button {
        width: 100%;
        justify-content: center;
    }
}

/* Style amélioré pour le contenu des articles ebook */
.prose.prose-lg {
    font-size: 1.125rem; /* Augmentation de la taille de la police */
    line-height: 1.8; /* Meilleure hauteur de ligne pour la lisibilité */
    color: #374151; /* Couleur de texte légèrement plus foncée */
    margin-bottom: 2rem;
}

/* Style pour les tags dans ebook/article.php */
.mt-8.flex.flex-wrap.gap-3 a.blog-card__read-more {
    background-color: #f97316;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.mt-8.flex.flex-wrap.gap-3 a.blog-card__read-more:hover {
    background-color: #ea580c;
}

/* Style pour le lien "Lire" dans les articles similaires */
.blog-card__read-more.inline-flex.items-center.mt-4 {
    color: #f97316;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card__read-more.inline-flex.items.center.mt-4:hover {
    color: #ea580c;
}


/* Correction spécifique pour les formations */
.formation-card__image-container {
    height: 220px; /* ou 250px selon ton design */
    overflow: hidden;
}

.formation-card__image-container img {
    height: auto;        /* annule le height: 100% qui cassait tout */
    max-height: 100%;    /* sécurité */
    object-fit: cover;
}

/* Style spécifique pour le bouton de recherche */
.search-button {
    background: linear-gradient(135deg, #f97316, #f59e0b) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3) !important;
}

.search-button:hover {
    background: linear-gradient(135deg, #ea580c, #d97706) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4) !important;
}

.search-button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.5) !important;
}
