/* Container principal */
    .synthese-section {
        padding: 80px 20px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .synthese-container {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        overflow-x: hidden;
    }

    /* Navigation ancrée */
    .synthese-nav {
        background: white;
        border-radius: 20px;
        padding: 20px 30px;
        margin-bottom: 50px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }

    .synthese-nav-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 28px;
        border-radius: 30px;
        font-family: 'Abril Fatface', serif;
        font-size: 15px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .synthese-nav-link.active {
        background: linear-gradient(135deg, #DD9933 0%, #c4872d 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(221, 153, 51, 0.3);
    }

    .synthese-nav-link:not(.active) {
        background: #f6eedc;
        border: 2px solid transparent;
        color: #666666;
    }

    .synthese-nav-link:not(.active):hover {
        border-color: #DD9933;
        color: #DD9933;
    }

    .synthese-nav-link svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    /* Header avec titre et bouton PDF */
    .synthese-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 40px;
    }

    .synthese-title {
        font-family: 'Abril Fatface', serif;
        font-size: 72px;
        color: #222222;
        line-height: 1.1;
        margin: 0;
    }

    .synthese-title .highlight {
        color: #DD9933;
    }

    /* Bouton PDF */
    .synthese-pdf-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 28px;
        background: linear-gradient(135deg, #DD9933 0%, #c4872d 100%);
        color: white !important;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none !important;
        border-radius: 30px;
        box-shadow: 0 4px 20px rgba(221, 153, 51, 0.35);
        transition: all 0.3s ease;
    }

    .synthese-pdf-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(221, 153, 51, 0.45);
        color: white !important;
    }

    .synthese-pdf-btn svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    /* Carte des filtres */
    .synthese-filters-card {
        background: white;
        border-radius: 24px;
        padding: 40px;
        margin-bottom: 30px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }

    .synthese-filters-title {
        font-family: 'Abril Fatface', serif;
        font-size: 22px;
        color: #222222;
        margin: 0 0 25px 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .synthese-filters-row {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        margin-bottom: 25px;
    }

    .synthese-filter-group {
        flex: 1;
        min-width: 280px;
    }

    .synthese-filter-group h4 {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #999999;
        margin: 0 0 15px 0;
        font-weight: 700;
    }

    .synthese-filter-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .synthese-filter-btn {
        padding: 10px 20px;
        border: 2px solid #e8e8e8;
        border-radius: 25px;
        background: white;
        font-size: 14px;
        font-weight: 600;
        color: #666666;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .synthese-filter-btn:hover {
        border-color: #DD9933;
        color: #DD9933;
    }

    .synthese-filter-btn.active {
        background: linear-gradient(135deg, #DD9933 0%, #c4872d 100%);
        border-color: #DD9933;
        color: white;
    }

    /* Couleurs des compétences */
    .synthese-filter-btn[data-comp="C1"].active {
        background: #DD9933;
        border-color: #DD9933;
    }

    .synthese-filter-btn[data-comp="C2"].active {
        background: #3498db;
        border-color: #3498db;
    }

    .synthese-filter-btn[data-comp="C3"].active {
        background: #9b59b6;
        border-color: #9b59b6;
    }

    .synthese-filter-btn[data-comp="C4"].active {
        background: #27ae60;
        border-color: #27ae60;
    }

    .synthese-filter-btn[data-comp="C5"].active {
        background: #e74c3c;
        border-color: #e74c3c;
    }

    .synthese-filter-btn[data-comp="C6"].active {
        background: #1abc9c;
        border-color: #1abc9c;
    }

    .synthese-filter-btn[data-comp="C1"]:hover {
        border-color: #DD9933;
        color: #DD9933;
    }

    .synthese-filter-btn[data-comp="C2"]:hover {
        border-color: #3498db;
        color: #3498db;
    }

    .synthese-filter-btn[data-comp="C3"]:hover {
        border-color: #9b59b6;
        color: #9b59b6;
    }

    .synthese-filter-btn[data-comp="C4"]:hover {
        border-color: #27ae60;
        color: #27ae60;
    }

    .synthese-filter-btn[data-comp="C5"]:hover {
        border-color: #e74c3c;
        color: #e74c3c;
    }

    .synthese-filter-btn[data-comp="C6"]:hover {
        border-color: #1abc9c;
        color: #1abc9c;
    }

    /* Bouton reset */
    .synthese-reset-btn {
        padding: 12px 24px;
        background: #f6eedc;
        border: none;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        color: #666666;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .synthese-reset-btn:hover {
        background: #e8dcc8;
        color: #222222;
    }

    .synthese-reset-btn svg {
        width: 16px;
        height: 16px;
        fill: currentColor;
    }

    /* Compteur */
    .synthese-results-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .synthese-results-count {
        font-size: 16px;
        color: #666666;
    }

    .synthese-results-count strong {
        color: #DD9933;
        font-size: 24px;
        font-family: 'Abril Fatface', serif;
    }

    /* Carte du tableau */
    .synthese-table-card {
        background: white;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }

    .synthese-table-scroll {
        overflow-x: auto;
    }

    .synthese-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 850px;
    }

    .synthese-table thead {
        background: linear-gradient(135deg, #DD9933 0%, #c4872d 100%);
    }

    .synthese-table thead th {
        padding: 20px 18px;
        text-align: left;
        font-size: 13px;
        font-weight: 700;
        color: white;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .synthese-table thead th:first-child {
        padding-left: 30px;
    }

    .synthese-table tbody tr {
        border-bottom: 1px solid #f5f5f5;
        transition: all 0.3s ease;
    }

    .synthese-table tbody tr:hover {
        background: #fdfaf3;
    }

    .synthese-table tbody tr:last-child {
        border-bottom: none;
    }

    .synthese-table tbody td {
        padding: 20px 18px;
        font-size: 15px;
        color: #555555;
        vertical-align: middle;
    }

    .synthese-table tbody td:first-child {
        padding-left: 30px;
        font-weight: 600;
        color: #222222;
    }

    /* Badges de période */
    .synthese-periode-badge {
        display: inline-block;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
    }

    .synthese-periode-formation {
        background: rgba(52, 152, 219, 0.1);
        color: #2980b9;
    }

    .synthese-periode-entreprise-1 {
        background: rgba(221, 153, 51, 0.1);
        color: #c4872d;
    }

    .synthese-periode-entreprise-2 {
        background: rgba(39, 174, 96, 0.1);
        color: #1e8449;
    }

    /* Badges de compétences */
    .synthese-competences-cell {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .synthese-comp-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 700;
        color: white;
    }

    .synthese-badge-C1 {
        background: #DD9933;
    }

    .synthese-badge-C2 {
        background: #3498db;
    }

    .synthese-badge-C3 {
        background: #9b59b6;
    }

    .synthese-badge-C4 {
        background: #27ae60;
    }

    .synthese-badge-C5 {
        background: #e74c3c;
    }

    .synthese-badge-C6 {
        background: #1abc9c;
    }

    /* Dates */
    .synthese-date-cell {
        white-space: nowrap;
        font-size: 14px;
        color: #888888;
    }

    /* Ligne cachée */
    .synthese-table tbody tr.hidden {
        display: none;
    }

    /* Légende */
    .synthese-legend-card {
        margin-top: 30px;
        padding: 35px 40px;
        background: white;
        border-radius: 24px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    }

    .synthese-legend-title {
        font-family: 'Abril Fatface', serif;
        font-size: 22px;
        margin: 0 0 20px 0;
        color: #222222;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .synthese-legend-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
    }

    .synthese-legend-item {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 14px;
        color: #666666;
    }

    .synthese-legend-item .synthese-comp-badge {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    /* ==================== RESPONSIVE ==================== */

    /* Tablette moyenne (769px à 900px) */
    @media (min-width: 769px) and (max-width: 900px) {
        .synthese-title {
            font-size: 56px;
        }

        .synthese-filters-row {
            flex-direction: column;
            gap: 25px;
        }

        .synthese-filter-group {
            min-width: 100%;
        }
    }

    /* Tablette (601px à 768px) */
    @media (min-width: 601px) and (max-width: 768px) {
        .synthese-section {
            padding: 60px 20px;
        }

        .synthese-title {
            font-size: 42px;
        }

        .synthese-header {
            flex-direction: column;
            gap: 15px;
        }

        .synthese-pdf-btn {
            padding: 12px 24px;
            font-size: 14px;
        }

        .synthese-filters-card {
            padding: 30px 25px;
        }

        .synthese-filters-title {
            font-size: 20px;
        }

        .synthese-filters-row {
            flex-direction: column;
            gap: 20px;
        }

        .synthese-filter-group {
            min-width: 100%;
        }

        .synthese-nav {
            padding: 15px 20px;
            gap: 10px;
        }

        .synthese-nav-link {
            padding: 12px 20px;
            font-size: 14px;
        }

        .synthese-table {
            min-width: 700px;
        }

        .synthese-table thead th,
        .synthese-table tbody td {
            padding: 16px 14px;
            font-size: 13px;
        }

        .synthese-table thead th:first-child,
        .synthese-table tbody td:first-child {
            padding-left: 20px;
        }
    }

    /* Mobile (max 600px) */
    @media (max-width: 600px) {
        .synthese-section {
            padding: 40px 12px;
        }

        .synthese-title {
            font-size: 32px;
        }

        .synthese-header {
            flex-direction: column;
            gap: 15px;
            margin-bottom: 30px;
        }

        .synthese-nav {
            padding: 12px;
            gap: 6px;
            margin-bottom: 25px;
        }

        .synthese-nav-link {
            padding: 8px 14px;
            font-size: 12px;
            gap: 5px;
        }

        .synthese-nav-link svg {
            width: 14px;
            height: 14px;
        }

        .synthese-filters-card {
            padding: 20px 15px;
            border-radius: 16px;
        }

        .synthese-filters-title {
            font-size: 16px;
            margin-bottom: 15px;
        }

        .synthese-filters-row {
            flex-direction: column;
            gap: 15px;
            margin-bottom: 15px;
        }

        .synthese-filter-group {
            min-width: 100%;
        }

        .synthese-filter-group h4 {
            font-size: 11px;
            margin-bottom: 10px;
        }

        .synthese-filter-btn {
            padding: 7px 14px;
            font-size: 12px;
        }

        .synthese-reset-btn {
            padding: 8px 18px;
            font-size: 12px;
        }

        .synthese-results-count {
            font-size: 13px;
        }

        .synthese-results-count strong {
            font-size: 18px;
        }

        .synthese-table-card {
            border-radius: 16px;
        }

        /* Optimisation du tableau pour mobile */
        .synthese-table {
            min-width: 600px;
        }

        .synthese-table thead th {
            padding: 12px 8px;
            font-size: 11px;
        }

        .synthese-table thead th:first-child {
            padding-left: 12px;
        }

        .synthese-table tbody td {
            padding: 12px 8px;
            font-size: 12px;
        }

        .synthese-table tbody td:first-child {
            padding-left: 12px;
            font-size: 12px;
        }

        .synthese-periode-badge {
            padding: 6px 12px;
            font-size: 10px;
        }

        .synthese-date-cell {
            font-size: 11px;
        }

        .synthese-comp-badge {
            width: 28px;
            height: 28px;
            font-size: 9px;
        }

        .synthese-competences-cell {
            gap: 6px;
        }

        .synthese-legend-card {
            padding: 20px 15px;
            border-radius: 16px;
        }

        .synthese-legend-title {
            font-size: 16px;
        }

        .synthese-legend-grid {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .synthese-legend-item {
            font-size: 13px;
        }

        .synthese-legend-item .synthese-comp-badge {
            width: 28px;
            height: 28px;
            font-size: 10px;
        }

        .synthese-pdf-btn {
            padding: 10px 18px;
            font-size: 13px;
        }

        .synthese-pdf-btn svg {
            width: 16px;
            height: 16px;
        }
    }