/**
 * Styles pour l'expérience premium
 * Les Infos du Pays Gallo - Système d'abonnement
 */

/* Styles pour les utilisateurs premium */
.premium-user {
    /* Améliorer l'espacement sans les publicités */
}

.premium-user .hd23 {
    /* Ajuster le header sans les pubs */
    margin-bottom: 2rem;
}

/* Styles pour les liens d'abonnement dans le menu */
.menu-item.premium-status a {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333 !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.menu-item.premium-status a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.menu-item.subscription-offer a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.menu-item.subscription-offer a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: none;
}

.menu-item.login-link a {
    background: #f8f9fa;
    color: #333 !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.menu-item.login-link a:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Animation pulse pour attirer l'attention */
@keyframes pulse {
    0% {
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 2px 20px rgba(102, 126, 234, 0.5);
    }
    100% {
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }
}

/* Message de bienvenue pour les utilisateurs premium */
.premium-welcome {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.premium-welcome h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.premium-welcome p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-item.premium-status a,
    .menu-item.subscription-offer a,
    .menu-item.login-link a {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .premium-welcome {
        padding: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .premium-welcome h3 {
        font-size: 1.1rem;
    }
}

/* Amélioration de l'espacement pour les utilisateurs premium */
.premium-user .content-area {
    padding-top: 1rem;
}

/* Badge premium dans les commentaires des abonnés */
.premium-user .comment-author::after {
    content: "👑";
    margin-left: 0.5rem;
    color: #FFD700;
    font-size: 0.9em;
}

/* Styles pour les offres premium */
.premium-offer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.premium-offer h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.premium-offer p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.premium-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.premium-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

/* Styles pour les bénéfices premium */
.premium-benefits {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.premium-benefits h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.premium-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-benefits li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
    color: #555;
    line-height: 1.5;
}

.premium-benefits li:last-child {
    margin-bottom: 0;
}

/* Animation pour les éléments premium */
.premium-offer, .premium-welcome {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour les offres premium */
@media (max-width: 768px) {
    .premium-offer {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .premium-offer h3 {
        font-size: 1.3rem;
    }
    
    .premium-cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .premium-benefits {
        padding: 1rem;
    }
}

/**
 * Styles pour la page produit d'abonnement premium
 */

/* Hero section */
.premium-product-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.premium-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.premium-hero__content {
    position: relative;
    z-index: 2;
}

.premium-hero__title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.premium-icon {
    display: inline-block;
    font-size: 3.5rem;
    margin-right: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.premium-hero__subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Container et layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.premium-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
}

.premium-main {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Carte de prix */
.premium-pricing {
    margin-bottom: 4rem;
}

.pricing-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 3px solid #667eea;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '⭐ POPULAIRE';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #667eea;
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.pricing-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: #667eea;
    margin-right: 0.2rem;
}

.amount {
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
    line-height: 1;
}

.period {
    font-size: 1.2rem;
    color: #666;
    margin-left: 0.2rem;
}

.trial-info {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Features list */
.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #28a745;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Bouton d'action */
.pricing-action {
    margin-top: 2rem;
}

.premium-cart-form {
    display: inline-block;
    width: 100%;
}

.pricing-action .single_add_to_cart_button,
.premium-subscribe-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white !important;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.pricing-action .single_add_to_cart_button:hover,
.premium-subscribe-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white !important;
}

.premium-subscribe-btn .btn-icon {
    font-size: 1.3rem;
    animation: sparkle 2s infinite;
}

.premium-subscribe-btn .btn-text {
    font-weight: bold;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Styles pour le formulaire WooCommerce */
.woocommerce-product-details__short-description {
    width: 100%;
}

.premium-cart-form input[type="hidden"] {
    display: none;
}

/* Styles pour la connexion requise */
.login-required {
    text-align: center;
    padding: 2rem;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 15px;
    margin: 1rem 0;
}

.login-required p {
    margin-bottom: 1rem;
    color: #856404;
}

.login-required strong {
    color: #856404;
    font-size: 1.1rem;
}

.login-btn {
    background: linear-gradient(135deg, #ffc107, #ff8c00) !important;
    color: #333 !important;
}

.login-btn:hover {
    background: linear-gradient(135deg, #ff8c00, #ffc107) !important;
    color: #333 !important;
}

/* Styles pour les erreurs WooCommerce */
.wc-error {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    color: #721c24;
}

.wc-error p {
    margin-bottom: 0.5rem;
}

.wc-error a {
    color: #dc3545;
    text-decoration: underline;
}

/* Lien alternatif vers checkout */
.pricing-action small a {
    color: #667eea;
    text-decoration: underline;
}

.pricing-action small a:hover {
    color: #764ba2;
}

/* Section pourquoi nous soutenir */
.premium-why {
    margin-bottom: 4rem;
}

.premium-why h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.why-item h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.why-item p {
    color: #666;
    line-height: 1.6;
}

/* Témoignages */
.premium-testimonials {
    margin-bottom: 4rem;
}

.premium-testimonials h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author strong {
    color: #333;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.3rem;
}

/* FAQ */
.premium-faq h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq-item h3 {
    background: #667eea;
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.2rem;
}

.faq-item p {
    padding: 1.5rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Sidebar */
.premium-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.premium-summary, .premium-guarantee {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 2rem;
}

.premium-summary h3, .premium-guarantee h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.summary-content {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.summary-price, .summary-trial {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.summary-features {
    margin-top: 1rem;
}

.summary-features p {
    margin-bottom: 0.5rem;
    color: #28a745;
    font-weight: 500;
}

.premium-guarantee p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .premium-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .premium-hero__title {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .premium-hero {
        padding: 2rem 0;
    }
    
    .premium-hero__title {
        font-size: 2rem;
    }
    
    .premium-hero__subtitle {
        font-size: 1.1rem;
    }
    
    .premium-main {
        padding: 2rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .premium-sidebar {
        order: -1;
    }
}
