/* ==================== STYLE BLOG — OREKA ==================== */
/* Styles partagés pour les pages articles/blog                  */
/* Base extraite de index.html + styles spécifiques articles     */
/* ============================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Open+Sans:wght@300;400;600;700&display=swap');

/* ==================== VARIABLES ==================== */
:root {
    --bleu-pastel: #A7C7E7;
    --vert-menthe: #C1E1C1;
    --beige: #F5F5DC;
    --noir: #2C3E50;
    --gris: #7F8C8D;
    --gris-clair: #ECF0F1;
    --rouge-accent: #E74C3C;
    --vert-accent: #27AE60;
    --blanc: #FFFFFF;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--noir);
    background-color: var(--beige);
}

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

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
header {
    background-color: var(--blanc);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--noir);
}

.logo-img {
    height: 90px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--noir);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--rouge-accent);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--noir);
}

/* ==================== CTA BUTTON ==================== */
.cta-button {
    background: linear-gradient(135deg, var(--rouge-accent), var(--vert-accent));
    color: var(--blanc);
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 15px;
}

.cta-button a {
    color: var(--blanc);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(237, 235, 235, 0.3);
}

/* ==================== SECTION BASE ==================== */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    color: var(--noir);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gris);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.accent-line {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--rouge-accent), var(--vert-accent));
    margin-bottom: 20px;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    padding-top: 110px;
    padding-bottom: 10px;
    background: var(--blanc);
}

.breadcrumb .container {
    font-size: 14px;
    color: var(--gris);
}

.breadcrumb a {
    color: var(--gris);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--rouge-accent);
}

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--gris-clair);
}

/* ==================== ARTICLE LAYOUT ==================== */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header h1 {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    color: var(--noir);
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--gris);
    flex-wrap: wrap;
}

.article-meta .separator {
    color: var(--gris-clair);
}

/* ==================== ARTICLE CONTENT ==================== */
.article-content h2 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    color: var(--noir);
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-content h3 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: var(--noir);
    margin-top: 28px;
    margin-bottom: 12px;
}

.article-content p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: var(--noir);
    font-size: 16px;
}

.article-content ul,
.article-content ol {
    margin: 16px 0 20px 24px;
    line-height: 1.8;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 8px;
    font-size: 16px;
}

.article-content a {
    color: var(--rouge-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--rouge-accent);
}

.article-content strong {
    color: var(--noir);
    font-weight: 600;
}

/* ==================== BLOCKQUOTE / ENCADRE SCIENTIFIQUE ==================== */
.article-content blockquote {
    background: linear-gradient(135deg, rgba(167, 199, 231, 0.15), rgba(193, 225, 193, 0.15));
    border-left: 4px solid var(--vert-accent);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: normal;
}

.article-content blockquote p {
    margin-bottom: 8px;
    font-size: 15px;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    font-size: 13px;
    color: var(--gris);
    margin-top: 8px;
    font-style: normal;
}

/* ==================== TABLEAU COMPARATIF ==================== */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.article-content table th {
    background: var(--noir);
    color: var(--blanc);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gris-clair);
}

.article-content table tr:nth-child(even) {
    background: rgba(245, 245, 220, 0.5);
}

/* ==================== AUTHOR BOX ==================== */
.author-box {
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box .author-info h3 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--noir);
    margin-bottom: 4px;
}

.author-box .author-info p {
    font-size: 14px;
    color: var(--gris);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==================== ABOUT CABINET (fin d'article) ==================== */
.cabinet-info {
    background: var(--blanc);
    border-radius: 12px;
    padding: 30px;
    margin: 0 auto 40px;
    max-width: 800px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.cabinet-info h2 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    color: var(--noir);
    margin-bottom: 16px;
}

.cabinet-info p {
    font-size: 15px;
    color: var(--gris);
    line-height: 1.7;
    margin-bottom: 10px;
}

.cabinet-info .cabinet-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
}

.cabinet-info .cabinet-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gris);
}

.cabinet-info .cabinet-detail i {
    color: var(--rouge-accent);
    width: 16px;
    text-align: center;
}

/* ==================== RELATED ARTICLES ==================== */
.related-articles {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.related-articles h2 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    color: var(--noir);
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-card {
    background: var(--blanc);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-card h3 {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--noir);
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-card p {
    font-size: 13px;
    color: var(--gris);
    line-height: 1.5;
}

/* ==================== ARTICLE CTA ==================== */
.article-cta {
    text-align: center;
    background: var(--blanc);
    padding: 40px 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto 60px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.article-cta h2 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    color: var(--noir);
    margin-bottom: 12px;
}

.article-cta p {
    font-size: 1rem;
    color: var(--gris);
    margin-bottom: 24px;
}

/* ==================== BLOG GRID (page accueil) ==================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-card {
    background: var(--blanc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-body {
    padding: 24px;
}

.blog-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--noir);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--gris);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card .read-more {
    color: var(--rouge-accent);
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
}

/* ==================== FAQ (pour articles avec FAQ) ==================== */
.faq-item {
    background: var(--blanc);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--noir);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--gris-clair);
}

.faq-question span:last-child {
    font-size: 24px;
    color: var(--rouge-accent);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 30px 25px;
    display: none;
    color: var(--gris);
    line-height: 1.7;
}

.faq-answer ul {
    margin: 15px 0 15px 20px;
}

.faq-answer ul li {
    margin-bottom: 10px;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--noir);
    color: var(--blanc);
    padding: 60px 0 30px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.footer-logo img {
    height: 60px;
    margin-bottom: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--blanc);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--blanc);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact i {
    color: var(--rouge-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
}

.footer-legal a:hover {
    color: var(--blanc);
}

/* ==================== RESPONSIVE — TABLET (max 968px) ==================== */
@media screen and (max-width: 968px) {

    /* NAVIGATION */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--blanc);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        align-items: flex-start;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.show { left: 0; }

    .nav-links a {
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }

    .nav-toggle { display: block; }

    /* SECTIONS */
    .section { padding: 48px 0; }
    .container { padding: 0 20px; }
    .section-title { font-size: 1.7rem; line-height: 1.3; }
    .section-subtitle { font-size: 0.95rem; }

    /* ARTICLE */
    .article-header h1 { font-size: 1.7rem; }
    .article-content h2 { font-size: 1.35rem; }
    .article-content h3 { font-size: 1.1rem; }

    /* BREADCRUMB */
    .breadcrumb { padding-top: 80px; }

    /* AUTHOR BOX */
    .author-box { flex-direction: column; text-align: center; }

    /* FAQ */
    .faq-item { padding: 18px; }
    .faq-question { font-size: 15px; }
    .faq-answer { font-size: 14px; }

    /* FOOTER */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .footer-column { margin-bottom: 16px; }
    .footer-contact p { justify-content: center; }

    /* TYPOGRAPHY */
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.2rem; }
}

/* ==================== RESPONSIVE — SMALL MOBILE (max 576px) ==================== */
@media screen and (max-width: 576px) {
    .section { padding: 36px 0; }
    .container { padding: 0 16px; }
    .section-title { font-size: 1.45rem; }
    .section-subtitle { font-size: 0.9rem; }

    .article-container { padding: 30px 16px 40px; }
    .article-header h1 { font-size: 1.5rem; }
    .article-content h2 { font-size: 1.2rem; }
    .article-content p { font-size: 15px; }

    .breadcrumb { padding-top: 75px; }

    .cta-button { padding: 12px 22px; font-size: 14px; }

    .related-grid { grid-template-columns: 1fr; }

    .faq-question { font-size: 14px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }

    body { font-size: 14px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
}

/* ==================== RESPONSIVE — EXTRA SMALL MOBILE (max 370px) ==================== */
@media screen and (max-width: 370px) {
    .section { padding: 28px 0; }
    .container { padding: 0 12px; }
    .section-title { font-size: 1.25rem; }

    .article-header h1 { font-size: 1.3rem; }
    .article-content h2 { font-size: 1.1rem; }
    .article-content p { font-size: 14px; }

    .cta-button { font-size: 13px; padding: 11px 18px; }

    .faq-question { font-size: 13px; }
    .faq-answer { font-size: 13px; }

    .footer-grid { grid-template-columns: 1fr; gap: 16px; }
}
