@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Merriweather:wght@300;400;700&display=swap');

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

        body {
            font-family: 'Merriweather', Georgia, serif;
            background-color: #eceae6;
            color: #2c1810;
            line-height: 1.8;
        }

        .header {
            background: linear-gradient(135deg, #5c3a1e 0%, #3d2614 50%, #5c3a1e 100%);
            border-bottom: 4px solid #c9a84c;
            border-top: 4px solid #c9a84c;
            padding: 30px 20px;
            text-align: center;
            position: relative;
        }

        .header h1 {
            font-family: 'Cinzel', serif;
            color: #f5e6c8;
            font-size: 2.8em;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            letter-spacing: 3px;
        }

        /* === BOUTON RETOUR === */
        .btn-retour {
            position: absolute;
            top: 50%;
            left: 20px;
            transform: translateY(-50%);
            padding: 8px 18px;
            font-family: 'Cinzel', serif;
            font-size: 0.85em;
            font-weight: 700;
            color: #f5e6c8;
            background: linear-gradient(135deg, #7a4f2a 0%, #5c3a1e 50%, #7a4f2a 100%);
            border: 2px solid #c9a84c;
            border-radius: 6px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-retour:hover {
            background: linear-gradient(135deg, #9a6f4a 0%, #7a4f2a 50%, #9a6f4a 100%);
            transform: translateY(-50%) translateX(-2px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        }

        .btn-retour::before { content: '←'; font-size: 1.2em; }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .intro-section {
            background: linear-gradient(135deg, #fff9f0 0%, #f5ede0 100%);
            border: 3px solid #c9a84c;
            border-radius: 8px;
            padding: 35px;
            margin-bottom: 40px;
            box-shadow: 0 4px 15px rgba(92, 58, 30, 0.15);
        }

        .intro-text p { margin-bottom: 12px; text-align: justify; font-size: 0.95rem; }

        .conflict-section {
            background: linear-gradient(135deg, #fff9f0 0%, #f5ede0 100%);
            border: 3px solid #c9a84c;
            border-radius: 8px;
            padding: 20px 35px;
            margin-top: 40px;
            box-shadow: 0 4px 15px rgba(92, 58, 30, 0.15);
        }

        .section-title {
            font-family: 'Cinzel', serif;
            text-align: center;
            font-size: 1.5em;
            color: #5c3a1e;
            margin-bottom: 25px;
            padding: 12px 25px;
            border: 3px solid #5c3a1e;
            background: linear-gradient(135deg, #fff9f0 0%, #f5ede0 100%);
            display: inline-block;
            position: relative;
            left: 50%;
            transform: translateX(-50%);
        }

        .tree-wrapper {
            display: flex;
            justify-content: center;
            padding: 25px;
            background: #fff;
            border: 3px solid #c9a84c;
            border-radius: 8px;
            overflow-x: auto;
            position: relative;
        }

        .tree {
            position: relative;
            width: 950px;
            min-height: 960px;
            font-family: 'Arial', sans-serif;
        }

        /* === LÉGENDE === */
        .legend {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 12px 18px;
            font-family: 'Arial', sans-serif;
            background: linear-gradient(135deg, #fff9f0 0%, #f5ede0 100%);
            border: 2px solid #c9a84c;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(92, 58, 30, 0.15);
            z-index: 20;
        }

        .legend-title {
            font-family: 'Cinzel', serif;
            font-size: 0.95em;
            color: #5c3a1e;
            margin-bottom: 8px;
            text-align: center;
            border-bottom: 1px solid #c9a84c;
            padding-bottom: 4px;
        }

        .legend-item { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 0.88em; }
        .legend-label { color: #ff0000; font-weight: bold; font-size: 1.1em; }

        .num {
            position: absolute;
            width: 40px;
            height: 40px;
            background: #ff0000;
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.05em;
            z-index: 10;
        }

        .box {
            position: absolute;
            background: #fff9a0;
            border: 2.5px solid #333;
            padding: 8px 14px;
            text-align: center;
            font-size: 0.9em;
            line-height: 1.4;
            width: 230px;
        }

        .box.current { background: #2e8b57; border-color: #1a5c2e; }
        .box.current .b-name, .box.current .b-desc { color: #fff; }
        .b-name { font-weight: bold; font-size: 1em; color: #000; text-transform: uppercase; }
        .b-desc { font-size: 0.85em; color: #333; }

        .v-arrow { position: absolute; width: 2px; background: #333; }
        .v-arrow::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid #333; }

        .h-arrow { position: absolute; height: 2px; background: #333; }
        .h-arrow::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #333; }

        .label-ab { position: absolute; color: #ff0000; font-weight: bold; font-size: 1.4em; z-index: 10; }
        .conn-h { position: absolute; height: 2px; background: #333; }

        .diag-arrow { position: absolute; height: 2px; background: #333; transform-origin: left center; }
        .diag-arrow::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid #333; }

        .btn-savoir-plus {
            display: inline-block;
            margin-top: 15px;
            padding: 10px 28px;
            font-family: 'Cinzel', serif;
            font-size: 0.95em;
            font-weight: 700;
            color: #f5e6c8;
            background: linear-gradient(135deg, #5c3a1e 0%, #3d2614 50%, #5c3a1e 100%);
            border: 2px solid #c9a84c;
            border-radius: 6px;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(92, 58, 30, 0.3);
        }

        .btn-savoir-plus:hover {
            background: linear-gradient(135deg, #7a4f2a 0%, #5c3a1e 50%, #7a4f2a 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(92, 58, 30, 0.4);
        }

        .footer {
            background: linear-gradient(135deg, #5c3a1e 0%, #3d2614 50%, #5c3a1e 100%);
            border-top: 4px solid #c9a84c;
            padding: 20px;
            text-align: center;
            color: #c9a84c;
            font-family: 'Cinzel', serif;
            margin-top: 40px;
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 1024px) {
            .header h1 { font-size: 2.2em; }
            .tree-wrapper { padding: 15px; }
            .tree { transform: scale(0.85); transform-origin: top left; }
            .section-title { font-size: 1.3em; padding: 10px 20px; }
            .intro-section { padding: 25px; }
        }

        @media (max-width: 768px) {
            .header { padding: 50px 15px 20px; }
            .header h1 { font-size: 1.6em; letter-spacing: 1px; }
            .btn-retour {
                position: static;
                transform: none;
                margin: 0 auto 15px;
                display: inline-flex;
                font-size: 0.8em;
                padding: 8px 16px;
            }
            .btn-retour:hover { transform: translateX(-2px); }
            .container { padding: 25px 15px; }
            .intro-section { padding: 20px; margin-bottom: 25px; }
            .intro-text p { font-size: 0.88rem; }
            .section-title { font-size: 1.1em; padding: 10px 18px; }
            .tree-wrapper { padding: 10px; overflow-x: scroll; }
            .tree { transform: scale(0.6); transform-origin: top left; min-height: 600px; }
            .legend { padding: 8px 12px; }
            .legend-title { font-size: 0.8em; }
            .legend-item { font-size: 0.75em; }
            .conflict-section { padding: 15px 20px; margin-top: 25px; }
            .btn-savoir-plus { padding: 8px 20px; font-size: 0.85em; }
        }

        @media (max-width: 480px) {
            .header { padding: 45px 10px 15px; }
            .header h1 { font-size: 1.2em; }
            .btn-retour { font-size: 0.75em; padding: 6px 12px; }
            .container { padding: 20px 10px; }
            .intro-section { padding: 15px; }
            .intro-text p { font-size: 0.82rem; }
            .section-title { font-size: 0.95em; padding: 8px 14px; border-width: 2px; }
            .tree-wrapper { padding: 8px; }
            .tree { transform: scale(0.42); transform-origin: top left; min-height: 420px; }
            .legend { top: 5px; right: 5px; padding: 6px 10px; }
            .legend-title { font-size: 0.7em; }
            .legend-item { font-size: 0.65em; gap: 4px; }
            .legend-label { font-size: 0.9em; }
            .conflict-section { padding: 12px 15px; }
            .btn-savoir-plus { padding: 8px 16px; font-size: 0.8em; }
            .footer { padding: 15px; font-size: 0.85em; }
        }

        @media (min-width: 1400px) {
            .container { max-width: 1300px; padding: 50px 40px; }
            .tree-wrapper { padding: 35px; }
            .intro-section { padding: 45px; }
            .section-title { font-size: 1.7em; }
        }