 :root {
            --primary: #0d6efd;
            --success: #198754;
            --dark: #2c3e50;
            --bg: #f4f7f6;
        }

        /* ===== GLOBAL ===== */

        body {
            background: var(--bg);
            font-family: 'Segoe UI', sans-serif;
        }

    /* ===== HEADER ===== */

    .country-header-pro {
        display: flex;
        justify-content: center;
        margin: 50px 0 25px;
    }

    .country-card {
        background: white;
        padding: 30px 50px;
        border-radius: 18px;

        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.08),
            0 4px 10px rgba(0, 0, 0, 0.05);

        text-align: center;
        max-width: 700px;
        width: 100%;
    }

    .main-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 15px;
    }

    .country-line {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .flag-pro {
        height: 36px;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    .country-name {
        font-size: 1.1rem;
        color: #555;
    }

    /* ===== STATS ===== */

    .stat-card-pro {
        background: white;
        padding: 18px;
        border-radius: 14px;

        box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.07);

        transition: 0.2s;
    }

    .stat-card-pro:hover {
        transform: translateY(-3px);
    }

    .stat-label {
        font-size: 0.7rem;
        color: #888;
        text-transform: uppercase;
    }

    .stat-value {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--dark);
    }

    /* ===== CONTAINER ===== */

    #catalogueAccordion {
        max-width: 900px;
        margin: auto;
    }

    /* ===== CATÉGORIES ===== */

    .category-card {
        display: flex;
        justify-content: space-between;
        align-items: center;

        padding: 12px 18px;
        border-radius: 12px;

        background: linear-gradient(135deg, #ffffff, #eef2f6);

        border: 1px solid #e5e9ef;

        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);

        cursor: pointer;
        margin-bottom: 15px;

        transition: 0.2s;
    }

    .category-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

    .category-left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .icon-box {
        background: var(--primary);
        color: white;
        padding: 6px 8px;
        border-radius: 6px;
    }

    .category-title {
        font-weight: 600;
    }

    .badge-count {
        background: var(--primary);
        color: white;
        border-radius: 20px;
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    /* ===== ANNÉES ===== */

    .year-card {
        background: white;
        border-radius: 10px;
        padding: 8px;

        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);

        cursor: pointer;
        transition: 0.2s;
    }

    .year-card:hover {
        transform: translateY(-2px);
    }

    .year-card-header {
        display: flex;
        justify-content: space-between;
        font-size: 0.75rem;
    }

    .year-title {
        font-weight: 700;
    }

    .year-progress {
        height: 3px;
        background: #e9ecef;
        border-radius: 10px;
        margin-top: 5px;
    }

    .year-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, var(--success), #20c997);
    }

    /* ===== TIMBRES ===== */

    .timbres-8-cols-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
    }

    .timbre-unit {
        text-align: center;
        cursor: pointer;
        transition: 0.2s;
    }

    .timbre-unit:hover {
        transform: translateY(-4px) scale(1.05);
    }

    .timbre-unit:active {
        transform: scale(0.95);
    }

    /* carte timbre */
    .timbre-card-pro {
        background: white;
        border-radius: 10px;
        padding: 6px;
        max-height: 110px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
        object-fit: contain;
        position: relative;
        transition: transform 0.25s ease;
        width: 100%;

    }

    .timbre-card-pro:hover {
        border: 1px solid #0d6efd;
    }

    .timbre-unit:hover img {
        transform: scale(1.08);
    }

    /* badge collection */
    .timbre-owned {
        position: absolute;
        top: 5px;
        right: 5px;

        background: linear-gradient(135deg, #198754, #20c997);
        color: white;

        font-size: 0.65rem;
        padding: 3px 6px;

        border-radius: 6px;

        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    }

    /* image */
    .timbre-card-pro img {
        width: 100%;
        height: auto;
        max-height: 90px;
        object-fit: contain;
        display: block;
    }

    /* label */
    .timbre-label {
        font-size: 0.7rem;
        margin-top: 4px;
        font-weight: 600;
    }

    /* timbre non possédé */
    .opacity-50 {
        filter: grayscale(100%);
        opacity: 1;
    }

    .collapse {
        transition: all 0.25s ease;
    }



    /* ================= RESPONSIVE ================= */

    @media (max-width: 768px) {
        .timbres-8-cols-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    /* ================= MODAL (RESTAURATION) ================= */
    /* ⚠️ ZONE SENSIBLE - NE PAS MODIFIER (MODAL OK) */
    .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        display: none;
        z-index: 9999;
        align-items: center;
        justify-content: center;
    }

    .modal-box {
        background: #fff;
        width: 95%;
        max-width: 850px;
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        max-height: 90vh;
    }

    .modal-header-custom {
        background: #f8f9fa;
        padding: 10px 20px;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #eee;
    }

    .modal-body-custom {
        display: flex;
        padding: 15px;
        gap: 20px;
        overflow-y: auto;
    }

    .zoom-area {
        flex: 0 0 250px;
        position: relative;
        text-align: center;
    }

    #modalImage {
        max-width: 100%;
        max-height: 250px;
        object-fit: contain;
        border: 1px solid #eee;
    }

    #loupe {
        position: absolute;
        width: 140px;
        height: 140px;
        border: 2px solid #222;
        border-radius: 50%;
        display: none;
        pointer-events: none;
        z-index: 100;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    .details-area {
        flex: 1;
    }

    .status-pill {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .note-area {
        background: #fff9db;
        border: 1px solid #f1c40f;
        border-radius: 6px;
        padding: 8px;
        margin-top: 10px;
    }

    /* ===== NAVIGATION HAUT ===== */

    .top-nav-actions {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: -20px
    }

    .btn-nav {
        padding: 10px 22px;

        border-radius: 30px;

        border: 2px solid #d4a017;
        color: #2c3e50;

        background: transparent;

        font-weight: 500;
        font-size: 0.95rem;

        text-decoration: none;

        transition: all 0.25s ease;
    }

    /* hover stylé */
    .btn-nav:hover {
        background: linear-gradient(135deg, #d4a017, #f1c40f);
        color: white;

        box-shadow: 0 5px 15px rgba(212, 160, 23, 0.4);

        transform: translateY(-2px);
    }

    /* ===== TOP BAR ===== */

    .top-bar {
        background: #ffffff;
        border-bottom: 1px solid #e9ecef;
        padding: 15px 0;
        margin-bottom: 10px;
    }

    .top-bar-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;

        max-width: 900px;
        margin: auto;
    }

    /* ===== BOUTONS SOFT ===== */

    .btn-soft {
        padding: 8px 18px;
        border-radius: 25px;

        border: 1px solid #ced4da;
        background: #f8f9fa;

        color: #495057;
        text-decoration: none;

        font-size: 0.9rem;

        transition: 0.2s;
    }

    .btn-soft:hover {
        background: #e9ecef;
        color: #000;
    }

    /* ===== COMPTEUR ===== */

    .top-stats {
        font-size: 0.85rem;
        color: #6c757d;
    }

    /* ===== FILTRE ===== */

    .top-filter {
        margin-top: 12px;
        text-align: center;
    }

    .top-filter form {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    /* select */
    .select-soft {
        padding: 6px 12px;
        border-radius: 8px;

        border: 1px solid #ced4da;
        background: #fff;

        font-size: 0.9rem;
    }

    /* bouton action */
    .btn-primary-soft {
        padding: 7px 14px;
        border-radius: 8px;

        border: none;
        background: #6c8ef5;

        color: white;
        font-size: 0.85rem;

        transition: 0.2s;
    }

    .btn-primary-soft:hover {
        background: #5a78d6;
    }
