/**
 * Presse & Témoignages Pro - Styles Frontend
 * Version: 1.0.0
 */

/* === CONTAINER PRINCIPAL === */
.thf-ptp-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* === SECTIONS === */
.thf-ptp-section {
    margin-bottom: 60px;
}

.thf-ptp-section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #1e40af;
}

/* === STATISTIQUES === */
.thf-ptp-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.thf-ptp-stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thf-ptp-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.thf-ptp-stat-number {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.thf-ptp-stat-label {
    font-size: 16px;
    color: #f0f0f0;
    font-weight: 500;
}

/* === GRID LAYOUTS === */
.thf-ptp-presse-grid,
.thf-ptp-temoignages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* === ARTICLES DE PRESSE === */
.thf-ptp-presse-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.thf-ptp-presse-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.thf-ptp-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.thf-ptp-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thf-ptp-presse-item:hover .thf-ptp-thumbnail img {
    transform: scale(1.1);
}

.thf-ptp-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.thf-ptp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.thf-ptp-source {
    background: #3b82f6;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thf-ptp-date {
    color: #6b7280;
    font-size: 14px;
}

.thf-ptp-title {
    font-size: 22px;
    font-weight: 700;
    margin: 15px 0;
    color: #1f2937;
    line-height: 1.4;
}

.thf-ptp-excerpt {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 15px;
    flex-grow: 1;
}

.thf-ptp-journaliste {
    font-style: italic;
    color: #6b7280;
    font-size: 14px;
    margin: 10px 0;
}

.thf-ptp-button {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.thf-ptp-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* === TÉMOIGNAGES === */
.thf-ptp-temoignage-item {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.thf-ptp-temoignage-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

.thf-ptp-rating {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fbbf24;
}

.thf-ptp-temoignage-content {
    position: relative;
    margin-bottom: 20px;
}

.thf-ptp-quote {
    font-size: 80px;
    color: #e5e7eb;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
    line-height: 1;
}

.thf-ptp-text {
    position: relative;
    z-index: 1;
    padding-left: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    font-style: italic;
}

.thf-ptp-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
}

.thf-ptp-author strong {
    color: #1f2937;
    font-size: 16px;
}

.thf-ptp-temoignage-date {
    color: #6b7280;
    font-size: 14px;
}

.thf-ptp-verified {
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
}

/* === FORMULAIRE === */
.thf-ptp-form-container {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thf-ptp-form-group {
    margin-bottom: 25px;
}

.thf-ptp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
}

.thf-ptp-form-group input[type="text"],
.thf-ptp-form-group input[type="email"],
.thf-ptp-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.thf-ptp-form-group input:focus,
.thf-ptp-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Rating avec étoiles */
.thf-ptp-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    font-size: 32px;
}

.thf-ptp-star-rating input {
    display: none;
}

.thf-ptp-star-rating label {
    cursor: pointer;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.thf-ptp-star-rating input:checked ~ label,
.thf-ptp-star-rating label:hover,
.thf-ptp-star-rating label:hover ~ label {
    color: #fbbf24;
}

.thf-ptp-submit-button {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thf-ptp-submit-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.thf-ptp-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages du formulaire */
.thf-ptp-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.thf-ptp-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.thf-ptp-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

/* === MESSAGE "PAS DE CONTENU" === */
.thf-ptp-no-content {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 18px;
    font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .thf-ptp-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thf-ptp-stat-number {
        font-size: 36px;
    }
    
    .thf-ptp-presse-grid,
    .thf-ptp-temoignages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .thf-ptp-section-title {
        font-size: 26px;
    }
    
    .thf-ptp-form-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .thf-ptp-stats-container {
        grid-template-columns: 1fr;
    }
    
    .thf-ptp-stat-number {
        font-size: 32px;
    }
    
    .thf-ptp-title {
        font-size: 18px;
    }
}

/* === SUPPORT RTL POUR L'ARABE === */
[dir="rtl"] .thf-ptp-text,
[dir="rtl"] .thf-ptp-excerpt {
    text-align: right;
}

[dir="rtl"] .thf-ptp-quote {
    left: auto;
    right: -10px;
}

[dir="rtl"] .thf-ptp-text {
    padding-left: 0;
    padding-right: 40px;
}

[dir="rtl"] .thf-ptp-button:hover {
    transform: translateX(-5px);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thf-ptp-presse-item,
.thf-ptp-temoignage-item {
    animation: fadeInUp 0.6s ease-out;
}

.thf-ptp-presse-item:nth-child(1),
.thf-ptp-temoignage-item:nth-child(1) {
    animation-delay: 0.1s;
}

.thf-ptp-presse-item:nth-child(2),
.thf-ptp-temoignage-item:nth-child(2) {
    animation-delay: 0.2s;
}

.thf-ptp-presse-item:nth-child(3),
.thf-ptp-temoignage-item:nth-child(3) {
    animation-delay: 0.3s;
}
/* Honeypot: visible to bots, kept outside the visual layout for readers. */
.thf-ptp-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.thf-ptp-consent { margin: 0 0 1rem; font-size: .95rem; line-height: 1.6; }
.thf-ptp-consent input { margin-right: .45rem; }
