 /* ============================================================
           FORUMS PASSÉS
        ============================================================ */
        .forum-checkbox.forum-disabled {
            opacity: 0.42;
            cursor: not-allowed !important;
            pointer-events: none;
            filter: grayscale(100%);
            background-color: #f0f0f0 !important;
            border-color: #ccc !important;
        }
        .forum-checkbox.forum-disabled input[type="checkbox"] {
            cursor: not-allowed !important;
        }
        .badge-passe {
            display: inline-block;
            background-color: #6c757d;
            color: #fff;
            font-size: 0.68rem;
            padding: 2px 9px;
            border-radius: 12px;
            margin-left: 8px;
            vertical-align: middle;
            font-weight: 600;
            letter-spacing: 0.02em;
        }

        /* ============================================================
           STEPPER MULTI-ÉTAPES
        ============================================================ */
        .stepper-bar {
            background: #8B1A00;
            padding: 18px 20px 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 3px 16px rgba(139,26,0,.3);
        }
        .stepper {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            max-width: 680px;
            margin: 0 auto;
        }
        .step-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            position: relative;
        }
        .step-item:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 20px;
            left: calc(50% + 22px);
            right: calc(-50% + 22px);
            height: 2px;
            background: rgba(255,255,255,.2);
            transition: background .4s;
            z-index: 0;
        }
        .step-item.done:not(:last-child)::after { background: #E8A020; }
        .step-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,.3);
            background: rgba(255,255,255,.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .82rem;
            font-weight: 700;
            color: rgba(255,255,255,.55);
            transition: all .3s ease;
            position: relative;
            z-index: 1;
        }
        .step-item.active .step-circle {
            border-color: #E8A020;
            background: #E8A020;
            color: #8B1A00;
            box-shadow: 0 0 0 4px rgba(232,160,32,.28);
            transform: scale(1.1);
        }
        .step-item.done .step-circle {
            border-color: #E8A020;
            background: transparent;
            color: #E8A020;
        }
        .step-label {
            font-size: .6rem;
            font-weight: 600;
            color: rgba(255,255,255,.45);
            text-align: center;
            margin-top: 6px;
            padding-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: .05em;
            line-height: 1.3;
            max-width: 75px;
        }
        .step-item.active .step-label { color: #F5C84A; }
        .step-item.done  .step-label  { color: rgba(255,255,255,.75); }
        .stepper-progress {
            max-width: 680px;
            margin: 0 auto;
            height: 3px;
            background: rgba(255,255,255,.15);
        }
        .stepper-progress-fill {
            height: 100%;
            background: #E8A020;
            transition: width .4s ease;
        }

        /* ============================================================
           PANNEAU D'ÉTAPE
        ============================================================ */
        .step-panel { display: none; }
        .step-panel.active { display: block; animation: fadeUp .3s ease; }
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(10px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* En-tête coloré de chaque étape */
        .step-header {
            background: linear-gradient(135deg, #C84B11 0%, #8B1A00 100%);
            padding: 22px 30px;
            color: #fff;
            position: relative;
            overflow: hidden;
        }
        .step-header::after {
            content: '';
            position: absolute;
            right: -10px; top: -10px;
            width: 90px; height: 90px;
            border-radius: 50%;
            background: rgba(232,160,32,.12);
        }
        .step-header .step-num {
            font-size: .68rem;
            font-weight: 700;
            letter-spacing: .15em;
            text-transform: uppercase;
            color: #F5C84A;
            margin-bottom: 4px;
        }
        .step-header h3 {
            font-size: 1.15rem;
            font-weight: 700;
            margin: 0 0 3px;
            position: relative;
            z-index: 1;
        }
        .step-header p {
            font-size: .83rem;
            opacity: .78;
            margin: 0;
            position: relative;
            z-index: 1;
        }

        /* Corps de chaque étape — reprend les styles de .form-container existants */
        .step-body {
            padding: 28px 30px;
        }

        /* Pied de chaque étape */
        .step-footer {
            padding: 18px 30px;
            border-top: 1px solid #f0e6d3;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #fdf6e8;
        }

        /* Boutons navigation */
        .btn-step-prev {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 10px 22px;
            border-radius: 8px;
            font-size: .88rem;
            font-weight: 600;
            border: 2px solid #e0cdb0;
            background: #fff;
            color: #8B1A00;
            cursor: pointer;
            transition: all .2s;
            font-family: 'Poppins', sans-serif;
        }
        .btn-step-prev:hover { border-color: #C84B11; background: #fff8f0; }

        .btn-step-next {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 10px 26px;
            border-radius: 8px;
            font-size: .88rem;
            font-weight: 700;
            border: none;
            background: linear-gradient(135deg, #E8A020 0%, #C84B11 100%);
            color: #fff;
            cursor: pointer;
            transition: all .22s;
            font-family: 'Poppins', sans-serif;
            box-shadow: 0 3px 12px rgba(200,75,17,.3);
        }
        .btn-step-next:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(200,75,17,.42); }

        /* Info footer étape 1 */
        .step-footer-info {
            font-size: .78rem;
            color: #9a7a5a;
        }

        /* Étape 576px : empiler les boutons du footer au lieu de les
           laisser se compresser côte à côte (évite l'effet "pilule"
           écrasée sur .submit-btn quand le texte est long). */
        @media (max-width: 576px) {
            .step-footer {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }
            .step-footer .btn-step-prev,
            .step-footer .btn-step-next,
            .step-footer .submit-btn {
                width: 100%;
                max-width: none;
                justify-content: center;
                margin: 0;
            }
            .step-footer-info {
                text-align: center;
            }
        }

        /* ============================================================
           WRAPPERS ÉTAPE — conteneur global du formulaire multi-step
        ============================================================ */
        .multistep-wrapper {
            max-width: 680px;
            margin: 28px auto 60px;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 6px 32px rgba(139,26,0,.1);
            overflow: hidden;
            border: 1px solid #e8d5b0;
        }

        /* Alerte erreur PHP */
        .alert-php-error {
            background: #fff5f5;
            border: 1.5px solid #ffc9c9;
            color: #c0392b;
            border-radius: 8px;
            padding: 12px 16px;
            margin: 20px 30px 0;
            font-size: .88rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Alerte inline erreur forum */
        .forum-error-msg {
            display: none;
            background: #fff5f5;
            border: 1.5px solid #ffc9c9;
            color: #c0392b;
            border-radius: 8px;
            padding: 10px 14px;
            margin-top: 14px;
            font-size: .85rem;
        }

        /* Boutons oui/non participation */
        .btn-oui-non {
            display: flex;
            gap: 10px;
            margin-top: 4px;
        }
        .btn-yn {
            flex: 1;
            padding: 10px;
            border: 2px solid #e0cdb0;
            border-radius: 8px;
            background: #fdf6e8;
            font-size: .86rem;
            font-weight: 600;
            cursor: pointer;
            transition: all .2s;
            color: #9a7a5a;
            font-family: 'Poppins', sans-serif;
        }
        .btn-yn.yn-oui { border-color: #27ae60; background: #edfbf3; color: #27ae60; }
        .btn-yn.yn-non { border-color: #C84B11; background: #fff3ec; color: #C84B11; }

        .btn-create-cv {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 18px;
            margin-bottom: 14px;
            border-radius: 8px;
            font-size: .85rem;
            font-weight: 700;
            border: none;
            background: linear-gradient(135deg, #E8A020 0%, #C84B11 100%);
            color: #fff;
            cursor: pointer;
            transition: all .22s;
            font-family: 'Poppins', sans-serif;
            box-shadow: 0 3px 12px rgba(200,75,17,.3);
            text-decoration: none;
        }
        .btn-create-cv:hover { transform: translateY(-2px); box-shadow: 0 5px 18px rgba(200,75,17,.42); color: #fff; }

        /* Zone upload CV */
        .cv-zone {
            border: 2px dashed #e0cdb0;
            border-radius: 10px;
            padding: 22px;
            text-align: center;
            cursor: pointer;
            transition: all .22s;
            position: relative;
            background: #fdf6e8;
        }
        .cv-zone:hover { border-color: #C84B11; background: #fff8f0; }
        .cv-zone.cv-ok { border-color: #27ae60; background: #edfbf3; }
        .cv-zone input[type="file"] {
            position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
        }
        .cv-zone-icon { font-size: 1.8rem; color: #E8A020; margin-bottom: 6px; }
        .cv-zone-text { font-weight: 600; color: #8B1A00; font-size: .88rem; margin-bottom: 2px; }
        .cv-zone-hint { font-size: .73rem; color: #9a7a5a; }

        /* ── Select2 custom styles ── */
        .select2-container--default .select2-selection--single {
            height: 42px !important;
            padding: 10px 13px !important;
            border: 1.5px solid #ddd !important;
            border-radius: 8px !important;
            background: #fff !important;
            font-family: 'Poppins', sans-serif !important;
            font-size: .9rem !important;
        }
        .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height: 20px !important;
            padding-left: 0 !important;
            color: #333 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            max-width: 100px !important;
        }
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: 40px !important;
            right: 8px !important;
        }
        .select2-container--default.select2-container--focus .select2-selection--single,
        .select2-container--default.select2-container--open .select2-selection--single {
            border-color: #FF522D !important;
            background: #fff !important;
            box-shadow: 0 0 0 3px rgba(255,82,45,.12) !important;
        }
        .select2-dropdown {
            border: 1.5px solid #FF522D !important;
            border-radius: 8px !important;
            font-family: 'Poppins', sans-serif !important;
        }
        .select2-container--default .select2-results__option--highlighted[aria-selected] {
            background-color: #FF522D !important;
        }
        .select2-container--default .select2-search--dropdown .select2-search__field {
            border: 1.5px solid #ddd !important;
            border-radius: 6px !important;
            padding: 8px !important;
            font-family: 'Poppins', sans-serif !important;
        }
        .select2-container--default .select2-search--dropdown .select2-search__field:focus {
            border-color: #FF522D !important;
            outline: none !important;
        }
        .select2-container {
            width: 100% !important;
        }
        /* S'assurer que Select2 remplace bien le select natif */
        select.select2-hidden-accessible {
            display: none !important;
        }
        input.invalid, select.invalid {
            border-color: #e74c3c !important;
        }
        .select2-container .select2-selection.invalid {
            border-color: #e74c3c !important;
        }

        /* ── Question « déjà participé ? » + recherche par matricule ── */
        .participation-gate {
            margin-top: 1.75rem;
            padding-top: 1.5rem;
            border-top: 1px dashed #e0e0e0;
        }
        .participation-gate[hidden] { display: none; }
        .matricule-lookup {
            margin-top: 1rem;
            padding: 1rem 1.1rem 1.15rem;
            background: #fff7f4;
            border: 1.5px solid #ffd6c9;
            border-radius: 10px;
        }
        .matricule-lookup[hidden] { display: none; }
        .matricule-hint {
            margin: .35rem 0 .8rem;
            font-size: .85rem;
            color: #6c757d;
            line-height: 1.45;
        }
        .matricule-row {
            display: flex;
            gap: .6rem;
            flex-wrap: wrap;
        }
        .matricule-row .form-control {
            flex: 1 1 220px;
            text-transform: uppercase;
        }
        .btn-lookup {
            flex: 0 0 auto;
            background: #FF522D;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 0 1.3rem;
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
            font-size: .9rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            transition: background .2s ease, transform .2s ease;
        }
        .btn-lookup:hover:not(:disabled) { background: #e0431f; transform: translateY(-1px); }
        .btn-lookup:disabled { opacity: .7; cursor: default; }
        .matricule-feedback {
            margin-top: .7rem;
            font-size: .88rem;
            font-weight: 500;
            display: none;
        }
        .matricule-feedback.ok,
        .matricule-feedback.err {
            display: block;
        }
        .matricule-feedback.ok  { color: #1e7e34; }
        .matricule-feedback.err { color: #c0392b; }
        @media (max-width: 576px) {
            .matricule-row .form-control { flex: 1 1 100%; }
            .btn-lookup { width: 100%; justify-content: center; padding: .7rem; }
        }
        .cv-zone-name { font-size: .78rem; color: #27ae60; font-weight: 600; margin-top: 6px; display: none; }