/* Popin Black Friday */
.bf-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 16px;
}

.bf-modal.visible {
    display: flex;
}

.bf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.bf-modal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(92vw, 960px);
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0, rgba(0, 0, 0, 0) 25%), #0b0b0f;
    color: #f5f5f5;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.bf-hero {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 520px;
}

.bf-modal-body {
    padding: 26px 30px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.bf-kicker {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffd166;
    font-weight: 700;
}

.bf-modal-body h3 {
    font-size: 28px;
    margin: 5px 0;
}

.bf-modal-body p {
    margin: 0;
    color: #e8e8e8;
    line-height: 1.6;
}

.bf-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(120deg, #ff6b6b, #ff9f43);
    color: #0b0b0f;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    width: fit-content;
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.4);
}

.bf-cta:hover {
    transform: translateY(-1px);
}

.bf-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.bf-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.bf-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .bf-modal-card {
        width: min(94vw, 520px);
    }

    .bf-hero {
        max-height: 260px;
    }

    .bf-modal-body h3 {
        font-size: 22px;
    }
}

/* Styles pour le nouveau tableau de prix */
.pricing-cards-container {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 50px 0;
    flex-wrap: wrap;
    padding: 20px;
    color: black;
    scale: 0.89;
    align-items: stretch; /* Assure une hauteur égale */
}

.pricing-card {
    position: relative;
    z-index: 3;
    background: white;
    border-radius: 35px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.357);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .pricing-card {
    background: rgb(209, 203, 242);
    box-shadow: 0 0px 20px rgba(255, 255, 255, 0.501);
}

[data-theme="dark"] .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0px 30px rgba(255, 255, 255, 0.681);
}

.pricing-card.popular {
    background: linear-gradient(135deg, #6661fc 0%, #ff00f2 100%);
    color: white;
    transform: scale(1.05);
}

.popular-badge {
    background: #f74b4b;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Timer de promotion - hauteur fixe */
.promotion-timer {
    background: linear-gradient(135deg, #6661fc, #ff00f2);
    margin: -30px -25px 0 -25px;
    padding: 15px;
    color: white;
    border-radius: 30px 30px 0 0px;
    position: relative;
    overflow: hidden;
    height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px;
}

.promotion-timer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.timer-badge {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
}

.time-value {
    font-size: 16px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 6px;
    border-radius: 5px;
    min-width: 25px;
    backdrop-filter: blur(10px);
    line-height: 1;
}

.time-label {
    font-size: 9px;
    margin-top: 2px;
    opacity: 0.9;
}

/* Contenu principal de la carte */
.pricing-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card h3 {
    font-size: 24px;
    margin: 20px 0 10px 0;
    font-weight: bold;
}

/* Conteneur pour les prix */
.price-container {
    position: relative;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-height: 80px; /* Hauteur minimale pour l'alignement */
    justify-content: center;
}

/* Prix original barré */
.original-price {
    font-size: 23px;
    color: #999;
    text-decoration: line-through;
    position: relative;
    font-weight: 500;
}

.original-price::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #f74b4b;
    transform: translateY(-50%);
    opacity: 0.8;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: bold;
    color: #6661fc;
    margin: 5px 0;
    position: relative;
}

.pricing-card.popular .price {
    color: white;
}

/* Badge de réduction */
.discount-badge {
    position: absolute;
    top: 0px;
    right: 79px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 4px 8px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: bold;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.692);
}

/* Badge prix fixe */
.no-promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.pricing-card .subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

.pricing-card.popular .subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-card .features {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    flex: 1;
}

.pricing-card .features li {
    padding: 8px 0;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-card.popular .features li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.choose-formula {
    position: relative;
    background: linear-gradient(135deg, #6661fc 0%, #ff00f2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto; /* Pousse le bouton vers le bas */
}

.choose-formula:hover {
    background: linear-gradient(135deg, #ff00f2 0%, #6661fc 100%);
    transform: translateY(-2px);
}

.pricing-card.popular .choose-formula {
    background: white;
    color: #6661fc;
}

.pricing-card.popular .choose-formula:hover {
    background: #f8f9fa;
}

/* Animation d'urgence quand il reste moins de 24h */
.urgent .promotion-timer {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    animation: urgentPulse 1s infinite;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.urgent .timer-badge {
    animation: urgentGlow 0.5s ease-in-out infinite alternate;
}

@keyframes urgentGlow {
    from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
    to { text-shadow: 0 0 20px rgba(255, 255, 255, 1); }
}

/* État expiré */
.expired .promotion-timer {
    background: #666;
    opacity: 0.7;
}

.expired .discount-badge,
.expired .original-price {
    display: none;
}

.expired .price {
    color: #000000;
}

/* Styles pour le thème sombre */
[data-theme="dark"] .original-price {
    color: #646464;
}

[data-theme="dark"] .pricing-card.popular .original-price {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .promotion-timer {
    background: linear-gradient(135deg, #ff00f2, #6661fc);
}

/* Styles pour les cartes populaires */
.pricing-card.popular .original-price {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-card.popular .original-price::after {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-cards-container {
        flex-direction: column;
        gap: 20px;
        scale: 1; /* Annule le scale sur mobile */
    }
    
    .pricing-card {
        min-height: auto;
    }
    
    .pricing-card.popular {
        transform: scale(1); /* Annule le scale sur mobile */
    }
    
    .promotion-timer {
        height: 70px; /* Plus compact sur mobile */
        padding: 10px;
    }
    
    .countdown {
        gap: 8px;
    }
    
    .time-value {
        font-size: 14px;
        padding: 3px 5px;
        min-width: 22px;
    }
    
    .time-label {
        font-size: 8px;
    }
    
    .timer-badge {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 20px 15px;
    }
    
    .promotion-timer {
        margin: -20px -15px 0 -15px;
        height: 65px;
    }
    
    .pricing-card .price {
        font-size: 40px;
    }
    
    .discount-badge {
        right: 60px;
        font-size: 13px;
    }
}











/* Bouton pour afficher le tableau détaillé */
.show-more-container {
    position: relative;
    z-index: 3;
    text-align: center;
    margin: -45px 0 40px;
}

.show-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: badgePulse2 1.7s infinite;
}

@keyframes badgePulse2 {
    0% { box-shadow: 0 0 0 0 #968dff; }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 242, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 242, 0); }
}

.show-more-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.show-more-btn:after {
    content: '▼';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.show-more-btn.expanded:after {
    transform: rotate(180deg);
}

/* Animation d'apparition du tableau détaillé */
.table-container-mariage {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.table-container-mariage.visible {
    opacity: 1;
    max-height: 2000px;
    overflow: visible;
}

/* Responsive Design */

/* Tablettes et écrans moyens (1024px et moins) */
@media (max-width: 1024px) {
    .pricing-cards-container {
        gap: 20px;
        margin: 30px 0;
        padding: 15px;
    }
    
    .pricing-card {
        min-width: 250px;
        max-width: 280px;
    }
    
    .pricing-card .price {
        font-size: 42px;
    }
    
    .pricing-card h3 {
        font-size: 22px;
    }
}

/* Tablettes petites (768px et moins) */
@media (max-width: 768px) {
    .pricing-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin: 30px 0;
        padding: 10px;
    }
    
    .pricing-card {
        min-width: 80%;
        max-width: 80%;
        margin: 0 10px;
    }
    
    .pricing-card.popular {
        transform: none;
        margin: 10px;
    }
    
    .pricing-card:hover {
        transform: translateY(-3px);
    }
    
    .pricing-card .price {
        font-size: 40px;
    }
    
    .pricing-card h3 {
        font-size: 20px;
    }
    
    .pricing-card .features li {
        font-size: 13px;
        padding: 6px 0;
    }
    
    .show-more-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Smartphones (480px et moins) */
@media (max-width: 480px) {
    .pricing-cards-container {
        margin: 20px 0;
        padding: 5px;
    }
    
    .pricing-card {
        padding: 25px 20px;
        border-radius: 12px;
        margin: 0 5px;
    }
    
    .pricing-card h3 {
        font-size: 18px;
        margin: 15px 0 8px 0;
    }
    
    .pricing-card .price {
        font-size: 36px;
        margin: 8px 0;
    }
    
    .pricing-card .subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .pricing-card .features {
        margin-bottom: 25px;
    }
    
    .pricing-card .features li {
        font-size: 12px;
        padding: 5px 0;
    }
    
    .choose-formula {
        padding: 12px 25px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .popular-badge {
        font-size: 10px;
        padding: 6px 16px;
        top: -8px;
    }
    
    .show-more-container {
        margin: 30px 0;
    }
    
    .show-more-btn {
        padding: 10px 25px;
        font-size: 13px;
        border-radius: 20px;
    }
}

/* Très petits écrans (360px et moins) */
@media (max-width: 360px) {
    .pricing-cards-container {
        padding: 0;
    }
    
    .pricing-card {
        padding: 20px 15px;
        margin: 0;
    }
    
    .pricing-card h3 {
        font-size: 16px;
    }
    
    .pricing-card .price {
        font-size: 32px;
    }
    
    .pricing-card .features li {
        font-size: 11px;
        padding: 4px 0;
    }
    
    .choose-formula {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .show-more-btn {
        padding: 8px 20px;
        font-size: 12px;
    }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .pricing-cards-container {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .pricing-card {
        min-width: 240px;
        max-width: 240px;
        flex-shrink: 0;
    }
    
    .pricing-card.popular {
        transform: scale(1.02);
    }
    
    .pricing-card .price {
        font-size: 34px;
    }
    
    .pricing-card h3 {
        font-size: 16px;
    }
    
    .pricing-card .features li {
        font-size: 11px;
        padding: 3px 0;
    }
}

.month-promo-reminder {
    margin: -10px auto 40px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(120deg, #f7f7ff, #eef3ff);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    max-width: 1100px;
}

[data-theme="dark"] .month-promo-reminder {
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), rgba(12, 12, 26, 0.98));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    color: #f5f5f5;
}

.month-promo-text {
    margin-bottom: 14px;
}

.month-promo-kicker {
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 6px;
    color: #5d3bff;
}

.month-promo-reminder p {
    margin: 0;
    line-height: 1.5;
}

.month-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.month-promo-card {
    background: white;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .month-promo-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.08);
}

.month-promo-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.month-promo-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.month-promo-line:last-child {
    border-bottom: none;
}

.month-promo-line strong {
    font-size: 15px;
}

.month-promo-line.accent {
    color: #5d3bff;
    font-weight: 700;
}

.month-promo-line.neutral {
    color: #4a5568;
}

[data-theme="dark"] .month-promo-line.neutral {
    color: #d8d8e2;
}

.pricing-note {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
}

.month-promo-link {
    color: #5d3bff;
    font-weight: 800;
    text-decoration: underline;
}

[data-theme="dark"] .month-promo-link {
    color: #c3b5ff;
}

.promo-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0 6px;
}

.promo-visual img {
    width: min(260px, 42vw);
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.promo-visual-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.promo-visual-modal.visible {
    opacity: 1;
    pointer-events: all;
}

.promo-visual-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(3px);
}

.promo-visual-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    max-width: min(560px, 92vw);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.promo-visual-content img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.promo-visual-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.promo-visual-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .promo-visual-content {
    background: #0f1229;
}

/* Amélioration pour les écrans haute résolution */
@media (min-width: 1200px) {
    .pricing-cards-container {
        gap: 40px;
        margin: 60px 0;
    }
    
    .pricing-card {
        max-width: 320px;
        padding: 35px 30px;
    }
    
    .pricing-card .price {
        font-size: 52px;
    }
    
    .pricing-card h3 {
        font-size: 26px;
    }
    
    .pricing-card .features li {
        font-size: 15px;
        padding: 10px 0;
    }
}
