:root {
    --accent-blue: #3b93d0;
    --accent-blue-hover: #62b5ef;
    --accent-color: #3b93d0;
    --accent-hover: #52a5e4;
    --border-color: #223344;
    --text-main: #e0e0e0;
    --text-muted: #888888;
}

html {
    background-color: #1a1a1a;
    height: 100%;
}

body {
    background-color: #1a1a1a;
    background-image: linear-gradient(to bottom, #1a1a1a 40%, #112233 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.fixed-header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0f0f15;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.fixed-header-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-top-bar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.top-bar {
    text-align: left;
    margin-bottom: 15px;
}

.back-top, .back-top:visited {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 14px;
}

.back-top:hover {
    color: var(--accent-blue-hover);
}

.header-logo { 
    text-align: center; 
    width: 100%;
}

.header-logo img {
    width: 200px;
    max-width: 280px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    transition: transform 0.2s;
}

.header-logo img:hover {
    transform: scale(1.03);
}

a, a:visited {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover, a:visited:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 30px 35px;
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
    border-radius: 6px;
    box-sizing: border-box;
    margin-top: 125px;
    margin-bottom: 30px;
}

h1 {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.stats-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 18px;
    color: var(--accent-blue);
    margin-top: 35px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    font-size: 15px;
    color: #fff;
    margin: 15px 0 10px 0;
    text-align: left;
}

.home-title-center {
    text-align: center;
    margin-bottom: 30px;
}

.home-title-center h1 {
    font-size: 26px;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.home-breadcrumb-left {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.nav-container {
    margin-bottom: 25px;
}

.back-link {
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 13px;
}

.breadcrumb-nav {
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.4);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.03);
    display: inline-block;
}

.breadcrumb-nav .sep, .breadcrumb-nav span {
    margin: 0 8px;
    color: #444;
}

.breadcrumb-nav .current, .breadcrumb-nav span.current {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.search-form {
    background: #0d0f13;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin: 0 auto 35px auto;
    max-width: 650px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
    box-sizing: border-box; /* Évite que le padding ne fasse éclater la boîte */
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.search-form input[type="text"] {
    flex: 2;
    min-width: 0; /* Autorise le champ à rétrécir proprement dans le flexbox sans dépasser */
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #334455;
    background: #161a22;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form input[type="text"]:focus, 
.search-form select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(59, 147, 208, 0.4);
}

.search-form select {
    flex: 1;
    min-width: 0; /* Pareil ici pour éviter le dépassement */
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #334455;
    background: #161a22;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.search-actions {
    text-align: center;
    margin-top: 15px;
}

.search-form button {
    background: linear-gradient(180deg, #2a82be 0%, #1d5f8a 100%);
    color: #ffffff;
    padding: 10px 30px;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.search-form button:hover {
    background: linear-gradient(180deg, #3b93d0 0%, #2475aa 100%);
    box-shadow: 0 0 15px rgba(59, 147, 208, 0.5);
}

.reset-btn {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    padding: 0 5px;
}
.reset-btn:hover { color: #fff; }

        .group-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 4px;
            margin-bottom: 30px;
        }


        .archive-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 6px;
            text-align: left;
            margin-bottom: 15px;
            table-layout: fixed;
        }


        .group-table th {
            color: var(--text-muted);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding: 8px 12px;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
            font-weight: 600;
        }
        .archive-table th {
            padding: 6px 8px;
            color: var(--text-muted);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 1px solid var(--border-color);
        }

.group-table th:not(.th-name) {
    text-align: center;
}

.group-table td:not(.td-name) {
    text-align: center;
}

.group-table th.th-name { text-align: left; }

.archive-table th.cell-media, .archive-table td.cell-media {
    width: 75px;
    text-align: center;
}

.archive-table th.cell-mobile-media, .archive-table td.cell-mobile-media {
    width: 110px;
    text-align: right;
}

.group-table tr.group-row {
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.15s ease;
}

.group-table tr.group-row:hover {
    background: rgba(36, 117, 170, 0.08);
}

.archive-table tr.archive-row {
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.15s ease;
}

.archive-table tr.archive-row td {
    padding: 6px 10px;
    background-color: transparent;
    border-bottom: 1px solid #161616;
}

.archive-table tr.archive-row:hover td {
    background: rgba(36, 117, 170, 0.08);
}
/* .archive-table tr:has(.year-separator) td { */
/*    background: transparent; */
/* } */
 .archive-table tr.row-year td {
background: transparent;
} 

.group-table td {
    padding: 10px 12px;
    font-size: 14px;
    vertical-align: middle;
}

.archive-table td {
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.archive-table .archive-name {
    font-size: 15px;
}

.group-table td.td-name { 
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left; 
}
.archive-bullet {
    flex-shrink: 0;
}

.group-bullet {
    color: var(--accent-blue);
    font-size: 13px;
    margin-right: 8px;
}

.group-table a.group-name, .archive-table td a {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
}

.group-table tr:hover a.group-name, .archive-table td a:hover {
    color: var(--accent-blue-hover);
}

.col-pc { display: table-cell; }
.col-mobile { display: none; }

.year-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0 8px 0;
    color: var(--accent-color);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}
.year-separator::before, .year-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #252525;
}
.year-separator span {
    padding: 0 12px;
    white-space: nowrap;
}

.disc-badge, .media-badge {
    display: inline-block;
    background: rgba(59, 147, 208, 0.15);
    color: var(--accent-blue-hover);
    border: 1px solid rgba(59, 147, 208, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.media-badge {
    background: #181818;
    color: #555;
    border: 1px solid #222;
    border-radius: 3px;
    font-size: 11px;
}

.media-badge.active {
    background: rgba(59, 147, 208, 0.1);
    color: var(--accent-color);
    border-color: rgba(59, 147, 208, 0.3);
}

.date-text {
    color: #778899;
    font-size: 13px;
    font-style: italic;
}

.gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 18px; 
    margin-top: 25px; 
    margin-bottom: 35px; 
}

.gallery a {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
    aspect-ratio: 1 / 1;
}

.gallery img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.gallery a:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(59, 147, 208, 0.4);
}

.gallery a:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.spectacle-info {
    background: #0b0d11;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    padding: 25px;
    margin-top: 30px;
    border-radius: 0 6px 6px 0;
    line-height: 1.7;
    color: #ccc;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.spectacle-info h3 { 
    margin-top: 0; 
    color: #fff; 
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.group-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 12px; 
    margin-top: 25px; 
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.group-header h2 {
    margin: 0; 
    border: none; 
    padding: 0; 
    font-size: 24px; 
    color: #fff;
}

.btn-copy, .copy-page-btn {
    background: #18222d; 
    color: var(--accent-blue); 
    border: 1px solid var(--accent-blue); 
    padding: 8px 15px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-copy:hover, .copy-page-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 10px rgba(59, 147, 208, 0.4);
}

ul.group-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

ul.group-list li {
    padding: 6px 10px;
    border-bottom: 1px solid #161616;
    font-size: 14px;
}

footer {
    margin-top: 50px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .container { 
        margin-top: 150px;
        padding: 20px 15px;
        backdrop-filter: none; 
        -webkit-backdrop-filter: none;
    }
    .fixed-header-inner {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 0 5px;
    }
    .header-top-bar { 
        position: static; 
        transform: none;
        width: 100%;
        text-align: left;
    }
    .back-top {
        font-size: 12px;
    }
    .header-logo img {
        width: 200px;
        max-width: 200px;
    }
    .gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
    .group-table th, .group-table td { padding: 8px 4px; font-size: 12px; }
    .group-table .col-hide-mobile { display: none; }
    
    .col-pc { display: none; }
    .col-mobile { display: table-cell; }
    
    .search-row { flex-direction: column; }
    .search-form input[type="text"], .search-form select, .search-form button { 
        width: 100%; 
        box-sizing: border-box;
    }
    .archive-table td { font-size: 14px; }
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-list li {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid #161616;
    transition: all 0.15s ease;
    cursor: pointer;
}

.group-list li:hover {
    background: rgba(36, 117, 170, 0.08);
}

.group-list li a {
    font-size: 1.1em;
    font-weight: 600;
    color: #3b93d0;
    text-decoration: none;
}

.group-list li:hover a {
    color: #52a8e8;   /* Bleu légèrement plus clair au survol si désiré */
    text-decoration: underline;
}@media (max-width: 915px) and (orientation: landscape) {
    .fixed-header-container {
        position: relative !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .container {
        margin-top: -10px !important;
    }
}