/* Styles spécifiques pour les pages de contenu */

/* Header de page */
.page-header {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    margin-top: 70px;
}

.page-header .container {
    text-align: center;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Navigation des chapitres */
.chapter-nav {
    padding: 40px 0;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

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

.chapter-nav-item {
    display: block;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.chapter-nav-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.chapter-nav-item.active {
    background: var(--primary-color);
    color: white;
}

.chapter-nav-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}

.chapter-nav-item.active .chapter-nav-number {
    background: white;
    color: var(--primary-color);
}

.chapter-nav-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.chapter-nav-item p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

.chapter-nav-item.active p {
    opacity: 0.9;
}

/* Contenu de la page */
.page-content {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    gap: 80px;
}

/* Sections de chapitre */
.chapter-section {
    scroll-margin-top: 90px;
}

.chapter-header {
    margin-bottom: 40px;
    text-align: center;
}

.chapter-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.chapter-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.chapter-content {
    max-width: none;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 22px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.timeline-content p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* Highlight boxes */
.highlight-box {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    margin: 40px 0;
    text-align: center;
}

.highlight-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.highlight-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Types de CBD */
.cbd-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.cbd-type-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.cbd-type-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cbd-type-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cbd-type-content {
    padding: 20px;
}

.cbd-type-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.cbd-type-content strong {
    color: var(--primary-color);
}

/* Huiles porteuses */
.carrier-oils {
    margin: 40px 0;
}

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

.oil-item {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent-color);
}

.oil-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.oil-item p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.oil-item strong {
    color: var(--secondary-color);
}

/* Méthodes d'administration */
.administration-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.method-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.method-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.method-card p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.method-card strong {
    color: var(--secondary-color);
}

/* Recette CBD */
.cbd-recipe-box {
    background: var(--light-color);
    border-radius: var(--radius);
    padding: 30px;
    margin: 40px 0;
    border-left: 4px solid var(--secondary-color);
}

.cbd-recipe-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.recipe-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.recipe-ingredients h4,
.recipe-steps h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.recipe-ingredients ul,
.recipe-steps ol {
    padding-left: 20px;
}

.recipe-ingredients li,
.recipe-steps li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Conseils CBD */
.cbd-tip {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    margin: 40px 0;
    text-align: center;
}

.cbd-tip h3 {
    margin-bottom: 15px;
}

.cbd-tip p {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Système endocannabinoïde */
.endo-system-intro {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-style: italic;
    opacity: 0.8;
}

.endo-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.endo-component {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.endo-component h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.endo-component p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.endo-component strong {
    color: var(--secondary-color);
}

/* Mécanismes CBD */
.cbd-mechanism {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.mechanism-step {
    text-align: center;
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--radius);
    position: relative;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.mechanism-step h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.mechanism-step p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Citation endocannabinoïde */
.endo-quote {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--radius);
    margin: 40px 0;
    text-align: center;
    border-left: 4px solid var(--accent-color);
}

.endo-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.endo-quote cite {
    font-weight: 600;
    color: var(--primary-color);
}

/* Navigation entre chapitres */
.chapter-navigation {
    padding: 60px 0;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    padding: 15px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.nav-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.nav-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .chapter-nav-grid {
        grid-template-columns: 1fr;
    }

    .cbd-types-grid,
    .endo-components,
    .carrier-oils .oil-comparison {
        grid-template-columns: 1fr;
    }

    .recipe-content {
        grid-template-columns: 1fr;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 12px;
    }
}
