:root {
    --card-bg-footer: #f7fafd;
    --card-footer: #f7fafd;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.card {
    font-family: Inter, sans-serif;
    font-size: 16px;
    background: var(--card-bg, var(--background-light));
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px var(--shadow);
    border-radius: 3px;
    transition: .3s;
}

.card.border:hover {
    border: 1px solid var(--contrast);
}

.card__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.card__body {
    padding: var(--card-padding);
    position: relative;
}

.card__title {
    font-family: Inter, sans-serif;
    line-height: 1.3;
    font-size: 16px;
    font-weight: 700;
}

.card__description p {
    color: var(--color-light);
}

.text-small,
small {
    font-size: .9em;
}

.card__link::after {
    content: "";
    display: block;
    z-index: 2;
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: .3s;
    border-radius: 3px;
    cursor: pointer;
}

*,
::after,
::before {
    box-sizing: border-box;
}

.pill {
    flex: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: calc(1 * var(--space)) calc(2 * var(--space));
    margin: calc(1 * var(--space));
    color: var(--contrast);
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 3;
    overflow: hidden;
    border-radius: 20px;
}

.pill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    opacity: .1;
    transition: opacity .3s;
    z-index: -1;
}

.pill.small {
    font-size: 11px;
    height: 18px;
    padding: 0 5px;
    font-weight: 400;
    line-height: 18px;
    border-radius: 3px;
}

.pill.bold {
    font-weight: bold;

}

.pill-red {
    color: var(--red);
}

.pill-green {
    color: var(--green);
}

.pill-blue {
    color: var(--blue);
}

.pill-yellow {
    color: var(--yellow);
}

.pill-teal {
    color: var(--teal);
}

.pill-purple {
    color: var(--purple);
}

.pill-orange {
    color: var(--orange);
}

.pill-pink {
    color: var(--pink);
}

.pill-yellow-alpha {
    color: var(--yellow-alpha);
}

.pill-grey {
    color: var(--grey);
}

.green {
    color: var(--green);
}

.red {
    color: var(--red);
}

.grey {
    color: var(--grey)
}

.card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    min-height: 36px;
    background: var(--card-bg-footer, var(--card-footer));
    padding: 0 var(--card-padding);
    font-size: .9rem;
}

.card__footer>* {
    margin-right: calc(2* var(--space));
}

.card__footer>* {
    color: var(--color-light);
    white-space: nowrap;
}

.card__footer>:last-child {
    margin-right: 0;
    margin-left: auto;
}

.timer {
    font-size: 0.8em;
    font-weight: bold;
}

.favori {
    z-index: 3;
    display: flex;
    align-items: center;
    margin: 8px;
}

.favorite path:hover {

    fill: #FFD422;
    color: red;
    cursor: pointer;
}


.favorite-active path{

    fill: #FFD422;
    color: red;
}

.medias{
    z-index: 3;
    display: flex;
    align-items: center;
}

.medias svg{
padding-right: 8px;
}

.card__img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* ou fixe une hauteur si besoin */
    overflow: hidden;
    background-color: #000; /* ou autre couleur de fond */
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre le cadre sans se déformer */
    object-position: center; /* Centre l'image dans le cadre */
    display: block;
}

.event-date {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.95rem;
	line-height: 1.3;
}

.event-icon {
	font-size: 1.2rem;
	margin-top: 2px; /* ajuste si l'icône ne semble pas bien alignée */
}

.event-date-text {
	display: inline-block;
}

