@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: #f5f0e8;
            color: #2c1810;
            line-height: 1.7;
        }

        /* === HEADER === */
        .header {
            background: linear-gradient(135deg, #5c3a1e 0%, #3d2614 50%, #5c3a1e 100%);
            border-bottom: 4px solid #c9a84c;
            border-top: 4px solid #c9a84c;
            padding: 50px 30px 50px 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
            min-height: 110px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 8px;
            background: repeating-linear-gradient(
                90deg,
                #c9a84c 0px, #c9a84c 10px,
                #5c3a1e 10px, #5c3a1e 20px,
                #f5e6c8 20px, #f5e6c8 30px,
                #5c3a1e 30px, #5c3a1e 40px
            );
        }

        .header::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 8px;
            background: repeating-linear-gradient(
                90deg,
                #c9a84c 0px, #c9a84c 10px,
                #5c3a1e 10px, #5c3a1e 20px,
                #f5e6c8 20px, #f5e6c8 30px,
                #5c3a1e 30px, #5c3a1e 40px
            );
        }

        .header h1 {
            font-family: 'Cinzel', serif;
            color: #f5e6c8;
            font-size: 2.2em;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            letter-spacing: 3px;
            position: relative;
            z-index: 1;
            margin: 0;
            padding: 10px 0;
            line-height: 1.3;
        }

        .header h1 .line-break { display: block; }

        /* === BOUTON RETOUR === */
        .btn-retour {
            position: absolute;
            top: 50%;
            left: 30px;
            transform: translateY(-50%);
            padding: 10px 20px;
            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: inline-flex;
            align-items: center;
            gap: 6px;
            z-index: 10;
            white-space: nowrap;
        }

        .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: 1200px;
            margin: 0 auto;
            padding: 30px 20px;
        }

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

        .content-section h2 {
            font-family: 'Cinzel', serif;
            color: #5c3a1e;
            font-size: 1.4em;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #c9a84c;
        }

        .content-section h3 {
            font-family: 'Cinzel', serif;
            color: #5c3a1e;
            font-size: 1.15em;
            margin-top: 20px;
            margin-bottom: 10px;
        }

        .content-section p {
            margin-bottom: 12px;
            text-align: justify;
            font-size: 1em;
            line-height: 1.7;
        }

        .content-section strong { color: #5c3a1e; }
        .content-section em { color: #7a4f2a; font-style: italic; }
        .content-section ul { margin-left: 30px; margin-bottom: 12px; }
        .content-section li { margin-bottom: 8px; font-size: 1em; line-height: 1.7; }

        .highlight-box {
            background: linear-gradient(135deg, #fff9f0 0%, #f5ede0 100%);
            border-left: 5px solid #c9a84c;
            padding: 15px 25px;
            margin: 15px 0;
            font-style: italic;
            color: #5c3a1e;
            border-radius: 0 8px 8px 0;
            box-shadow: 0 2px 8px rgba(92, 58, 30, 0.1);
            font-size: 1em;
            line-height: 1.7;
        }

        /* === CADRES IMAGES === */
        .image-frame {
            background: linear-gradient(135deg, #5c3a1e 0%, #3d2614 50%, #5c3a1e 100%);
            border: 3px solid #c9a84c;
            border-radius: 8px;
            padding: 8px;
            margin: 20px auto;
            max-width: 750px;
            box-shadow: 0 6px 20px rgba(92, 58, 30, 0.3);
            position: relative;
        }

        .image-frame img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 4px;
            border: 1px solid #c9a84c;
        }

        .image-caption {
            text-align: center;
            padding: 12px 15px 8px;
            color: #f5e6c8;
            font-family: 'Cinzel', serif;
            font-size: 0.9em;
            line-height: 1.5;
        }

        .image-caption .fig-number {
            color: #c9a84c;
            font-weight: 700;
            display: block;
            margin-bottom: 4px;
            font-size: 0.85em;
            letter-spacing: 1px;
        }

        /* === GALERIE : 2 images par ligne === */
        .gallery-row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            justify-items: center;
            margin: 20px 0;
        }

        .image-frame.small {
            max-width: 100%;
            width: 100%;
            flex: none;
        }

        /* === CONSEQUENCES === */
        .consequences-list { list-style: none; padding: 0; }
        .consequences-list li { position: relative; padding-left: 30px; margin-bottom: 10px; line-height: 1.7; }
        .consequences-list li::before { content: '⚜'; position: absolute; left: 0; color: #c9a84c; font-size: 1.2em; }
        .consequences-list li strong { color: #5c3a1e; display: block; margin-bottom: 3px; }

        /* === SECTION CONTRIBUTION === */
        .contribution-section {
            background: linear-gradient(135deg, #fff9f0 0%, #f5ede0 100%);
            border: 3px solid #c9a84c;
            border-radius: 8px;
            padding: 30px 50px;
            margin-bottom: 25px;
            box-shadow: 0 4px 15px rgba(92, 58, 30, 0.15);
        }

        .contribution-section h2 {
            font-family: 'Cinzel', serif;
            color: #5c3a1e;
            font-size: 1.4em;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #c9a84c;
            text-align: center;
        }

        .contribution-section p { text-align: center; margin-bottom: 20px; color: #5c3a1e; }

        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; font-family: 'Cinzel', serif; color: #5c3a1e; font-weight: 700; margin-bottom: 8px; font-size: 0.95em; }
        .form-group input[type="text"], .form-group input[type="email"], .form-group textarea, .form-group select {
            width: 100%; padding: 12px 15px; border: 2px solid #c9a84c; border-radius: 6px;
            font-family: 'Merriweather', Georgia, serif; font-size: 1em; color: #2c1810; background: #fff; transition: all 0.3s ease;
        }
        .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: #5c3a1e; box-shadow: 0 0 8px rgba(92, 58, 30, 0.2); }
        .form-group textarea { min-height: 120px; resize: vertical; }
        .form-row { display: flex; gap: 20px; }
        .form-row .form-group { flex: 1; }

        .btn-submit {
            display: block; width: 100%; padding: 15px;
            font-family: 'Cinzel', serif; font-size: 1.1em; font-weight: 700; color: #f5e6c8;
            background: linear-gradient(135deg, #5c3a1e 0%, #3d2614 100%);
            border: 2px solid #c9a84c; border-radius: 6px; cursor: pointer;
            transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 2px;
        }
        .btn-submit:hover { background: linear-gradient(135deg, #7a4f2a 0%, #5c3a1e 100%); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }
        .file-info { font-size: 0.85em; color: #7a4f2a; margin-top: 5px; font-style: italic; }

        .success-message {
            display: none; background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
            border: 2px solid #28a745; border-radius: 8px; padding: 20px;
            margin-bottom: 20px; text-align: center; color: #155724;
        }
        .success-message.show { display: block; animation: fadeIn 0.5s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

        /* === FOOTER === */
        .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: 30px;
        }

        /* === EXPLORATEUR DE FICHIERS === */
        .explorer-section {
            background: linear-gradient(135deg, #5c3a1e 0%, #3d2614 100%);
            border: 3px solid #c9a84c;
            border-radius: 8px;
            padding: 30px 50px;
            margin-bottom: 25px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(92, 58, 30, 0.25);
        }
        .explorer-section h3 { font-family: 'Cinzel', serif; color: #c9a84c; font-size: 1.3em; margin-bottom: 15px; }
        .explorer-section p { color: #f5e6c8; margin-bottom: 20px; font-size: 0.95em; }
        .btn-explorer {
            display: inline-block; padding: 14px 40px;
            font-family: 'Cinzel', serif; font-size: 1.05em; font-weight: 700; color: #f5e6c8;
            background: linear-gradient(135deg, #7a4f2a 0%, #5c3a1e 50%, #7a4f2a 100%);
            border: 2px solid #c9a84c; border-radius: 8px; cursor: pointer;
            text-decoration: none; transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.4);
        }
        .btn-explorer:hover { background: linear-gradient(135deg, #9a6f4a 0%, #7a4f2a 50%, #9a6f4a 100%); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }

        .modal-overlay {
            display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(45, 25, 10, 0.85); z-index: 1000;
            justify-content: center; align-items: center;
            padding: 20px; backdrop-filter: blur(4px);
        }
        .modal-overlay.active { display: flex; }
        .explorer-modal {
            background: linear-gradient(135deg, #fff9f0 0%, #f5ede0 100%);
            border: 4px solid #c9a84c; border-radius: 12px;
            width: 100%; max-width: 750px; max-height: 85vh;
            display: flex; flex-direction: column;
            box-shadow: 0 16px 50px rgba(0,0,0,0.5); overflow: hidden;
        }
        .explorer-header {
            background: linear-gradient(135deg, #5c3a1e 0%, #3d2614 50%, #5c3a1e 100%);
            color: #c9a84c; padding: 18px 24px;
            display: flex; justify-content: space-between; align-items: center;
            border-bottom: 3px solid #c9a84c;
        }
        .explorer-header h3 { margin: 0; font-family: 'Cinzel', serif; font-size: 1.2em; color: #c9a84c; display: flex; align-items: center; gap: 10px; }
        .btn-fermer { background: transparent; border: 2px solid #c9a84c; color: #c9a84c; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
        .btn-fermer:hover { background: #c9a84c; color: #3d2614; }
        .breadcrumb { background: linear-gradient(135deg, #f0e6d0 0%, #e8dcc0 100%); padding: 12px 24px; font-size: 13px; color: #5c3a1e; font-family: 'Cinzel', serif; border-bottom: 2px solid #c9a84c; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
        .breadcrumb a { color: #7a4f2a; text-decoration: none; transition: color 0.2s; }
        .breadcrumb a:hover { color: #c9a84c; text-decoration: underline; }
        .breadcrumb-sep { color: #c9a84c; font-weight: bold; }
        .breadcrumb-current { color: #3d2614; font-weight: bold; }
        .explorer-content { flex: 1; overflow-y: auto; padding: 16px; background: #fffaf0; }
        .explorer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
        .item-dossier { cursor: pointer; background: linear-gradient(135deg, #f5ede0 0%, #ebe0cc 100%); border: 2px solid #c9a84c; border-radius: 10px; padding: 18px 10px; text-align: center; transition: all 0.25s ease; position: relative; }
        .item-dossier:hover { background: linear-gradient(135deg, #f0e6d0 0%, #e5d8b8 100%); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(92, 58, 30, 0.25); border-color: #b8983c; }
        .item-dossier .icon-dossier { font-size: 36px; margin-bottom: 8px; }
        .item-dossier .nom-dossier { font-size: 12px; color: #5c3a1e; font-weight: bold; font-family: 'Cinzel', serif; word-break: break-word; line-height: 1.3; }
        .item-dossier .meta-dossier { font-size: 10px; color: #8a6e4e; margin-top: 4px; }
        .item-fichier { cursor: pointer; background: #fff; border: 2px solid #c9a84c; border-radius: 10px; padding: 18px 10px; text-align: center; transition: all 0.25s ease; position: relative; }
        .item-fichier:hover { background: #fff9f0; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(92, 58, 30, 0.2); }
        .item-fichier.selectionne { background: linear-gradient(135deg, #e8d5a3 0%, #dcc070 100%); border-color: #8b6914; box-shadow: 0 4px 12px rgba(139, 105, 20, 0.3); }
        .item-fichier .checkmark { position: absolute; top: 6px; right: 6px; background: #8b6914; color: #fff; border-radius: 50%; width: 22px; height: 22px; font-size: 13px; line-height: 22px; display: none; }
        .item-fichier.selectionne .checkmark { display: block; }
        .item-fichier .icon-fichier { font-size: 32px; margin-bottom: 8px; }
        .item-fichier .nom-fichier { font-size: 11px; color: #5c3a1e; font-weight: bold; font-family: 'Cinzel', serif; word-break: break-word; line-height: 1.3; }
        .item-fichier .meta-fichier { font-size: 10px; color: #8a6e4e; margin-top: 4px; }
        .explorer-footer { background: linear-gradient(135deg, #f0e6d0 0%, #e8dcc0 100%); padding: 16px 24px; border-top: 3px solid #c9a84c; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
        .compteur-selection { font-size: 13px; color: #5c3a1e; font-family: 'Cinzel', serif; font-weight: bold; }
        .btn-telecharger { background: linear-gradient(135deg, #c9a84c 0%, #b8983c 100%); color: #3d2614; border: 2px solid #8b6914; border-radius: 8px; padding: 12px 28px; font-size: 14px; font-weight: bold; font-family: 'Cinzel', serif; cursor: pointer; transition: all 0.25s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
        .btn-telecharger:hover { background: linear-gradient(135deg, #f5e6c8 0%, #e6d5a8 100%); transform: scale(1.05); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
        .btn-telecharger:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
        .explorer-content::-webkit-scrollbar { width: 8px; }
        .explorer-content::-webkit-scrollbar-track { background: #f5ede0; }
        .explorer-content::-webkit-scrollbar-thumb { background: #c9a84c; border-radius: 4px; }
        .explorer-content::-webkit-scrollbar-thumb:hover { background: #b8983c; }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 1024px) {
            .content-section, .contribution-section, .explorer-section { padding: 20px 35px; }
            .image-frame { max-width: 100%; }
            .gallery-row { gap: 15px; }
            .image-frame.small { max-width: 320px; flex: 1 1 320px; }
            .explorer-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
        }

        @media (max-width: 768px) {
            .header { padding: 55px 15px 20px 15px; flex-direction: column; min-height: auto; }
            .header h1 { font-size: 1.3em; letter-spacing: 1px; padding: 5px 0; }
            .btn-retour { position: static; transform: none; margin-bottom: 12px; font-size: 0.8em; padding: 8px 16px; align-self: flex-start; }
            .btn-retour:hover { transform: translateX(-2px); }
            .content-section, .contribution-section, .explorer-section { padding: 20px 25px; }
            .content-section h2 { font-size: 1.2em; }
            .content-section p, .content-section li { font-size: 0.9rem; }
            .image-frame { max-width: 100%; }
            .gallery-row { grid-template-columns: 1fr; }
            .image-frame.small { max-width: 100%; width: 100%; }
            .form-row { flex-direction: column; gap: 0; }
            .btn-submit { font-size: 1em; padding: 12px; }
            .explorer-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
            .explorer-modal { max-height: 90vh; margin: 10px; }
            .explorer-footer { flex-direction: column; text-align: center; }
            .btn-explorer { padding: 12px 30px; font-size: 0.95em; }
        }

        @media (max-width: 480px) {
            .header { padding: 50px 10px 15px; }
            .header h1 { font-size: 1.05em; letter-spacing: 0.5px; }
            .btn-retour { font-size: 0.75em; padding: 6px 12px; }
            .content-section, .contribution-section, .explorer-section { padding: 15px 18px; }
            .content-section h2 { font-size: 1.05em; }
            .content-section h3 { font-size: 1em; }
            .content-section p, .content-section li { font-size: 0.85rem; line-height: 1.6; }
            .highlight-box { padding: 12px 18px; font-size: 0.9rem; }
            .image-frame { padding: 5px; }
            .image-caption { font-size: 0.8em; padding: 10px; }
            .consequences-list li { padding-left: 25px; }
            .btn-submit { font-size: 0.9em; padding: 12px; }
            .explorer-section { padding: 20px 15px; }
            .explorer-section h3 { font-size: 1.1em; }
            .btn-explorer { padding: 10px 24px; font-size: 0.9em; }
            .explorer-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
            .item-dossier, .item-fichier { padding: 12px 6px; }
            .item-dossier .icon-dossier, .item-fichier .icon-fichier { font-size: 24px; }
            .item-dossier .nom-dossier, .item-fichier .nom-fichier { font-size: 10px; }
            .explorer-footer { padding: 12px 15px; }
            .btn-telecharger { padding: 10px 20px; font-size: 12px; }
            .footer { padding: 15px; font-size: 0.85em; }
        }

        @media (min-width: 1400px) {
            .container { max-width: 1400px; }
            .content-section, .contribution-section, .explorer-section { padding: 30px 60px; }
            .content-section p, .content-section li { font-size: 1.05rem; }
            .image-frame { max-width: 850px; }
        }