/* --- Vigoré Redesign Styles --- */

/* 1. Загальні налаштування та імпорт шрифтів */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;700&display=swap');

:root {
    --primary-color: #0A192F;  /* Глибокий темно-синій */
    --secondary-color: #FFFFFF; /* Білий */
    --accent-color: #FFD700;   /* Яскравий золотий */
    --text-color: #333333;      /* Основний колір тексту */
    --light-gray: #f4f4f4;      /* Світло-сірий фон */
    --meta-text-color: #a39f9f; /* Колір для мета-інформації */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    margin: 0;
    font-size: 18px;
}

/* 2. Структура та контейнери */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 15px;
}

header, section, footer {
    padding: 40px 0;
}

header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

main {
    background-color: var(--secondary-color);
    padding: 30px 0;
}

/* 3. Типографіка */
h1, h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

p {
    margin-bottom: 1.2em;
}

a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 700;
}

a:hover {
    /* text-decoration: underline; */
    color: var(--accent-color);
}

/* 4. Елементи сторінки */

/* Верхня панель (Santé masculine / Publicité) */
.top-bar p {
    color: var(--meta-text-color);
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
}

/* Основний контент */
.post-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
}

.post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Кнопки */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e6c300; /* Темніший золотий */
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--primary-color);
}

.btn-center {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Футер */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding-top: 50px;
    padding-bottom: 30px;
}

.footer-content .sources {
    font-size: 0.75rem;
    color: #ccc;
    text-align: left;
    margin-bottom: 30px;
    opacity: 0.8;
}

.footer-content .disclaimer {
    font-size: 0.8rem;
    color: var(--meta-text-color);
    margin-bottom: 40px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
}

.footer-nav a {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--secondary-color);
}

/* Адаптивність */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    body {
        font-size: 16px;
    }
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
}
/* --- Vigoré VSL Page Styles --- */

/* 1. Réglages de base pour la page VSL */
body {
    background-color: var(--primary-color); /* Fond sombre pour focus sur la vidéo */
}

.container-vsl {
    max-width: 840px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* 2. En-tête (Header) */
.vsl-header {
    background-color: #d94300; /* Couleur orange/rouge originale pour l'accroche */
    color: var(--secondary-color);
    text-align: center;
    padding: 25px 15px;
}

.vsl-header h1 {
    font-family: 'Poppins', sans-serif; /* Utilisation d'un des polices originales pour le titre */
    color: var(--secondary-color);
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 10px 0;
}

.vsl-header p {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    opacity: 0.9;
}

/* 3. Section Vidéo */
.video-section {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 4. Section de l'Offre (qui apparaît en différé) */
.offer-section {
    display: none; /* Caché par défaut, géré par JS */
    background-color: var(--secondary-color);
    margin-top: 40px;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.offer-section h2 {
    color: #d94300; /* Couleur d'accentuation */
    font-size: 2.2rem;
    font-family: 'Poppins', sans-serif;
}

.offer-section .offer-warning {
    font-weight: 700;
    margin: 15px 0 30px;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
    margin: 30px 0;
}

.product-info img {
    max-width: 40%;
    height: auto;
}

.product-details p {
    margin-bottom: 1em;
}

.payment-logos {
    max-width: 100%;
    margin-top: 20px;
}

/* 5. Pop-ups (Modals) */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.popup-close:hover {
    color: var(--primary-color);
}

.popup h2 {
    margin-top: 0;
}

.popup-content {
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #555;
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .vsl-header h1 {
        font-size: 1.8rem;
    }
    .product-info {
        flex-direction: column;
    }
    .product-info img {
        max-width: 60%;
    }
}