/** Global classes **/
*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    list-style: none;
    outline: none;
}
html {
    height: 100%;
}
body {
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #212529;
}
a,
button {
    cursor: pointer;
    border: none;
    text-transform: none;
    text-decoration: none;
}
a {
    color: #212529;
}
a:hover {
    color: var(--primary);
    text-decoration: none;
}
a:focus,
button:focus {
    outline: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus,
textarea:focus {
    outline: 0 !important;
    background-color: #fff !important;
    border-color: #212529 !important;
    box-shadow: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1.875rem white inset !important;
}
/* Text colors */
.text-theme {
    color: var(--primary) !important;
}
.text-black {
    color: #212529 !important;
}
.nowrap {
    white-space: nowrap !important;
}
/* Background themes */
.background-theme {
    background-color: var(--primary) !important;
}
.background-theme:hover,
.background-theme:focus,
.background-theme:active {
    background-color: var(--complementary1) !important;
}
.display-none {
    display: none;
}
.iti {
    display: block;
}
.cursor-pointer {
    cursor: pointer !important;
}
.custom-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Début caché */
    width: 100%; /* Occupe toute la largeur */
    height: 100%; /* Occupe toute la hauteur */
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    overflow-y: hidden; /* Désactive le défilement sur l'overlay */
    transition: right 0.3s ease-in-out; /* Animation de glissement */
}
.custom-overlay.open {
    right: 0; /* Glisse dans la vue */
}
.overlay-content {
    height: calc(100% - 60px); /* Hauteur totale moins la hauteur du header */
    overflow-y: auto; /* Active le défilement uniquement pour le contenu */
    padding: 15px; /* Espacement intérieur */
}
.overlay-header {
    height: 60px; /* Hauteur fixe pour le header */
    padding: 15px; /* Espacement intérieur */
    border-bottom: 1px solid #e0e0e0; /* Bordure pour séparer le header du contenu */
    background: white; /* Fond blanc pour le header */
    position: sticky;
    top: 0;
    z-index: 1; /* Assure que le header reste au-dessus du contenu */
}
.overlay-title {
    flex: 1;
    text-align: center;
}
/* Spinner */
.container-spinner {
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1100;
    top: 0;
    left: 0;
    background-color: rgba(68, 68, 68, 0.2);
    backdrop-filter: blur(1px);
}
.container-spinner svg {
    width: 10rem;
    height: 10rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.container-spinner circle {
    fill: transparent;
    stroke: #f0151f;
    stroke-width: 5px;
    stroke-linecap: round;
}
.summary-section {
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
}
@keyframes animation {
    0% {
        stroke-dasharray: 1 98;
        stroke-dashoffset: -105;
    }
    50% {
        stroke-dasharray: 80 10;
        stroke-dashoffset: -160;
    }
    100% {
        stroke-dasharray: 1 98;
        stroke-dashoffset: -300;
    }
}
.container-spinner circle {
    transform-origin: center;
    animation-name: animation;
    animation-duration: 1.2s;
    animation-timing-function: cubic-bezier;
    animation-iteration-count: infinite;
}
.form-check-input:hover {
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--primary);
    border-color: #ccc;
}
.form-check-input:focus {
    outline: 0 !important;
    border-color: #ccc !important;
    box-shadow: none !important;
}
/* Ajuster la hauteur du conteneur Select2 */
.select2-container .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    line-height: 1.5 !important;
}
/* Ajuster la hauteur du champ de sélection */
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 1.5 !important;
}
/* Ajuster la flèche du dropdown */
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: calc(1.5em + 0.75rem + 2px) !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--tertiary);
}

.pagination .page-link {
    color: var(--primary);
}

.blinking {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Certified badge (profiles, cards) */
.certified-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: #e9f7ef;
    color: #137a4d;
    font-size: .8rem;
    font-weight: 700;
    border: 1px solid rgba(19, 122, 77, .2);
}

.certified-badge i {
    color: #16a34a;
}

.certified-badge--compact {
    padding: .1rem .45rem;
    font-size: .7rem;
}

/* Compact certified icon for inline use next to names */
.certified-icon {
    color: #2563eb;
    font-size: .95rem;
    line-height: 1;
    vertical-align: middle;
}

/* Keep organizer name and certified icon on same line on event cards */
.card.event-card .publisher-inline {
    display: inline-flex;
    flex-direction: column;
    gap: .15rem;
    white-space: normal;
}
.card.event-card .publisher-inline .publisher-row {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.card.event-card .publisher-username {
    display: inline !important; /* override block rule on .card.event-card .card-body a */
}
