/* style.css */

/* --- Variables & Réglages de base --- */
:root {
    --color-primary-dark: #00465A;
    --color-heading-blue: #04047d;
    --color-text: #121212;
    --color-background: #FFFFFF;
    --color-banner-bg: #FEFBD9;
    --color-update-red: #d0021b;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --font-logo: 'Alegreya', serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    font-size: calc(16px + 2 * ((100vw - 320px) / (1200 - 320)));
    line-height: 1.7; 
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, strong {
    font-family: var(--font-heading);
    font-weight: 700;
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 0.5em;
}

a {
    color: var(--color-heading-blue);
    text-decoration: none;
}
a:hover {
    color: #0000d6;
    text-decoration: underline;
}

/* --- En-tête --- */
.site-header {
    background-color: var(--color-primary-dark);
    padding: 10px 0;
}

.magazine-name {
    font-family: var(--font-logo);
    color: white;
    font-size: 26px;
    margin: 0;
}

/* --- Section Hero --- */
.hero {
    padding-top: 20px;
}

.update-banner {
    background-color: var(--color-banner-bg);
    border-radius: 8px;
    padding: 5px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-banner p {
    margin: 10px 0;
    font-size: 0.9em;
}

.update-label {
    color: var(--color-update-red);
}

.update-icon {
    width: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.pre-headline {
    font-size: 1.1em;
    color: #121212;
}

h1 {
    font-size: 2.1em;
    line-height: 1.25;
    margin: 15px 0;
}

.subtitle {
    font-size: 1.1em;
    color: var(--color-heading-blue);
    border: none;
    padding: 0;
    margin: 20px 0;
    font-style: italic;
    font-weight: 400;
}

.author-box {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 400px;
    margin: 30px 0;
}

.author-box img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 14px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 1em;
}

.author-meta {
    font-size: 0.85em;
    color: #555;
}

.before-after-image img {
    border-radius: 15px;
    width: 100%;
}

.social-proof-logos {
    margin: 30px 0;
    text-align: center;
}

.social-proof-logos img {
    opacity: 0.8;
}

/* --- Sections de Contenu (Styles Généraux) --- */
.content-section {
    padding: 20px 0;
}

.content-section p {
    margin-top: 0;
    margin-bottom: 1.5em; 
}

.content-section em {
    color: #333;
    font-style: italic;
}

.content-section p.last-paragraph {
    margin-bottom: 5px;
}

.content-section h2 {
    font-size: 1.7em;
    color: var(--color-heading-blue);
    margin-top: 25px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-section h2.first-title {
    margin-top: 15px;
}

.content-section h2.dark-title {
    color: var(--color-text);
}

.content-section h2.centered-outro {
    text-align: center;
    font-size: 1.2em;
}

.content-section h2.section-title {
    text-align: center;
    color: var(--color-heading-blue);
    font-size: 1.6em;
    margin-bottom: 25px;
}

.content-image {
    margin: 20px auto;
    display: block;
    border-radius: 8px;
}

.content-image[src*="fl-3.jpg"] {
    max-width: 600px;
}

.content-image + h2 {
    margin-top: 15px;
}

/* --- Styles des Composants Spécifiques --- */
.highlight-box.green-box {
    background-color: #C2FFBE;
    color: #155221;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.highlight-box p {
    margin-bottom: 1em;
    line-height: 1.5;
}
.highlight-box p:last-child {
    margin-bottom: 0;
}

.no-results-list p {
    margin-bottom: 0.5em;
    font-size: 1.1em;
}

.steps-container {
    margin-top: 2em;
}
.steps-container p {
    margin-bottom: 1.5em;
}
.steps-container p:last-of-type {
    margin-bottom: 0;
}
.steps-container strong {
    display: block;
    margin-bottom: 0.3em;
    font-size: 1.1em;
}

.visual-summary-image {
    display: block;
    margin: 20px auto;
    width: 100%;
}

.checklist {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.checklist li {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 0.8em;
}

.ingredients-list {
    margin-top: 2em;
}

.ingredient-item {
    margin-bottom: 1.5em;
}

.ingredient-title {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.ingredient-subtitle {
    font-weight: 700;
    margin-bottom: 0.5em;
}

.timeline h3 {
    font-size: 1.2em;
    margin-top: 2em;
    margin-bottom: 0.2em;
}

.testimonials-image {
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    max-width: 100%;
}

.product-benefits-image {
    display: block;
    margin: 25px auto;
    max-width: 500px;
    width: 100%;
}

/* --- Section "3 Erreurs" --- */
.mistakes-box {
    background-color: rgba(208, 4, 4, 0.08);
    color: #5a0009;
    padding: 25px;
    border-radius: 8px;
    margin-top: 25px;
}
.mistakes-box h3 {
    font-size: 1.2em;
    color: #121212;
    margin-top: 2em;
    margin-bottom: 1em;
}
.mistakes-box h3:first-of-type {
    margin-top: 0;
}
.mistakes-box p {
    color: #121212;
    margin-bottom: 1.2em;
}
.mistakes-box p:last-of-type {
    margin-bottom: 0;
}

/* --- Section Recommandation --- */
.recommendation-box {
    text-align: left;
}
.bundle-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}
.bundle-list li {
    margin-bottom: 1em;
}

/* --- Section CTA Final --- */
.final-cta-section {
    padding-top: 30px;
    padding-bottom: 40px;
}
.cta-link {
    font-weight: bold;
    font-size: 1.1em;
    display: inline-block;
    margin-bottom: 1em;
}
.final-checklist {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}
.final-checklist li {
    margin-bottom: 0.7em;
    font-weight: 500;
}
.update-box-final {
    background-color: rgba(208, 4, 4, 0.12);
    color: #5a0009;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}
.update-box-final p:last-child {
    margin-bottom: 0;
}

/* MODIFICATION : Changement des styles du bouton pour l'animation */
.cta-button {
    display: block;
    width: 100%;
    background-color: #00AA25;
    color: white;
    text-align: center;
    padding: 18px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0, 170, 37, 0.3);
    
    /* Propriétés pour l'animation : état initial */
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px); /* Commence 50px plus bas */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, background-color 0.3s, visibility 0s 0.5s;
}

/* NOUVEAU : Classe pour rendre le bouton visible (état final de l'animation) */
.cta-button.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Remonte à sa position d'origine */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, background-color 0.3s, visibility 0s 0s;
}

.cta-button:hover {
    background-color: #008f1f;
    color: white;
    /* Ajustement du transform pour le survol pour qu'il ne saute pas */
    transform: translateY(-2px) !important; 
    text-decoration: none;
}


/* --- Responsive pour les mobiles --- */
@media (max-width: 600px) {
    body {
        line-height: 1.6;
    }

    h1 {
        font-size: 1.9em;
    }

    .content-section h2, .content-section h2.section-title {
        font-size: 1.5em;
    }

    .pre-headline {
        font-size: 1em;
    }

    .subtitle {
        font-size: 1em;
    }
    
    .cta-button {
        font-size: 1.1em;
        padding: 16px 10px;
    }
}

/* --- NOUVEAUX STYLES --- */

/* Boîte d'information générale (pour les sections "Ce que j'aime" et "FAQ") */
.info-box {
    background-color: #FAF8F3; /* Fond beige clair */
    border: 1px solid rgba(6, 6, 6, 0.3);
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 20px;
}

.info-box h2 {
    font-size: 1.4em;
    color: #000;
    text-align: left;
    margin-top: 0;
}

.info-box h3 {
    font-size: 1.1em;
    color: #000;
    margin-top: 2em;
    margin-bottom: 1em;
}

.info-box p, .info-box li {
    font-size: 0.95em;
}

/* Styles spécifiques pour les listes "pour/contre" */
.info-box ol {
    padding-left: 25px;
    margin-bottom: 1.5em;
}

.info-box ol li {
    margin-bottom: 0.8em;
}

/* Styles spécifiques pour la FAQ */
.faq-box ul {
    list-style: none;
    padding-left: 10px;
}

.faq-box ul li {
    margin-bottom: 0.8em;
}

.faq-box ul li::before {
    content: "•";
    color: var(--color-heading-blue);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* --- NOUVEAUX STYLES : Section Garantie --- */
.guarantee-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #F1FAFF; /* Fond bleu très clair */
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.guarantee-icon {
    flex: 0 0 80px; /* Ne grandit pas, ne rétrécit pas, base de 80px */
}

.guarantee-icon img {
    max-width: 100%;
}

.guarantee-text {
    flex: 1; /* Prend le reste de l'espace */
}

.guarantee-text h3 {
    font-size: 1.5em;
    color: #000;
    margin-top: 0;
    margin-bottom: 1em;
}

.guarantee-text p {
    font-size: 1em;
    margin-bottom: 1.2em;
}

.guarantee-text .cta-button {
    margin-top: 1.5em;
}


/* Ajustement pour la section garantie sur mobile */
@media (max-width: 600px) {
    .guarantee-box {
        flex-direction: column; /* Passe les éléments en colonne */
        align-items: center; /* Centre les éléments */
        text-align: center;
        gap: 15px;
    }

    .guarantee-icon {
        flex: 0 0 60px; /* Réduit la taille de l'icône */
        margin-bottom: 10px;
    }
}
    /* --- NOUVEAUX STYLES : Section Références --- */

.reference-item {
    margin-bottom: 2.5em; /* Espace entre chaque référence */
}

.reference-item:last-of-type {
    margin-bottom: 0;
}

.reference-item h3 {
    font-size: 1.1em;
    color: #000;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.reference-item p {
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

.reference-item a {
    word-break: break-all; /* Permet aux longs liens de passer à la ligne */
}

.cta-button.final-cta {
    margin-top: 30px;
}


.sticky-cta.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .sticky-cta {
        width: 90%;
        padding: 15px 10px;
        font-size: 1em;
        bottom: 10px;
    }
}

.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background-color: #2ecc71;
    color: white;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 100px);
    transition: all 0.4s ease-in-out;
}

