/* content-pages.css - Shared CSS for DEC content article pages */

        /* FORCE HEADER VISIBILITY */
        header,
        #masthead,
        .site-header,
        .elementor-location-header {
            position: relative !important;
            z-index: 9999 !important;
            opacity: 1 !important;
            visibility: visible !important;
        }

        /* FORCE FOOTER VISIBILITY */
        .mqa-footer {
            position: relative !important;
            z-index: 100 !important;
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            background-color: #f8fafc !important;
            margin-top: 60px !important;
        }

        /* GLOBAL CONTAINER */
        .mqa-dec-art-container {
            min-height: 100vh;
            position: relative;
            background: transparent;
            padding: 60px 20px;
            font-family: system-ui, -apple-system, sans-serif;
            color: #1e293b;
        }

        /* GRID BACKGROUND */
        .mqa-dec-pattern-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            z-index: -1;
            /* FIX: Behind everything including header */
            pointer-events: none;
            background-image:
                linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
            background-size: 40px 40px;
            background-color: #ffffff;
        }

        .mqa-dec-article-wrapper {
            position: relative;
            z-index: 10;
            max-width: 900px;
            margin: 0 auto;
        }

        /* PAPER SHEET */
        .mqa-dec-paper-sheet {
            background: #ffffff;
            border: 2px solid #000000;
            padding: 80px 60px;
            border-radius: 12px;
            box-shadow: 12px 12px 0px #000000;
            position: relative;
        }

        /* HEADER */
        .mqa-dec-header {
            text-align: left;
            margin-bottom: 40px;
        }

        .mqa-dec-meta {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #666;
            margin-bottom: 15px;
            border-bottom: 2px solid #000;
            display: inline-block;
            padding-bottom: 5px;
            font-weight: 700;
        }

        .mqa-dec-title {
            font-size: 3rem;
            line-height: 1.1;
            font-weight: 900;
            margin: 0 0 20px 0;
            color: #000;
            letter-spacing: -2px;
            text-transform: uppercase;
        }

        /* HIGHLIGHT */
        .mqa-highlight-title {
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 0;
            background: linear-gradient(120deg, #fde047 0%, #fde047 100%);
            padding: 2px 10px;
            transform: rotate(-2deg);
            display: inline-block;
        }

        .mqa-dec-lead {
            font-size: 1.25rem;
            line-height: 1.5;
            color: #444;
            font-weight: 400;
            max-width: 90%;
        }

        .mqa-divider-sketch {
            border: 0;
            height: 2px;
            background: #000;
            margin: 50px 0;
            opacity: 0.1;
        }

        /* CONTENT */
        .mqa-dec-content {
            font-size: 1.1rem;
            line-height: 1.7;
            color: #222;
        }

        .mqa-section-title {
            font-size: 1.8rem;
            font-weight: 800;
            margin-top: 60px;
            margin-bottom: 30px;
            color: #000;
            position: relative;
            display: inline-block;
        }

        .mqa-section-title::after {
            content: '';
            display: block;
            width: 100%;
            height: 8px;
            background: #fde047;
            opacity: 0.6;
            position: absolute;
            bottom: 2px;
            left: 0;
            z-index: -1;
            transform: skewX(-10deg);
        }

        /* CARDS */
        .mqa-rule-card {
            border: 2px solid #000;
            padding: 30px;
            border-radius: 12px;
            background: #fff;
            box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        .mqa-rule-card:hover {
            box-shadow: 8px 8px 0px #000;
            transform: translateY(-2px);
            transition: all 0.2s;
        }

        /* RULES BOX (Stats) */
        .mqa-rules-box {
            background: #fff;
            border: 2px solid #000;
            border-radius: 12px;
            padding: 20px;
            display: grid;
            box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
        }

        .mqa-rule-item {
            text-align: center;
        }

        /* CHECKLIST */
        .mqa-checklist {
            list-style: none;
            padding: 0;
            margin-top: 20px;
        }

        .mqa-checklist li {
            margin-bottom: 20px;
            padding-left: 40px;
            position: relative;
        }

        .mqa-checklist li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 2px;
            width: 24px;
            height: 24px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
        }

        /* ALERT BOX */
        .mqa-alert-box {
            background: #f1f5f9;
            padding: 20px;
            border-radius: 6px;
            border-left: 4px solid #64748b;
            font-size: 1rem;
            margin-top: 30px;
            margin-bottom: 30px;
        }

        /* BUTTONS */
        .mqa-footer-actions {
            text-align: center;
            margin-top: 50px;
        }

        .mqa-btn-art {
            display: inline-block;
            padding: 18px 36px;
            background: #000;
            color: #fff;
            font-weight: 800;
            font-size: 1.1rem;
            border: 2px solid #000;
            box-shadow: 6px 6px 0px #000;
            border-radius: 12px;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .mqa-btn-art:hover {
            background: #fff;
            color: #000;
            transform: translate(-2px, -2px);
            box-shadow: 8px 8px 0px #000;
        }

        /* STABILO */
        .mqa-stabilo-link {
            font-weight: 800;
            text-decoration: none !important;
            color: #000 !important;
            display: inline;
            transition: background-color 0.2s ease;
            box-decoration-break: clone;
            -webkit-box-decoration-break: clone;
        }

        .mqa-stabilo-link:hover {
            filter: brightness(1.15);
            transform: none !important;
            /* Prevent jumping */
        }

        .mqa-stabilo-yellow {
            background: linear-gradient(100deg, rgba(253, 224, 71, 0) 0%, rgba(253, 224, 71, 0.8) 5%, rgba(253, 224, 71, 0.8) 95%, rgba(253, 224, 71, 0) 100%);
            padding: 0 5px;
        }

        .mqa-stabilo-green {
            background: linear-gradient(100deg, rgba(134, 239, 172, 0) 0%, rgba(134, 239, 172, 0.8) 5%, rgba(134, 239, 172, 0.8) 95%, rgba(134, 239, 172, 0) 100%);
            padding: 0 5px;
        }

        .mqa-stabilo-pink {
            background: linear-gradient(100deg, rgba(253, 164, 175, 0) 0%, rgba(253, 164, 175, 0.8) 5%, rgba(253, 164, 175, 0.8) 95%, rgba(253, 164, 175, 0) 100%);
            padding: 0 5px;
        }

        .mqa-stabilo-orange {
            background: linear-gradient(100deg, rgba(253, 186, 116, 0) 0%, rgba(253, 186, 116, 0.8) 5%, rgba(253, 186, 116, 0.8) 95%, rgba(253, 186, 116, 0) 100%);
            padding: 0 5px;
        }

        /* SKETCH ICONS */
        .mqa-sketch-icon {
            width: 32px;
            height: 32px;
            stroke: #000;
            stroke-width: 2.5;
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
            display: inline-block;
            vertical-align: middle;
            margin-right: 10px;
        }

        .svg-sm {
            width: 28px;
            height: 28px;
        }

        /* TILTED HIGHLIGHTS */
        .mqa-tilted-base {
            color: #000;
            font-weight: 900;
            text-transform: uppercase;
            padding: 5px 15px;
            display: inline-block;
            transform: rotate(-2deg);
            box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
            line-height: 1.2;
            margin: 0 5px;
        }

        .mqa-tilted-orange {
            background-color: #fdba74;
            /* Orange */
        }

        .mqa-tilted-purple {
            background-color: #d8b4fe;
            /* Purple */
        }

        .mqa-tilted-blue {
            background-color: #93c5fd;
            /* Blue */
        }

        .mqa-tilted-green {
            background-color: #86efac;
            /* Green */
        }

        @media (max-width: 768px) {
            .mqa-dec-art-container {
                padding: 20px 8px;
            }

            .mqa-dec-article-wrapper {
                width: 100%;
                box-sizing: border-box;
            }

            .mqa-dec-paper-sheet {
                padding: 24px 16px !important;
                box-shadow: 4px 4px 0px #000000 !important;
            }

            .mqa-dec-paper-sheet ul {
                padding-left: 24px !important;
            }

            .mqa-dec-title {
                font-size: 2.5rem;
            }

            .mqa-rules-box {
                grid-template-columns: 1fr !important;
            }
        }

        /* NEW ALERT BOX STYLES (V2) */
        .mqa-alert-box-v2 {
            padding: 24px 32px;
            border-radius: 12px;
            margin: 30px 0;
            font-size: 1.05rem;
            line-height: 1.6;
            box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
        }

        .mqa-alert-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .mqa-alert-header h3 {
            margin: 0;
            font-size: 1.15rem;
            font-weight: 800;
            margin-left: 15px;
        }

        /* Shared Yellow/Black Style */
        .mqa-alert-shared-yellow {
            background-color: #fffbeb;
            color: #1e293b;
        }

        /* Natural Underline Orange */
        .mqa-underline-orange {
            display: inline-block;
            position: relative;
            padding-bottom: 2px;
        }

        .mqa-underline-orange::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 8px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c20-3 50 5 96-2' vector-effect='non-scaling-stroke' stroke='%23fb923c' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: 100% 100%;
            opacity: 0.9;
            transform: rotate(-1deg);
        }

        /* ACTION BUTTONS ANIMATIONS */
        .mqa-btn-action-shared {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 600px;
            padding: 20px;
            text-decoration: none !important;
            font-weight: 900;
            font-size: 1.2rem;
            border-radius: 12px;
            border: 3px solid #000000;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .mqa-btn-action-white {
            background: #ffffff;
            color: #000000;
            box-shadow: 6px 6px 0px #000000;
        }

        .mqa-btn-action-black {
            background: #000000;
            color: #ffffff;
            box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
        }

        .mqa-btn-action-shared:hover {
            transform: translate(-2px, -2px);
        }

        .mqa-btn-action-white:hover {
            box-shadow: 8px 8px 0px #000000;
        }

        .mqa-btn-action-black:hover {
            box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
        }

        .mqa-btn-action-shared:hover .mqa-sketch-icon {
            transform: translateX(5px);
            transition: transform 0.2s ease;
        }

        /* STABILO UPDATES */
        a.mqa-stabilo-link {
            text-decoration: none;
            color: inherit;
            cursor: pointer;
            position: relative;
            transition: all 0.3s ease;
        }

        a.mqa-stabilo-link:hover {
            transform: scale(1.05);
            display: inline-block;
            color: #000;
        }

        a.mqa-stabilo-link.mqa-stabilo-green:hover {
            background: linear-gradient(100deg, rgba(134, 239, 172, 0) 0%, rgba(134, 239, 172, 1) 5%, rgba(134, 239, 172, 1) 95%, rgba(134, 239, 172, 0) 100%);
        }

        /* MÉTA-INFOS ARTICLE (SEO) */
        .mqa-article-meta {
            margin: 25px 0;
            font-size: 0.95rem;
        }

        .mqa-stabilo-blue {
            background: linear-gradient(100deg, rgba(147, 197, 253, 0) 0%, rgba(147, 197, 253, 0.6) 5%, rgba(147, 197, 253, 0.6) 95%, rgba(147, 197, 253, 0) 100%);
        }

        .mqa-meta-full-line {
            display: inline-flex;
            align-items: center;
            gap: 16px;
            padding: 3px 20px;
        }

        .mqa-meta-author,
        .mqa-meta-date {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .mqa-meta-divider {
            color: #666;
            font-weight: 400;
        }

        .mqa-meta-author svg,
        .mqa-meta-date svg {
            flex-shrink: 0;
        }

        /* MOBILE OPTIMIZATIONS */
        @media (max-width: 768px) {
            .mqa-rule-card {
                padding: 18px !important;
            }

            .mqa-checklist li {
                padding-left: 32px !important;
            }

            .mqa-section-title {
                font-size: 1.5rem !important;
            }
        }

/* === Additional shared styles (from analyse-jury, decryptage, etc.) === */

.mqa-toc-wrapper {
    padding-top: 20px !important;
    margin-top: 20px !important;
}

.mqa-dec-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 20px;
}

/* Yellow Button Variant */
.mqa-btn-art-yellow {
    background: #facc15 !important;
    color: #000 !important;
}

.mqa-btn-art-yellow:hover {
    background: #fff !important;
    box-shadow: 8px 8px 0px #000 !important;
}
