:root {
    --ttm-bordeaux: #7a1f35;
    --ttm-bordeaux-dark: #591426;
    --ttm-bordeaux-light: #f7edf0;

    --ttm-background: #f5f6f8;
    --ttm-card: #ffffff;

    --ttm-text: #27272a;
    --ttm-text-secondary: #71717a;

    --ttm-border: #e4e4e7;

    --ttm-radius: 12px;
}

.logoFront {
    width: 90%;
    max-width: 400px;
    margin: auto;
    margin-top: 50px;
}
/* Events container */

section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    padding-top: 40px;
    box-sizing: border-box;
}


/* Header */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    margin-left: 50px;
    font-size: 28px;
    font-weight: 700;
    color: var(--ttm-bordeaux-dark);
}


/* Week selector */

.week-selector {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 14px;
    font-weight: 600;
    color: var(--ttm-text-secondary);
}

.week-selector select {
    min-width: 75px;

    padding: 9px 34px 9px 12px;

    border: 1px solid var(--ttm-border);
    border-radius: 8px;

    background-color: #fff;
    color: var(--ttm-text);

    font-size: 15px;

    cursor: pointer;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.week-selector select:hover {
    border-color: var(--ttm-bordeaux);
}

.week-selector select:focus {
    border-color: var(--ttm-bordeaux);
    box-shadow: 0 0 0 3px rgba(122, 31, 53, 0.12);
}


/* Events list */

.events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Event */

.event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 72px;

    padding: 14px 18px;

    box-sizing: border-box;

    background: var(--ttm-card);

    border: 1px solid var(--ttm-border);
    border-left: 4px solid var(--ttm-bordeaux);
    border-radius: var(--ttm-radius);

    color: inherit;
    text-decoration: none;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.event-card:hover {
    transform: translateY(-2px);

    border-color: #d4b4bd;
    border-left-color: var(--ttm-bordeaux);

    background-color: #fffafb;

    box-shadow: 0 6px 18px rgba(80, 20, 38, 0.09);
}


/* Main information */

.event-main {
    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;
}

.event-flag {
    width: 32px;
    height: 21px;

    object-fit: cover;

    border-radius: 3px;

    border: 1px solid rgba(0, 0, 0, 0.1);

    flex-shrink: 0;
}


/* Event title */

.event-title {
    display: flex;
    flex-direction: column;

    min-width: 0;

    gap: 3px;
}

.event-title strong {
    color: var(--ttm-text);

    font-size: 16px;
    font-weight: 650;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-title span {
    color: var(--ttm-text-secondary);

    font-size: 13px;
}


/* Right information */

.event-info {
    display: flex;
    align-items: center;

    gap: 28px;

    margin-left: 20px;
}

.event-info-item {
    display: flex;
    flex-direction: column;

    min-width: 45px;

    text-align: center;
}

.event-info-item small {
    margin-bottom: 2px;

    color: var(--ttm-text-secondary);

    font-size: 11px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.event-info-item strong {
    color: var(--ttm-bordeaux);

    font-size: 15px;
}


/* Arrow */

.event-arrow {
    color: var(--ttm-bordeaux);

    font-size: 30px;
    font-weight: 300;

    line-height: 1;

    transition: transform 0.15s ease;
}

.event-card:hover .event-arrow {
    transform: translateX(3px);
}


/* Mobile */

@media (max-width: 600px) {

    .events-section {
        padding: 16px;
        padding-top: 40px;
    }

    .events-header {
        align-items: flex-end;
    }

    .events-header h1 {
        font-size: 24px;
    }

    .week-selector {
        flex-direction: column;
        align-items: flex-start;

        gap: 4px;
    }

    .event-card {
        align-items: flex-start;

        padding: 14px;

        min-height: auto;
    }

    .event-main {
        align-items: flex-start;
    }

    .event-flag {
        width: 28px;
        height: 19px;

        margin-top: 2px;
    }

    .event-title strong {
        white-space: normal;

        font-size: 15px;
    }

    .event-info {
        gap: 10px;

        margin-left: 12px;
    }

    .event-info-item {
        display: none;
    }

    .event-arrow {
        font-size: 26px;
    }
}

.horloge {
    position: fixed;
    top: 0;
    right: 20px;

    z-index: 2000;
}


/* Clock */
.horloge-time::before {
    content: "◷";
    margin-right: 7px;

    font-size: 16px;
    vertical-align: -1px;
}

.horloge-time {
    display: block;

    padding: 9px 14px;

    background: #6D071A;
    color: white;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    border: 1px solid #520514;
    border-top: 0;

    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;

    box-shadow: 0 3px 10px rgba(109, 7, 26, 0.25);

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.horloge-time:hover {
    background-color: #850923;
    color: white;

    box-shadow: 0 4px 14px rgba(109, 7, 26, 0.35);
}


/* Dropdown */

.horloge-menu {
    position: absolute;

    display: none;

    top: 100%;
    right: 0;

    width: 240px;

    margin: 0;
    padding: 8px;

    list-style: none;

    background-color: white;

    border: 1px solid #e4e4e7;
    border-top: 3px solid #6D071A;

    border-radius: 0 0 10px 10px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}


/* Display menu on hover */

.horloge:hover .horloge-menu {
    display: block;
}


/* Links */

.horloge-link {
    margin: 0;
}

.horloge-link a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 9px 10px;

    border-radius: 6px;

    color: #27272a;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.horloge-link a:hover {
    background-color: #f7edf0;
    color: #6D071A;
}


/* Week / day */

.horloge-link a span {
    color: #71717a;
    font-size: 12px;
}


/* Separators */

.horloge-separator {
    height: 1px;

    margin: 6px 8px;

    background-color: #e4e4e7;
}


/* Today's events */

.horloge-events {
    padding: 7px 10px 9px;
}

.horloge-label {
    display: block;

    margin-bottom: 8px;

    color: #71717a;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.horloge-flags {
    display: flex;
    gap: 8px;
}

.horloge-flags a {
    display: flex;

    padding: 4px;

    border-radius: 5px;

    transition: background-color 0.15s ease;
}

.horloge-flags a:hover {
    background-color: #f7edf0;
}

.horloge-flags img {
    height: 20px;
    width: auto;

    border-radius: 2px;

    border: 1px solid rgba(0, 0, 0, 0.08);
}


/* Mobile */

@media (max-width: 600px) {

    .horloge {
        right: 8px;
    }

    .horloge-menu {
        width: 220px;
    }
}