/* ============================================
   FRONT PAGE PREMIUM - COMBINED STYLES
   ============================================ */

/* ===========================================
   SECTION 1: Hero Contrast Fixes
   =========================================== */

/* Hero Stats - Navy bg, white text */
.premium-hero .hero-stat {
    background: linear-gradient(135deg, #102a43 0%, #1a365d 100%) !important;
    border: 1px solid rgba(212, 160, 18, 0.3) !important;
}
.premium-hero .hero-stat-number {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}
.premium-hero .hero-stat-label {
    color: rgba(255, 255, 255, 0.85) !important;
}
/* Hero Buttons - Gold primary */
.premium-hero .hero-buttons .btn-primary,
.premium-hero .btn-primary {
    background: linear-gradient(135deg, #d4a012 0%, #b8860b 100%) !important;
    color: #1f2937 !important;
    border: 2px solid #d4a012 !important;
}
.premium-hero .hero-buttons .btn-primary:hover,
.premium-hero .btn-primary:hover {
    background: linear-gradient(135deg, #b8860b 0%, #9a7209 100%) !important;
    color: #ffffff !important;
}
.premium-hero .hero-buttons .btn-outline,
.premium-hero .btn-outline {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
}
.premium-hero .hero-buttons .btn-outline:hover,
.premium-hero .btn-outline:hover {
    background: #ffffff !important;
    color: #102a43 !important;
}
/* Floating Badges - HIGH CONTRAST FIX */
.premium-hero .hero-float,
.hero-float,
.hero-float-1,
.hero-float-2 {
    background: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}
.premium-hero .hero-float-text,
.hero-float-text {
    font-weight: 700 !important;
    color: #102a43 !important;
    font-size: 1rem !important;
}
.premium-hero .hero-float-subtext,
.hero-float-subtext {
    color: #475569 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}
.premium-hero .hero-float-icon,
.hero-float-icon {
    background: linear-gradient(135deg, #102a43 0%, #1a365d 100%) !important;
    color: #d4a012 !important;
}
/* Hero Card Header Text - HIGH CONTRAST */
.premium-hero .hero-card h3,
.premium-hero .hero-card-header h3,
.hero-card h3,
.hero-card-header h3 {
    color: #102a43 !important;
    font-weight: 700 !important;
    font-size: 1.35rem !important;
}
.premium-hero .hero-card p,
.premium-hero .hero-card-header p,
.hero-card p,
.hero-card-header p {
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
}

/* Permis d'Exploitation Card Styles */
.formation-card-pe {
    border: 2px solid rgba(16, 42, 67, 0.1);
}
.formation-card-pe:hover {
    border-color: #102a43;
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.15);
}
.formation-card-pe .formation-card-image {
    min-height: 180px;
}
.formation-card-pe .btn:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #102a43 100%) !important;
    transform: translateY(-2px);
}

/* ===========================================
   SECTION 2: Flash Promo PE Banner
   =========================================== */

.flash-promo-pe {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 40%, #b91c1c 70%, #991b1b 100%);
    padding: 1.25rem 0;
    position: relative;
    overflow: hidden;
    z-index: 11;
    border-bottom: 3px solid #fbbf24;
    animation: flash-promo-glow 3s ease-in-out infinite;
}
@keyframes flash-promo-glow {
    0%, 100% { box-shadow: inset 0 0 30px rgba(251,191,36,0.05); }
    50% { box-shadow: inset 0 0 60px rgba(251,191,36,0.12); }
}
.flash-promo-pe__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.flash-promo-pe__glow--1 {
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(251,191,36,0.1);
}
.flash-promo-pe__glow--2 {
    bottom: -50px; left: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.05);
}
.flash-promo-pe__inner {
    position: relative;
    z-index: 1;
}
.flash-promo-pe__content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}
.flash-promo-pe__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.flash-promo-pe__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.flash-promo-pe__badge--flash {
    background: #fbbf24;
    color: #78350f;
    animation: flash-badge-pulse 2s ease-in-out infinite;
}
@keyframes flash-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 12px rgba(251,191,36,0.5); }
}
.flash-promo-pe__badge--limited {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.flash-promo-pe__title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.3rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.flash-promo-pe__subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin: 0 0 0.6rem 0;
}
.flash-promo-pe__features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.flash-promo-pe__features span {
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
}
.flash-promo-pe__features i {
    color: #fbbf24;
    margin-right: 0.3rem;
}
/* Price */
.flash-promo-pe__price-block {
    text-align: center;
    padding: 0 1.5rem;
}
.flash-promo-pe__price-old {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    text-decoration: line-through;
    margin-bottom: 0.15rem;
}
.flash-promo-pe__price-new {
    background: #fff;
    color: #dc2626;
    font-size: 2.8rem;
    font-weight: 800;
    padding: 0.35rem 1.5rem;
    border-radius: 14px;
    font-family: 'Playfair Display', serif;
    display: inline-block;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    line-height: 1;
}
.flash-promo-pe__price-new span {
    font-size: 1.4rem;
}
.flash-promo-pe__price-save {
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 0.4rem;
}
.flash-promo-pe__price-save i {
    margin-right: 0.25rem;
}
/* CTAs */
.flash-promo-pe__ctas {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.flash-promo-pe__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    max-width: 260px;
    cursor: pointer;
    border: none;
}
.flash-promo-pe__btn--primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    box-shadow: 0 4px 14px rgba(251,191,36,0.5);
}
.flash-promo-pe__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251,191,36,0.65);
    color: #78350f;
}
.flash-promo-pe__btn--phone {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
    box-shadow: none;
}
.flash-promo-pe__btn--phone:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-1px);
}
.flash-promo-pe__hint {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}
.flash-promo-pe__hint i {
    margin-right: 0.2rem;
}
/* Responsive */
@media (max-width: 900px) {
    .flash-promo-pe__content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 1.25rem;
    }
    .flash-promo-pe__badges {
        justify-content: center;
    }
    .flash-promo-pe__features {
        justify-content: center;
    }
    .flash-promo-pe__price-block {
        padding: 0;
    }
    .flash-promo-pe__title {
        font-size: 1.2rem;
    }
    .flash-promo-pe__price-new {
        font-size: 2.2rem;
    }
    .flash-promo-pe__ctas {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .flash-promo-pe__btn {
        width: auto;
        max-width: none;
        padding: 0.75rem 1.25rem;
        font-size: 0.88rem;
    }
}
@media (max-width: 480px) {
    .flash-promo-pe {
        padding: 1rem 0;
    }
    .flash-promo-pe__ctas {
        flex-direction: column;
    }
    .flash-promo-pe__btn {
        width: 100%;
    }
}

/* ===========================================
   SECTION 3: Bundles CTA Strip
   =========================================== */

.bundles-cta-strip {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 1rem 0;
    position: relative;
    z-index: 10;
    border-bottom: 3px solid #d4a853;
}
.bundles-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.bundles-cta-text {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.bundles-cta-text i {
    color: #d4a853;
    font-size: 1.1rem;
}
.bundles-cta-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}
.bundles-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}
.bundles-cta-btn:hover {
    transform: translateY(-2px);
}
.bundles-cta-btn--pack {
    background: linear-gradient(135deg, #d4a853, #c49a47);
    color: #102a43;
    box-shadow: 0 4px 12px rgba(212,168,83,0.35);
}
.bundles-cta-btn--pack:hover {
    box-shadow: 0 6px 20px rgba(212,168,83,0.5);
    color: #102a43;
}
.bundles-cta-btn--duo {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}
.bundles-cta-btn--duo:hover {
    box-shadow: 0 6px 20px rgba(220,38,38,0.45);
    color: #fff;
}
.bundles-cta-price {
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
}
.bundles-cta-btn--pack .bundles-cta-price {
    background: rgba(16,42,67,0.15);
}

@media (max-width: 900px) {
    .bundles-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.85rem;
    }
    .bundles-cta-text {
        justify-content: center;
        font-size: 0.88rem;
    }
    .bundles-cta-buttons {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .bundles-cta-buttons {
        flex-direction: column;
    }
    .bundles-cta-btn {
        justify-content: center;
        width: 100%;
    }
}

/* ===========================================
   SECTION 4: Duo Offer Responsive
   =========================================== */

@media (max-width: 900px) {
    #offre-duo-homepage {
        padding: 1.5rem !important;
        margin-top: 32px !important;
    }
    #offre-duo-homepage > div > div {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    #offre-duo-homepage h3 { 
        font-size: 1.35rem !important; 
        margin-bottom: 0.5rem !important;
    }
    #offre-duo-homepage > div > div > div:first-child > div {
        text-align: center !important;
        justify-content: center !important;
    }
    #offre-duo-homepage > div > div > div:first-child > div > div {
        display: inline-block !important;
    }
    #offre-duo-homepage button {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
    }
}

/* ===========================================
   SECTION 5: Pack PE + HACCP Responsive
   =========================================== */

@keyframes duerp-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,168,83,0); } 50% { box-shadow: 0 0 10px 3px rgba(212,168,83,0.2); } }
@media (max-width: 900px) {
    #pack-pe-haccp-homepage {
        padding: 1.5rem !important;
        margin-top: 32px !important;
    }
    #pack-pe-haccp-homepage > div > div {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    #pack-pe-haccp-homepage h3 {
        font-size: 1.35rem !important;
        margin-bottom: 0.5rem !important;
    }
    #pack-pe-haccp-homepage > div > div > div:first-child > div {
        text-align: center !important;
    }
    #pack-pe-haccp-homepage button {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
    }
}

/* ===========================================
   SECTION 6: Articles CTA & Reassurance
   =========================================== */

/* Articles CTA Section */
.articles-cta-section {
    background: #f8fafc;
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(16, 42, 67, 0.12);
    border-color: #d4a012;
}

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.article-card:hover .article-card-image img {
    transform: scale(1.05);
}
.article-card-image--placeholder {
    background: linear-gradient(135deg, #102a43 0%, #1a365d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-card-image--placeholder i {
    font-size: 2.5rem;
    color: rgba(212, 160, 18, 0.5);
}

.article-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #64748b;
}
.article-card-meta time {
    display: flex;
    align-items: center;
    gap: 5px;
}
.article-card-cat {
    background: #eff6ff;
    color: #1e40af;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #102a43;
    line-height: 1.4;
    margin: 0 0 10px;
}
.article-card:hover .article-card-title {
    color: #d4a012;
}

.article-card-excerpt {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.article-card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d4a012;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.article-card:hover .article-card-link {
    gap: 10px;
}

.articles-cta-footer {
    text-align: center;
    margin-top: 48px;
}
.articles-cta-footer .btn-outline {
    border: 2px solid #102a43;
    color: #102a43;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.articles-cta-footer .btn-outline:hover {
    background: #102a43;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 968px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .articles-cta-section {
        padding: 50px 0;
    }
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .article-card-image {
        height: 180px;
    }
}

/* Reassurance CTA Box */
.articles-reassurance {
    background: linear-gradient(135deg, #102a43 0%, #1e3a5f 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 8px;
    box-shadow: 0 8px 30px rgba(16, 42, 67, 0.2);
    border: 1px solid rgba(212, 168, 83, 0.25);
}
.articles-reassurance-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(212, 168, 83, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.articles-reassurance-icon i {
    font-size: 1.6rem;
    color: #d4a853;
}
.articles-reassurance-content {
    flex: 1;
}
.articles-reassurance-content h4 {
    color: #d4a853;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    font-family: 'Playfair Display', serif;
}
.articles-reassurance-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}
.articles-reassurance-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.articles-reassurance-actions .btn-primary {
    background: linear-gradient(135deg, #d4a853 0%, #c49a47 100%);
    color: #102a43;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}
.articles-reassurance-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4);
}
.articles-reassurance-actions .btn-outline-light {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.articles-reassurance-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 900px) {
    .articles-reassurance {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.5rem;
    }
    .articles-reassurance-actions {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .articles-reassurance-actions {
        flex-direction: column;
    }
    .articles-reassurance-actions .btn-primary,
    .articles-reassurance-actions .btn-outline-light {
        width: 100%;
        justify-content: center;
    }
}
