/* ============================================================
   module-description-styles.css — Style commun des pages description
   ============================================================ */

.modern-header {
    background: linear-gradient(
        145deg,
        var(--module-hero-color-1, #008B74) 0%,
        var(--module-hero-color-2, #007A61) 25%,
        var(--module-hero-color-3, #00B794) 50%,
        var(--module-hero-color-1, #008B74) 100%
    );
    color: #ffffff;
    padding: 58px 0;
    margin: -20px -20px 20px -20px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.modern-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><defs><pattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'><path d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/></pattern></defs><rect width='100' height='100' fill='url(%23grid)'/></svg>");
    opacity: 0.2;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-title {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #ffffff;
}

.header-title i {
    font-size: 0.8em;
}

.header-subtitle {
    font-size: 1.3em;
    margin: 0 0 1.25rem 0;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
    text-align: center;
}

.header-more {
    margin-top: 1rem;
    opacity: 0.95;
    text-align: center;
}

.header-more a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.header-more a:hover {
    color: #FF6300 !important;
    background: rgba(255, 255, 255, 0.2);
    border-color: #FF6300;
    opacity: 1;
}

.desc-section {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 139, 116, 0.06);
    border: 1px solid rgba(0, 139, 116, 0.08);
}

.desc-section h2 {
    color: #008B74;
    font-size: 1.35em;
    margin-bottom: 1em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid rgba(0, 139, 116, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.desc-section p {
    line-height: 1.6;
    margin-bottom: 0.8em;
}

.desc-section ul {
    margin: 0.5em 0 1em 0;
    padding-left: 1.25em;
    line-height: 1.6;
}

#footer {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    margin-top: 2rem;
    color: #6c757d;
    font-size: 0.9em;
    line-height: 1.5;
    border-top: 1px solid rgba(0, 139, 116, 0.15);
    background: rgba(255, 255, 255, 0.92);
}

#footer .footer-copyright {
    margin-top: 0;
    margin-bottom: 0;
    color: #6c757d;
}

@media (max-width: 768px) {
    .modern-header {
        padding: 40px 0;
        margin: -20px -10px 20px -10px;
    }

    .header-title {
        font-size: 2.2em;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .modern-header {
        padding: 32px 0;
    }

    .header-title {
        font-size: 1.8em;
    }
}

/* ----- DARK MODE ----- */
[data-theme="dark"] .desc-section {
    background: var(--bg-card);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-border);
}

[data-theme="dark"] .desc-section h2 {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-border);
}

[data-theme="dark"] .desc-section p,
[data-theme="dark"] .desc-section ul {
    color: var(--text-secondary);
}

[data-theme="dark"] .header-more a {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .header-more a:hover {
    color: var(--accent-secondary) !important;
    border-color: var(--accent-secondary);
}

[data-theme="dark"] #footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-top-color: var(--accent-border);
}

[data-theme="dark"] #footer .footer-copyright {
    color: var(--text-muted);
}
