/*
 * style.css
 * Simple et léger pour des pages d'affiliation axées sur la conversion et le SEO.
 */

/* --- Réinitialisation et Base --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6; 
    color: #333;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Typographie et En-têtes --- */
h1 {
    font-size: 2.2em;
    color: #0056b3; 
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    text-align: center;
}

h2 {
    font-size: 1.5em;
    color: #333;
    margin-top: 25px;
    border-left: 4px solid #0056b3;
    padding-left: 10px;
}

p {
    margin-bottom: 15px;
}

/* --- STRUCTURE PRINCIPALE DES PAGES PRODUITS --- */

.intro-visual {
    display: flex;
    gap: 25px; 
    margin-bottom: 30px;
    align-items: flex-start; 
    flex-wrap: nowrap; 
}

.product-image-section {
    flex-shrink: 0; 
    width: 250px; 
    text-align: center;
}

.product-image {
    width: 100%;
    height: auto;
    max-width: 100%; 
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.key-points {
    flex-grow: 1; 
    margin-top: 0; 
}

/* --- STYLES FAQ (Utilisation de <details>/<summary>) --- */

.faq-section details {
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.faq-section summary {
    font-weight: bold;
    cursor: pointer;
    color: #0056b3;
    padding: 5px 0;
    outline: none;
}

.faq-section p {
    padding-top: 10px;
    margin: 0;
    border-top: 1px solid #eee;
    font-size: 0.95em;
    color: #555;
}

/* --- STYLE CONCLUSION --- */

.conclusion-section {
    padding: 15px;
    margin-top: 30px;
    border-radius: 6px;
    background-color: #eaf8e9; 
    border: 1px solid #c7e8c4;
}

.conclusion-section h2 {
    border: none;
    padding-left: 0;
    color: #1d7e17; 
    text-align: center;
    margin-top: 0;
}

/* --- AMÉLIORATION ESTHÉTIQUE DE L'INDEX PAGINÉ --- */

.article-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 20px;
}

.article-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #0056b3;
    transition: box-shadow 0.3s ease;
}

.article-summary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-content {
    flex-grow: 1;
    padding-right: 20px;
}

.summary-content h3 {
    margin-top: 0;
    font-size: 1.3em;
}

/* NOUVEAU: Ajout d'une icône pour les articles dans l'index */
.article-summary h3 a::before {
    content: "🎵"; 
    margin-right: 10px;
    font-size: 1.1em;
    display: inline-block;
    vertical-align: middle;
}

.summary-action .read-more {
    display: block;
    padding: 8px 15px;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    white-space: nowrap;
}

.summary-action .read-more:hover {
    background-color: #004494;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 15px;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.pagination a {
    background-color: #0056b3;
    color: white;
}

.pagination a:hover {
    background-color: #004494;
}

.pagination span.disabled {
    background-color: #e0e0e0;
    color: #888;
    cursor: not-allowed;
}

.pagination span.current-page {
    background-color: #ff6600;
    color: white;
}

/* --- RÈGLES MOBILE --- */

@media (max-width: 700px) {
    .container {
        margin: 20px;
        padding: 10px;
    }
    .intro-visual {
        flex-direction: column;
        align-items: center; 
        gap: 0;
    }
    .product-image-section {
        width: 80%; 
        margin-bottom: 20px;
    }
    .key-points h2 {
        border-left: none;
        padding-left: 0;
    }
    .article-summary {
        flex-direction: column;
        align-items: stretch;
    }
    .summary-content {
        padding-right: 0;
        margin-bottom: 15px;
    }
    .summary-action .read-more {
        text-align: center;
    }
}

/* --- Styles CTA et Footer --- */

.cta-section {
    text-align: center;
    background-color: #e6f0ff; 
    padding: 30px 20px;
    border-radius: 6px;
    margin: 30px 0;
    border: 1px solid #cce0ff;
}

.cta-section h2 {
    color: #0056b3;
    border: none;
    margin-top: 0;
    padding-left: 0;
}

.cta-button {
    display: inline-block;
    background-color: #ff6600; 
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 50px; 
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #e65c00; 
    transform: translateY(-2px);
}

.disclaimer {
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
}

footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #888;
    margin-top: 40px;
}

footer a {
    color: #0056b3;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}