:root {
    --bs-secondary-color: rgba(222, 226, 230, 0.75);
    --bs-secondary-color-rgb: 222, 226, 230;
    --bs-link-color-rgb: 110, 168, 254;      /* bleu Bootstrap dark */
    --bs-link-hover-color-rgb: 158, 197, 254; /* plus clair */
    --bs-primary-rgb : 110, 168, 254;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.7);
    --main-bg-color: #212529;
    --bs-card-bg: #212529;
}

html, body, main, footer {
    background-color: var(--main-bg-color);
    color: #dee2e6;/* couleur texte par défaut */
}

.cardCollection.card {
    color: #dee2e6;
}

.card {
    background-color: var(--main-bg-color) !important;
    color: #dee2e6;/* couleur texte par défaut */
    border-color: rgba(255, 255, 255, 0.3); /* optionnel : bordure plus douce */
}

.card-header {
    background-color: #212529;
    border-bottom: none;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: white;
    border: solid rgba(0, 0, 0, 0.15);
    border-width: 1px 0;
    box-shadow:
        inset 0 0.5em 1.5em #0000001a,
        inset 0 0.125em 0.5em #00000026;
}

.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: #5a23c8;
    --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .bi {
    width: 1em;
    height: 1em;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}


.album {}

.header-bg {
    position: relative;
    height: 400px;
    background-image:
        linear-gradient(to bottom,
        rgba(21, 35, 46, 0) 65%,
        #15232e 100%),
        url('assets/img/header2.jpg');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

/* Overlay sombre pour effet filigrane */
.header-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* ajuste l'opacité */
    z-index: 0;
}

/* Le contenu passe au-dessus */
.header-bg>* {
    position: relative;
    z-index: 1;
}


/* Logo et texte */
.logo-img {
    width: 85px;
    height: 85px;
}

.logo-text {
    font-size: 2em;
    /* desktop */
    color: #fff;
    /* texte blanc */
}

.pitch {
    font-size: 1.2em;
}

/* Mobile */
@media (max-width: 767px) {
    .logo-img {
        width: 50px;
        /* réduire le logo */
        height: 50px;
    }

    .logo-text {
        font-size: 1.2em;
        /* réduire le texte */
        color: #fff;
        /* texte blanc */
    }

    .header-bg {
        height: 390px;
    }

    .pitch {
        font-size: 1em;
    }
}

.btn-gold {
    --bs-btn-color: #d4af37;
    --bs-btn-border-color: #d4af37;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #d4af37;
    --bs-btn-hover-border-color: #d4af37;
    --bs-btn-focus-shadow-rgb: 212, 175, 55;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #c9a227;
    --bs-btn-active-border-color: #c9a227;

    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    line-height: 1.1;
    letter-spacing: 0.06em;
}

/* Cartouche de recherche */
.search-cartouche,
.search-cartouche .card-body {
    background-color: #212529 !important;
    color: #fff !important;
    max-width: 800px;
    /* ajuste : 700–900px selon ton design */
    margin: 0 auto;
    /* centre horizontalement */
    /* Bordure blanche */
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    /* Relief / ombre */
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Le body doit rester full width */
.search-cartouche .card-body {
    background-color: #212529 !important;
    color: #fff !important;
    width: 100%;
    border-radius: 12px;
}

/* Labels */
.search-cartouche label {
    color: #fff !important;
}

/* Inputs & selects */
.search-cartouche .form-control,
.search-cartouche .form-select {
    width: 100%;
    background-color: #212529 !important;
    color: #fff !important;
    border: 1px solid #6c757d;
}

/* Placeholder */
.search-cartouche .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Options du select */
.search-cartouche option {
    background-color: #212529;
    color: #fff;
}

/* Focus (évite le bleu Bootstrap) */
.search-cartouche .form-control:focus,
.search-cartouche .form-select:focus {
    background-color: #212529 !important;
    color: #fff !important;
    border-color: #adb5bd;
    box-shadow: none;
}


/* Bouton Apply blanc */
.btn-apply-white {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-apply-white:hover {
    background-color: #000;
    color: #fff;
}

.link-blue-dark {
    color: #0b3c5d;
    /* bleu foncé élégant */
}

.link-blue-dark:hover {
    color: #082f49;
    /* encore plus foncé au survol */
}

.banner {
    position: relative;
    width: 100%;
    height: clamp(180px, 35vh, 400px);
    min-height: 200px;
    /* limite pour mobile */
    overflow: visible;
    margin-bottom: 85px;
    /* border-bottom: 2px solid white;   */
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* remplit sans déformer */
}

.medaillon {
    width: 160px;
    height: 160px;
    position: absolute;
    bottom: -80px;
    /* fait dépasser vers le bas */
    left: 50%;
    border-radius: 50%;
    /* forme ronde */
    transform: translateX(-50%);
    overflow: hidden;
}

.medaillon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.social-icons a {
    color: white !important;
}

.social-icons a:hover {
    color: white !important;
    opacity: 0.7;
}

.clickable-img {
    cursor: zoom-in;
}

.custom-close {
  position: fixed;        /* indépendant de l'image */
  top: 16px;
  right: 16px;
  z-index: 2000;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: white;

  font-size: 24px;        /* taille contrôlée */
  line-height: 40px;
  text-align: center;

  cursor: pointer;
}

/* smartphone */
@media (max-width: 576px) {
  .custom-close {
    width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 34px;
    top: 10px;
    right: 10px;
  }
}

.custom-close:hover {
  background: rgba(0,0,0,0.85);
}

.modal-backdrop.show {
    opacity: 0.9 !important;
}

#modalImage {
  max-height: 90vh;
  width: auto;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.social-icons i {
  transition: transform 0.15s ease, opacity 0.15s;
}

.social-icons i:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

section {
    background-color: var(--main-bg-color);
}

section + section {
    margin-top: 0;
    padding-top: 50px;
}

@media (max-width: 768px) {
    section + section {
        padding-top: 40px;
    }
}

.table td {
    font-variant-numeric: tabular-nums;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    overflow: hidden;
    white-space: nowrap;
}

.navbar .lang-switch a,
.navbar .lang-switch a:visited,
.navbar .lang-switch a:focus,
.navbar .lang-switch a:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 11px;
    font-size: 0.75rem;
    line-height: 1;
    font-weight: 700;
    text-decoration: none !important;
    color: #adb5bd !important;
    border: 0;
    box-shadow: none;
    transition: all 0.2s ease;
}

.navbar .lang-switch a:hover {
    color: #ffffff !important;
}

.navbar .lang-switch a.active {
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #212529 !important;
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .navbar .lang-switch a {
        padding: 4px 9px;
        font-size: 0.68rem;
    }
}

.token-photo{
    max-width:220px;
    width:100%;
    height:auto;

    display:block;
    margin:auto;

    border-radius:12px;

    border:1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 4px 12px rgba(0,0,0,0.25);

    transition:all .3s ease;
}

.token-photo:hover{
    transform:translateY(-2px);

    border-color:rgba(255,255,255,0.22);

    box-shadow:
        0 8px 20px rgba(0,0,0,0.35);
}

.sponsor-card{
    width:min(350px, 100%);
    margin:auto;

    padding:20px 25px;

    background:#222b36;

    border:1px solid rgba(255,255,255,0.12);

    border-radius:16px;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

.token-subtitle{
    font-size:1rem;
    color:#adb5bd;
    font-weight:400;
    letter-spacing:0.05em;
}