/* ==================================================
   CONFIGURATION GÉNÉRALE
================================================== */

* {
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f3f5;
    color: #20252b;
}

body {
    margin: 0;
    min-height: 100vh;
}


/* ==================================================
   BANDEAU SUPÉRIEUR
================================================== */

.site-header {
    position: fixed;

    top: 50px;
    left: 0;
    right: 0;

    height: 125px;

    z-index: 1000;

    background: #213865;
    color: white;

    padding: 20px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25);
}
.site-header h1 {
    margin: 0 0 5px;
    font-size: 28px;
}

.site-header p {
    margin: 0;
    color: #bfc5ca;
}


/* ==================================================
   TITRE + NOUVEAUTÉ
================================================== */

.header-title {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.header-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header-main h1 {
    margin: 0;
}

.latest-novelty {
    background: #eef3fa;
    color: #213865;

    border: 1px solid #c9d6e8;
    border-left: 4px solid #d89b18;
    border-radius: 6px;

    padding: 8px 15px;

    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.latest-novelty:hover {
    background: #e5edf8;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.12);
}


/* ==================================================
   BOUTON CONTACT
================================================== */

.contact-button {
    display: inline-block;

    width: auto;

    padding: 8px 14px;

    background: white;
    color: #213865;

    border: 1px solid white;
    border-radius: 6px;

    text-decoration: none;

    font-size: 14px;
    font-weight: bold;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.contact-button:hover {
    background: #dce3eb;
    color: #162846;
}


/* ==================================================
   COMPTEURS
================================================== */

.stats {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.stat {
    min-width: 90px;

    padding: 10px 12px;

    text-align: center;

    background: #2F75B5;

    border: 1px solid #454c54;
    border-radius: 6px;
}

.stat span {
    display: block;

    font-size: 24px;
    font-weight: bold;
}

.stat small {
    color: #bfc5ca;
}


/* ==================================================
   INTRODUCTION
================================================== */

.catalogue-intro {
    position: fixed;

    top: 125px;
    left: 0;
    right: 0;

    z-index: 901;

    margin: 0;

    padding: 8px 30px;

    background: #ffffff;
    color: #213865;

    font-size: 13px;
    line-height: 1.4;

    text-align: center;

    border-bottom: 1px solid #d9dde1;
}


/* ==================================================
   NAVIGATION CATALOGUE / BILLETS FAUTÉS
================================================== */

.navigation-catalogues {
    position: fixed;

    top: 0px;
    left: 0;
    right: 0;

    z-index: 950;

    width: 100%;
    height: 52px;

    padding: 7px 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    background: #ffffff;

    border-bottom: 1px solid #d9dde1;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.08);
}


/* ==================================================
   BOUTONS DE NAVIGATION
================================================== */

.navigation-catalogues a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: auto;
    min-width: 150px;

    height: 36px;

    padding: 0 20px;

    background: #f1f1f1;
    color: #213865;

    border: 1px solid #bfc5ca;
    border-radius: 6px;

    text-decoration: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 14px;
    font-weight: bold;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.navigation-catalogues a:hover {
    background: #dce3eb;
    color: #162846;

    transform: translateY(-1px);

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.15);
}

.navigation-catalogues a.nav-active {
    background: #213865;
    color: white;

    border-color: #213865;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.18);
}

.navigation-catalogues a.nav-active:hover {
    background: #162846;
    color: white;
}


/* ==================================================
   BOUTON EXPORT CSV
================================================== */

/*
   IMPORTANT :
   Ce bouton est un <button>, pas un <a>.
   On lui donne donc explicitement une largeur automatique.
*/

.navigation-catalogues .export-csv-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: auto;
    min-width: 0;
    max-width: max-content;

    height: 36px;

    padding: 0 14px;

    margin: 0;

    background: #30363d;
    color: white;

    border: 1px solid #30363d;
    border-radius: 6px;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;
    font-weight: bold;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.navigation-catalogues .export-csv-button:hover {
    background: #1f2429;

    transform: translateY(-1px);

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.15);
}


/* ==================================================
   FILTRES
================================================== */

.filters {
    position: fixed;

    top: 175px;
    left: 0;
    right: 0;

    z-index: 900;

    display: flex;

    flex-wrap: nowrap;

    align-items: flex-end;

    gap: 7px;

    padding: 15px 30px 15px 200px;

    background: white;

    border-bottom: 1px solid #d9dde1;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.10);

    overflow-x: auto;
}


/* ==================================================
   LARGEURS DES FILTRES
================================================== */

.filter:nth-child(1) {
    flex: 0 0 150px;
}

.filter:nth-child(2) {
    flex: 0 0 100px;
}

.filter:nth-child(3) {
    flex: 0 0 95px;
}

.filter:nth-child(4) {
    flex: 0 0 100px;
}

.filter:nth-child(5) {
    flex: 0 0 160px;
}

.filter:nth-child(6) {
    flex: 0 0 180px;
}

.filter:nth-child(7) {
    flex: 0 0 350px;
}

.rarity-filter {
    flex: 0 0 190px;
}

.filter:nth-child(9) {
    flex: 0 0 150px;
}

.filters button {
    flex: 0 0 130px;
    width: 130px;
}


/* ==================================================
   ÉLÉMENTS DES FILTRES
================================================== */

.filter {
    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 0;
}

.filter label {
    font-size: 12px;
    font-weight: bold;

    text-align: center;

    color: #626a72;
}


/* ==================================================
   INPUT / SELECT / BOUTONS DES FILTRES
================================================== */

.filters input,
.filters select,
.filters button {
    width: 100%;
    height: 38px;

    padding: 0 10px;

    font-family: inherit;
    font-size: 14px;

    border: 1px solid #cbd0d5;

    border-radius: 5px;

    background: white;
    color: #20252b;
}

.filters input:focus,
.filters select:focus {
    outline: 2px solid #8db7e5;

    border-color: #6b9ed0;
}

.filters button {
    background: #30363d;
    color: white;

    border-color: #30363d;

    cursor: pointer;

    white-space: nowrap;
}

.filters button:hover {
    background: #1f2429;
}


/* ==================================================
   CONTENU PRINCIPAL
================================================== */

main {
    width: calc(100% - 40px);

    max-width: 1622px;

    margin: 0 auto;

    padding-top: 280px;
}


/* ==================================================
   TABLEAU
================================================== */

.table-container {
    width: 100%;

    overflow-x: auto;

    background: white;

    border: 1px solid #d9dde1;

    border-radius: 7px;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.04);

    -webkit-overflow-scrolling: touch;
}

table {
    width: max-content;

    min-width: 0;

    table-layout: fixed;

    border-collapse: separate;

    border-spacing: 0;

    white-space: nowrap;
}


/* ==================================================
   EN-TÊTE DU TABLEAU
================================================== */

thead {
    background: #e9ecef;
}

th {
    padding: 12px 15px;

    text-align: center;

    font-size: 14px;
    font-weight: bold;

    color: #213865;

    background: #e9ecef;

    border-bottom: 2px solid #ccd1d6;

    cursor: pointer;

    user-select: none;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

th:hover {
    background: #dce3eb;
    color: #162846;
}

th::after {
    content: "↕";

    display: inline-block;

    margin-left: 7px;

    color: #8b949e;

    font-size: 12px;

    font-weight: normal;

    vertical-align: middle;
}

th.sort-asc::after {
    content: "↑";

    color: #213865;

    font-weight: bold;
}

th.sort-desc::after {
    content: "↓";

    color: #213865;

    font-weight: bold;
}


/* ==================================================
   CELLULES
================================================== */

td {
    height: 42px;

    padding: 11px 15px;

    border-bottom: 1px solid #e4e7e9;

    font-size: 14px;

    vertical-align: middle;

    text-align: center;
}

tbody tr {
    height: 42px;

    cursor: pointer;

    transition:
        filter 0.15s ease,
        box-shadow 0.15s ease;
}

tbody tr:hover {
    filter: brightness(0.96);

    box-shadow:
        inset 0 0 0 2px #213865;

    font-weight: bold;
}

tbody tr:last-child td {
    border-bottom: 0;
}


/* ==================================================
   LARGEUR DES COLONNES
================================================== */

.table-container table th:nth-child(1),
.table-container table td:nth-child(1) {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
}

.table-container table th:nth-child(2),
.table-container table td:nth-child(2) {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
}

.table-container table th:nth-child(3),
.table-container table td:nth-child(3) {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
}

.table-container table th:nth-child(4),
.table-container table td:nth-child(4) {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.table-container table th:nth-child(5),
.table-container table td:nth-child(5) {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
}

.table-container table th:nth-child(6),
.table-container table td:nth-child(6) {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
}

.table-container table th:nth-child(7),
.table-container table td:nth-child(7) {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
}

.table-container table th:nth-child(8),
.table-container table td:nth-child(8) {
    width: 370px !important;
    min-width: 370px !important;
    max-width: 370px !important;

    text-align: left !important;
}


/* ==================================================
   RARETÉ
================================================== */

.table-container table th:nth-child(9),
.table-container table td:nth-child(9) {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;

    text-align: center !important;
}

.rarete-cell {
    font-weight: bold;
}

.rarete-display {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;
}

.rarete-value {
    display: inline-block;

    min-width: 30px;

    padding: 4px 7px;

    background: #fff3cd;
    color: #7a5700;

    border: 1px solid #e5c76b;

    border-radius: 5px;

    font-weight: bold;
}

.rarete-empty {
    color: #999;
}


/* ==================================================
   PASTILLES INDICE DE RARETÉ
================================================== */

.rarity-dots {
    display: inline-flex;

    align-items: center;

    gap: 3px;

    white-space: nowrap;
}

.rarity-dot {
    display: inline-block;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #d7dce1;

    border: 1px solid #aeb5bc;

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.rarity-dot.active {
    background: #d89b18;

    border-color: #a87300;

    box-shadow:
        0 0 3px rgba(216, 155, 24, 0.55);
}

.rarity-index {
    display: inline-block;

    min-width: 38px;

    padding: 3px 6px;

    margin-left: 2px;

    border-radius: 10px;

    background: #213865;

    color: white;

    font-size: 11px;
    font-weight: bold;

    line-height: 1.2;
}

.rarity-index-detail {
    background: #eef3fa;
}

.rarity-index-detail strong {
    color: #213865;
}


/* ==================================================
   ESTIMATION
================================================== */

.table-container table th:nth-child(10),
.table-container table td:nth-child(10) {
    width: 170px !important;

    min-width: 170px !important;

    max-width: 170px !important;
}


/* ==================================================
   COLONNE PAYS
================================================== */

#catalogue thead th:nth-child(6) {
    text-align: center !important;
}

#catalogue tbody td.country-cell {
    display: table-cell !important;

    height: 42px !important;

    padding: 11px 15px !important;

    vertical-align: middle !important;

    text-align: left !important;

    white-space: nowrap;

    line-height: 20px !important;
}

#catalogue tbody td.country-cell .country-flag {
    display: inline-block !important;

    width: 32px !important;
    height: 20px !important;

    object-fit: cover;

    margin: 0 8px 0 0 !important;

    padding: 0;

    vertical-align: middle !important;

    border: 1px solid rgba(0, 0, 0, 0.18);

    border-radius: 2px;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15);
}

#catalogue tbody td.country-cell span {
    display: inline-block !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 20px !important;

    vertical-align: middle !important;
}


/* ==================================================
   HOLOGRAMME
================================================== */

#catalogue th:nth-child(8),
#catalogue td:nth-child(8) {
    text-align: left !important;
}

.holonum-cell {
    text-align: left !important;

    white-space: nowrap;
}


/* ==================================================
   FACIALE + IMAGE
================================================== */

.faciale-cell {
    padding: 6px 10px !important;

    font-weight: bold;

    font-size: 15px;
}

.faciale-content {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 10px;

    min-height: 30px;
}

.billet-image {
    width: 55px;
    height: 34px;

    object-fit: cover;

    flex-shrink: 0;

    padding: 2px;

    background: #fffff2;

    border: 1px solid #222222;

    border-radius: 3px;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.25);

    user-select: none;

    -webkit-user-drag: none;
}


/* ==================================================
   ÉTOILES
================================================== */

.photo-stars {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 2px;

    margin-left: 3px;

    padding: 2px 5px;

    background: rgba(255, 255, 255, 0.90);

    border: 1px solid rgba(0, 0, 0, 0.25);

    border-radius: 10px;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.35);

    vertical-align: middle;
}

.photo-star {
    color: #f2b600;

    font-size: 14px;

    line-height: 1;

    font-weight: bold;

    text-shadow:
        0 0 1px #000,
        0 1px 2px rgba(0, 0, 0, 0.55);
}


/* ==================================================
   ALTERNANCE
================================================== */

tbody tr:nth-child(even) {
    box-shadow:
        inset 0 0 0 9999px rgba(0, 0, 0, 0.025);
}


/* ==================================================
   MESSAGES
================================================== */

.loading,
.error {
    padding: 30px;

    text-align: center;

    color: #6d747b;
}

.error {
    color: #a83232;
}

.no-results {
    margin-top: 15px;

    padding: 20px;

    text-align: center;

    background: white;

    border: 1px solid #d9dde1;

    border-radius: 7px;

    color: #6d747b;
}


/* ==================================================
   FICHE DÉTAILLÉE
================================================== */

.modal {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);
}

.modal[hidden] {
    display: none;
}

.modal-content {
    position: relative;

    width: 100%;

    max-width: 600px;

    max-height: 100vh;

    overflow-y: auto;

    padding: 30px;

    background: white;

    border-radius: 10px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.30);
}

.modal-content h2 {
    margin: 0 0 25px;

    padding-right: 40px;

    color: #213865;

    font-size: 24px;
}

.modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    padding: 0;

    font-size: 25px;

    line-height: 38px;

    border-radius: 50%;

    background: #30363d;

    color: white;
}

.modal-close:hover {
    background: #1f2429;
}

.modal-details {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.detail {
    padding: 12px 15px;

    background: #f1f3f5;

    border-radius: 6px;
}

.detail span {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
    font-weight: bold;

    color: #6d747b;

    text-transform: uppercase;
}

.detail strong {
    display: block;

    font-size: 15px;

    color: #20252b;
}


/* ==================================================
   RARETÉ DANS LA FICHE
================================================== */

.rarity-detail {
    background: #fff3cd;
}

.rarity-detail strong {
    color: #7a5700;

    font-size: 18px;
}

.rarity-index-detail strong {
    display: inline-flex;

    align-items: center;

    flex-wrap: nowrap;

    white-space: nowrap;

    gap: 3px;
}

.rarity-index-detail .rarity-dots {
    display: inline-flex;

    flex-direction: row;

    align-items: center;

    flex-wrap: nowrap;

    gap: 3px;

    white-space: nowrap;
}


/* ==================================================
   ESTIMATION DANS LA FICHE
================================================== */

.detail:last-child {
    background: #e9f1fa;
}

.detail:last-child strong {
    color: #213865;

    font-size: 18px;
}


/* ==================================================
   PAYS DANS LA FICHE
================================================== */

#detailPays {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 8px;
}

#detailPays .country-flag {
    width: 32px;
    height: 20px;

    flex: 0 0 32px;
}


/* ==================================================
   COULEURS 2002
================================================== */

.row-5-2002 {
    background: #D0D0D0;
    border-left: 5px solid #D0D0D0;
}

.row-10-2002 {
    background: #D7A4B5;
    border-left: 5px solid #D7A4B5;
}

.row-20-2002 {
    background: #A4D6ED;
    border-left: 5px solid #A4D6ED;
}

.row-50-2002 {
    background: #FFC6B3;
    border-left: 5px solid #FFC6B3;
}

.row-100-2002 {
    background: #A2CE91;
    border-left: 5px solid #A2CE91;
}

.row-200-2002 {
    background: #E5BC53;
    border-left: 5px solid #E5BC53;
}

.row-500-2002 {
    background: #C4A5C7;
    border-left: 5px solid #C4A5C7;
}


/* ==================================================
   COULEURS EUROPE
================================================== */

.row-5-2013 {
    background: #B2B290;
    border-left: 5px solid #B2B290;
}

.row-10-2014 {
    background: #E39A77;
    border-left: 5px solid #E39A77;
}

.row-20-2015 {
    background: #8DBEBB;
    border-left: 5px solid #8DBEBB;
}

.row-50-2017 {
    background: #D4896A;
    border-left: 5px solid #D4896A;
}

.row-100-2019 {
    background: #C5E194;
    border-left: 5px solid #C5E194;
}

.row-200-2019 {
    background: #F9E284;
    border-left: 5px solid #F9E284;
}

.row-default {
    background: #ffffff;
    border-left: 5px solid #999999;
}


/* ==================================================
   PIED DE PAGE
================================================== */

footer {
    padding: 25px;

    text-align: center;

    color: #858c93;

    font-size: 13px;
}


/* ==================================================
   COMPTEUR DE VISITEURS
================================================== */

.visitor-counter {
    display: flex;

    justify-content: center;
    align-items: center;

    margin-top: 8px;

    height: 35px;
}

.visitor-counter iframe {
    display: block;

    width: 160px;
    height: 35px;

    border: none;
}


/* ==================================================
   INFO-BULLE ESTIMATION
================================================== */

.estimation-help {
    cursor: help;
}

.estimation-tooltip {
    display: none;

    position: fixed;

    width: 300px;

    padding: 12px 14px;

    background: #333;
    color: #fff;

    border-radius: 6px;

    font-size: 13px;
    font-weight: normal;
    line-height: 1.45;

    text-align: left;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3);

    z-index: 999999;
}

.estimation-tooltip.visible {
    display: block;
}


/* ==================================================
   BOUTON INFO A / B
================================================== */

.holonum-info {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    margin-left: 7px;

    padding: 0;

    border: 1px solid #213865;

    border-radius: 50%;

    background: #ffffff;
    color: #213865;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;
    font-weight: bold;

    line-height: 1;

    cursor: pointer;

    vertical-align: middle;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.holonum-info:hover {
    background: #213865;
    color: white;

    transform: scale(1.1);
}


/* ==================================================
   CHARGEMENT IMAGE
================================================== */

.image-loading {
    padding: 15px 25px;

    background: white;

    color: #213865;

    font-size: 16px;

    font-weight: bold;

    border-radius: 7px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.30);
}


/* ==================================================
   IMAGES FICHE
================================================== */

.billet-detail-image {
    width: auto;

    max-width: min(350px, 100%);

    height: auto;

    display: block;

    margin: 0 auto;

    cursor: pointer;

    user-select: none;

    -webkit-user-drag: none;
}


/* ==================================================
   AGRANDISSEMENT IMAGE
================================================== */

.image-overlay {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.85);

    cursor: zoom-out;
}

.image-overlay-img {
    max-width: 95vw;

    max-height: 95vh;

    width: auto;
    height: auto;

    object-fit: contain;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5);

    border: 2px solid black;

    border-radius: 4px;

    user-select: none;

    -webkit-user-drag: none;
}


/* ==================================================
   BOUTON FERMER IMAGE
================================================== */

.image-overlay-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #30363d;

    color: white;

    font-size: 30px;

    line-height: 45px;

    cursor: pointer;

    z-index: 5001;
}

.image-overlay-close:hover {
    background: #1f2429;
}


/* ==================================================
   PROTECTION IMAGE
================================================== */

.protected-image-container {
    position: relative;

    display: inline-block;

    max-width: 95vw;
    max-height: 95vh;

    cursor: pointer;

    line-height: 0;
}

.protected-image-container .image-overlay-img {
    display: block;

    max-width: 95vw;
    max-height: 95vh;

    width: auto;
    height: auto;

    object-fit: contain;

    user-select: none;

    -webkit-user-drag: none;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5);

    border: 2px solid black;

    border-radius: 4px;
}


/* ==================================================
   FILIGRANE / COPYRIGHT
================================================== */

.image-watermark {
    position: absolute;

    bottom: 80px;
    left: 50%;

    transform: translateX(-50%);

    padding: 6px 12px;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;
    font-weight: bold;

    line-height: 1.35;

    text-align: center;

    color: rgba(255, 255, 255, 0.75);

    background: rgba(0, 0, 0, 0.35);

    border-radius: 4px;

    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.8);

    pointer-events: none;

    user-select: none;

    z-index: 10;

    white-space: nowrap;
}


/* ==================================================
   TABLETTES
================================================== */

@media (max-width: 1000px) {

    .site-header {
        padding: 15px 20px;
    }

    .site-header h1 {
        font-size: 23px;
    }

    .stats {
        gap: 5px;
    }

    .stat {
        min-width: 75px;

        padding: 8px 6px;
    }

    .stat span {
        font-size: 20px;
    }

    .stat small {
        font-size: 10px;
    }

    .filters {
        padding-left: 20px;
    }

    main {
        width: calc(100% - 30px);
    }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 600px) {

    /* HEADER */

    .site-header {
        height: 190px;

        padding: 12px 15px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 8px;
    }


    /* TITRE */

    .header-title {
        width: 100%;

        display: flex;

        align-items: flex-start;

        justify-content: space-between;

        gap: 8px;
    }

    .header-main {
        min-width: 0;

        gap: 8px;
    }

    .site-header h1 {
        font-size: 19px;

        line-height: 1.2;

        margin: 0;
    }


    /* NOUVEAUTÉ */

    .latest-novelty {
        padding: 6px 9px;

        font-size: 11px;

        line-height: 1.3;

        max-width: 240px;
    }


    /* CONTACT */

    .contact-button {
        width: auto;

        padding: 7px 9px;

        font-size: 11px;

        flex-shrink: 0;
    }


    /* COMPTEURS */

    .stats {
        width: 100%;

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        gap: 5px;
    }

    .stat {
        min-width: 0;

        padding: 5px 3px;

        border-radius: 5px;
    }

    .stat span {
        font-size: 16px;
    }

    .stat small {
        display: block;

        font-size: 8px;

        line-height: 1.15;
    }


    /* INTRODUCTION */

    .catalogue-intro {
        top: 190px;

        min-height: 64px;

        padding: 8px 12px;

        font-size: 11px;

        line-height: 1.35;
    }


    /* NAVIGATION MOBILE */

    .navigation-catalogues {
        top: 254px;

        height: 48px;

        padding: 6px 10px;

        gap: 7px;
    }

    .navigation-catalogues a {
        flex: 1 1 0;

        min-width: 0;

        height: 34px;

        padding: 0 8px;

        font-size: 12px;

        line-height: 1;
    }


    /* EXPORT MOBILE */

    .navigation-catalogues .export-csv-button {
        flex: 0 0 auto;

        width: auto;

        min-width: 0;

        height: 34px;

        padding: 0 9px;

        font-size: 11px;

        white-space: nowrap;
    }


    /* FILTRES */

    .filters {
        top: 302px;

        height: 78px;

        padding: 10px 15px;

        gap: 7px;

        align-items: flex-end;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    .filter:nth-child(1) {
        flex: 0 0 125px;
    }

    .filter:nth-child(2) {
        flex: 0 0 90px;
    }

    .filter:nth-child(3) {
        flex: 0 0 110px;
    }

    .filter:nth-child(4) {
        flex: 0 0 110px;
    }

    .filter:nth-child(5) {
        flex: 0 0 135px;
    }

    .filter:nth-child(6) {
        flex: 0 0 150px;
    }

    .filter:nth-child(7) {
        flex: 0 0 190px;
    }

    .rarity-filter {
        flex: 0 0 130px;
    }

    .filter:nth-child(9) {
        flex: 0 0 135px;
    }

    .filters button {
        flex: 0 0 125px;

        width: 125px;
    }

    .filter label {
        font-size: 10px;
    }

    .filters input,
    .filters select,
    .filters button {
        height: 36px;

        font-size: 13px;

        padding: 0 8px;
    }


    /* CONTENU */

    main {
        width: calc(100% - 20px);

        padding-top: 398px;

        margin: 0 auto;
    }


    /* TABLEAU */

    .table-container {
        width: 100%;

        overflow-x: auto;

        border-radius: 6px;
    }

    table {
        min-width: 1590px;
    }

    th {
        padding: 10px 12px;

        font-size: 12px;
    }

    td {
        padding: 9px 12px;

        font-size: 12px;
    }


    /* IMAGES */

    .billet-image {
        width: 48px;
        height: 30px;
    }

    .faciale-cell {
        font-size: 13px;
    }

    .faciale-content {
        gap: 7px;
    }


    /* PAYS */

    #catalogue tbody td.country-cell {
        padding: 9px 12px !important;

        font-size: 12px;
    }


    /* MODAL */

    .modal {
        padding: 8px;
    }

    .modal-content {
        width: 100%;

        max-height: 95vh;

        padding: 20px 15px;

        border-radius: 8px;
    }

    .modal-content h2 {
        font-size: 20px;

        margin-bottom: 18px;
    }

    .modal-details {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .detail {
        padding: 10px 12px;
    }

    .detail span {
        font-size: 10px;
    }

    .detail strong {
        font-size: 14px;
    }


    /* IMAGE AGRANDIE */

    .image-overlay {
        padding: 10px;
    }

    .image-overlay-img {
        max-width: 96vw;

        max-height: 90vh;
    }

    .image-overlay-close {
        top: 10px;
        right: 10px;

        width: 40px;
        height: 40px;

        line-height: 40px;

        font-size: 26px;
    }


    /* PIED DE PAGE */

    footer {
        padding: 20px 10px;

        font-size: 11px;
    }
}


/* ==================================================
   TRÈS PETITS TÉLÉPHONES
================================================== */

@media (max-width: 400px) {

    .site-header {
        height: 200px;
    }

    .site-header h1 {
        font-size: 18px;
    }

    .latest-novelty {
        max-width: 210px;

        font-size: 10px;
    }

    .catalogue-intro {
        top: 200px;

        min-height: 70px;

        font-size: 10px;
    }

    .navigation-catalogues {
        top: 270px;

        height: 48px;
    }

    .navigation-catalogues a {
        font-size: 11px;

        padding: 0 5px;
    }

    .navigation-catalogues .export-csv-button {
        font-size: 10px;

        padding: 0 7px;
    }

    .filters {
        top: 318px;

        height: 78px;
    }

    main {
        padding-top: 414px;
    }

    .stat span {
        font-size: 15px;
    }

    .stat small {
        font-size: 7px;
    }
}

/* ==================================================
PAGE CONTACT
================================================== */

.contact-page {
width: calc(100% - 40px);
max-width: 900px;

margin: 0 auto;

padding-top: 312px;
padding-bottom: 40px;

}

.contact-container {
width: 100%;

padding: 30px;

background: white;

border: 1px solid #d9dde1;

border-radius: 7px;

box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.04);

}

.contact-container h2 {
margin: 0 0 15px;

color: #213865;

font-size: 26px;

}

.contact-intro {
margin: 0 0 10px;

color: #626a72;

font-size: 14px;

line-height: 1.5;

}

/* ==================================================
FORMULAIRE
================================================== */

.contact-form {
display: flex;

flex-direction: column;

gap: 18px;

margin-top: 25px;

}

.contact-field {
display: flex;

flex-direction: column;

gap: 6px;

}

.contact-field label {
font-size: 13px;

font-weight: bold;

color: #626a72;

}

.contact-field input,
.contact-field textarea {
width: 100%;

padding: 10px 12px;

font-family: Arial, Helvetica, sans-serif;

font-size: 14px;

color: #20252b;

background: white;

border: 1px solid #cbd0d5;

border-radius: 5px;

transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;

}

.contact-field input {
height: 40px;
}

.contact-field textarea {
min-height: 160px;

resize: vertical;

line-height: 1.4;

}

.contact-field input:focus,
.contact-field textarea:focus {
outline: none;

border-color: #6b9ed0;

box-shadow:
    0 0 0 2px #dceaf8;

}

/* ==================================================
BOUTON ENVOYER
================================================== */

.contact-submit {
width: auto;

align-self: flex-start;

min-width: 180px;

height: 42px;

padding: 0 20px;

background: #213865;

color: white;

border: 1px solid #213865;

border-radius: 6px;

font-family: Arial, Helvetica, sans-serif;

font-size: 14px;

font-weight: bold;

cursor: pointer;

transition:
    background 0.15s ease,
    transform 0.15s ease;

}

.contact-submit:hover {
background: #162846;

transform: translateY(-1px);

}

/* ==================================================
MOBILE
================================================== */

@media (max-width: 600px) {

.contact-page {
    width: calc(100% - 20px);

    padding-top: 398px;
}

.contact-container {
    padding: 20px 15px;
}

.contact-container h2 {
    font-size: 22px;
}

.contact-intro {
    font-size: 13px;
}

.contact-form {
    gap: 15px;
}

.contact-submit {
    width: 100%;
}


}

/* ==================================================
TRÈS PETITS TÉLÉPHONES
================================================== */

@media (max-width: 400px) {

.contact-page {
    padding-top: 414px;
}

}

/* ==================================================
   MESSAGES FORMULAIRE CONTACT
================================================== */

.contact-message {
    margin: 20px 0;

    padding: 14px 16px;

    border-radius: 6px;

    font-size: 14px;

    font-weight: bold;

    line-height: 1.4;
}


.contact-success {
    color: #1f6b3a;

    background: #e7f6ec;

    border: 1px solid #9bcfaf;
}


.contact-error {
    color: #9a2f2f;

    background: #fdeaea;

    border: 1px solid #e7a5a5;
}


/* ==================================================
   BOUTON PENDANT L'ENVOI
================================================== */

.contact-submit:disabled {
    cursor: wait;

    opacity: 0.7;
}

.visitor-counter {
    width: 220px;
    height: 100px;
    margin: 15px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.visitor-counter iframe {
    display: block;

    width: 220px;
    height: 100px;

    border: 0;
}

