@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animations pour les notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background: white;
    color: #333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
}

.header-logo {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.btn-primary {
    background: #835ec2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #6d4ba8;
}

.btn-secondary {
    background: #4e8397;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    margin: 0 5px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #3e6a7a;
}

main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Bootstrap grid override pour assurer le bon fonctionnement */
.container-fluid {
    max-width: 1400px;
}

/* Styles pour les cards de courses */
.race-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.race-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.race-cover-container {
    position: relative;
    overflow: hidden;
}

.race-cover-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.race-card:hover .race-cover-image {
    transform: scale(1.05);
}

.race-status-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.race-type-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.race-card .card-body {
    padding: 1.5rem;
}

.race-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.4;
}

.race-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

.race-card .card-text i {
    margin-right: 0.5rem;
    color: #835ec2;
}

.race-actions {
    margin-top: auto;
    padding-top: 1rem;
}

/* Sections de courses */
.race-section {
    margin-bottom: 2rem;
}

.race-section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.race-section-title.live-title {
    color: #dc3545;
    border-bottom-color: #dc3545;
}

.race-section-title.live-title i {
    color: #dc3545;
    animation: pulse-live 2s infinite;
}

.race-section-title.upcoming-title {
    color: #835ec2;
    border-bottom-color: #835ec2;
}

.race-section-title.upcoming-title i {
    color: #835ec2;
}

.race-section-title.completed-title {
    color: #4e8397;
    border-bottom-color: #4e8397;
}

.race-section-title.completed-title i {
    color: #4e8397;
}

/* Card live spéciale */
.race-card-live {
    border: 2px solid #dc3545;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.2);
    position: relative;
}

.race-card-live .race-cover-container {
    position: relative;
}

.live-pulse {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

.live-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-pulse::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #dc3545;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-live {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
    100% { 
        opacity: 1; 
        transform: scale(1);
    }
}

@keyframes pulse-ring {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    100% { 
        transform: scale(2);
        opacity: 0;
    }
}

/* Layout spécial pour les courses live */
.live-cover-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.live-card-body {
    padding: 2rem;
}

.live-card-body .card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.live-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #dc3545;
    font-weight: 600;
}

.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
}

.live-indicator {
    display: flex;
    align-items: center;
}

.live-badge {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse-live 2s infinite;
}

.live-badge i {
    font-size: 0.7rem;
    animation: pulse-live 1s infinite;
}

.live-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.live-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.live-stats .stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.live-stats .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.live-stats .stat-value.live-status {
    color: #dc3545;
}

.race-card-live .race-actions .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

.race-card-live .race-actions .btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

/* Responsive pour les sections */
@media (max-width: 768px) {
    .race-section-title {
        font-size: 1.2rem;
    }
    
    .race-card-live .race-cover-image {
        height: 150px;
    }
    
    .live-cover-image {
        height: 200px;
    }
    
    .live-card-body {
        padding: 1.5rem;
    }
    
    .live-card-body .card-title {
        font-size: 1.4rem;
    }
    
    .live-stats {
        margin-top: 1rem;
    }
    
    .live-stats .stat-item {
        padding: 0.5rem 0.75rem;
    }
}

/* Styles pour les cards de messages */
.message-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.message-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.message-image-container {
    position: relative;
    padding-bottom: 0;
}

.message-cover-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.message-card:hover .message-cover-image {
    transform: scale(1.05);
}

.message-km-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.message-card .card-body {
    padding: 1rem;
}

.message-card .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-card .message-time {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.message-card .message-time i {
    margin-right: 0.5rem;
    color: #835ec2;
}

.message-card .message-content {
    border: none;
    padding: 0;
}

.message-card .message-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 0;
}

.message-card .message-race {
    border-top: 1px solid #e0e0e0;
    padding-top: 0.5rem;
    margin-top: 1rem;
}

.message-card .message-race i {
    margin-right: 0.5rem;
    color: #4e8397;
}

.message-card .race-link {
    color: #4e8397;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.message-card .race-link:hover {
    color: #835ec2;
    text-decoration: underline;
}

/* Messages sans image */
.message-card:not(:has(.message-image-container)) .card-body {
    padding: 1.5rem 1rem;
}

.message-card:not(:has(.message-image-container)) .message-text {
    font-size: 0.9rem;
    min-height: 3rem;
}

/* Responsive pour les messages */
@media (max-width: 768px) {
    .message-cover-image {
        height: 150px;
    }
    
    .message-card .card-body {
        padding: 0.75rem;
    }
    
    .message-card:not(:has(.message-image-container)) .card-body {
        padding: 1rem 0.75rem;
    }
}

/* Section plus longue course */
.longest-race-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.longest-race-section h6 {
    color: #4e8397;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.longest-race-section .stat-item {
    margin-bottom: 0.75rem;
}

/* Force Bootstrap grid to work properly */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.col-lg-4, .col-md-4, .col-sm-6, .col-12 {
    flex-basis: auto !important;
}

/* Desktop large screens */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

/* Small screens */
@media (min-width: 576px) and (max-width: 767.98px) {
    .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.race-card {
    background: white;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
    border: 1px solid #e9ecef;
    height: fit-content;
    position: relative;
    display: flex;
    flex-direction: column;
}

.race-cover-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.race-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.race-date-badge,
.race-location-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.race-date-icon,
.race-location-icon {
    width: 20px;
    height: 20px;
    fill: #6c757d;
}

.race-date-label,
.race-location-label {
    color: #495057;
    font-weight: 600;
    margin-right: 0.5rem;
}

.race-date-value,
.race-location-value {
    color: #212529;
    font-weight: 500;
}

.race-header {
    padding: 1rem 1.5rem;
    text-align: center;
}

.race-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6c757d;
    margin: 0.5rem 0 0 0;
    letter-spacing: -0.01em;
    font-style: italic;
}

.race-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    flex: 1;
    margin-top: 0;
}

.race-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.race-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.race-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.race-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.race-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.race-interactions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.like-btn {
    background: white;
    border: 2px solid #e9ecef;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 24px;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #495057;
}

.like-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.like-btn.liked {
    color: #e74c3c;
    border-color: #e74c3c;
    background: #fff5f5;
}

.race-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.race-stat-item i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* Styles pour les boutons d'agenda */
.calendar-add-btn {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

.calendar-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
}

.calendar-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.google-btn:hover {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
}

.outlook-btn:hover,
.office365-btn:hover {
    background: #0078d4;
    border-color: #0078d4;
    color: white;
}

.ics-btn:hover {
    background: #007aff;
    border-color: #007aff;
    color: white;
}
}

.likes-list {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.likes-list small {
    color: #6c757d;
    font-size: 0.8rem;
    font-style: italic;
}

.comments-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.comment {
    background: #f9f9f9;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    border-left: 3px solid #4CAF50;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.comment-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-content.large {
    max-width: 90%;
    max-height: 90vh;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1rem;
}

.hidden {
    display: none;
}

.iframe-container {
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.iframe-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.link-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.link-title,
.link-url {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.remove-link {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.remove-link:hover {
    background: #c0392b;
}

#add-link-btn {
    margin-top: 0.5rem;
}

.race-links {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.race-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.race-links a:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .race-stats {
        justify-content: center;
    }
    
    .race-actions {
        flex-direction: column;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .link-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .link-title,
    .link-url {
        margin-bottom: 0.3rem;
    }
    
    /* Améliorer la visibilité des icônes sur mobile */
    .edit-btn {
        width: 44px;
        height: 44px;
        top: 0.8rem;
        right: 0.8rem;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        border: 2px solid #dee2e6;
    }
    
    .messages-btn {
        width: 44px;
        height: 44px;
        top: 0.8rem;
        right: 4rem;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        border: 2px solid #dee2e6;
    }
    
    .view-race-btn {
        width: 44px;
        height: 44px;
        top: 0.8rem;
        right: 7.5rem;
        box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        border: 2px solid #dee2e6;
    }
    
    .edit-btn svg,
    .messages-btn svg,
    .view-race-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Styles pour les coureurs */
.runner-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.runner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.runner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #835ec2;
}

.runner-avatar-large {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.runner-stats {
    margin: 0.5rem 0;
}

.runner-card .social-links a {
    color: #4e8397;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.runner-card .social-links a:hover {
    color: #835ec2;
}

.runner-spacer {
    height: 20px;
    width: 80px;
    opacity: 0.6;
}

.runner-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.runner-actions-container.center-social {
    justify-content: center;
}

.runner-actions-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.runner-actions-right {
    display: flex;
    align-items: center;
}

.runner-actions-right .social-links {
    display: flex;
    gap: 0.75rem;
}

.runner-actions-right .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(78, 131, 151, 0.1);
    transition: all 0.2s;
}

.runner-actions-right .social-links a:hover {
    background-color: rgba(131, 94, 194, 0.1);
    transform: translateY(-2px);
}

/* Responsive pour mobile */
@media (max-width: 576px) {
    .runner-actions-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .runner-actions-left {
        align-items: center;
        width: 100%;
    }
    
    .runner-actions-right {
        justify-content: center;
    }
}

.runner-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    color: #666;
    font-size: 1.2em;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #4CAF50;
}

.search-box {
    max-width: 300px;
    width: 100%;
}

.search-box input {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Styles pour le profil coureur */
.runner-photo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 300;
    color: #666;
}

.stat-value {
    font-weight: 500;
    color: #3b859d;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: #f8f9fa;
}

.race-item {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: box-shadow 0.3s;
}

.race-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-item {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.message-image {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
    object-fit: cover;
}

footer {
    background: #f4f4f4;
    color: #333;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #835ec2 0%, #4e8397 100%);
}

footer a {
    color: #835ec2;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.race-countdown {
    margin: 0.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border-radius: 8px;
    border: 1px solid #c3e6c3;
    text-align: center;
}

.countdown-label {
    font-size: 0.85rem;
    color: #2d5a2d;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.countdown-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2e7d2e;
    letter-spacing: -0.02em;
}

.race-timer {
    margin: 0.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #ffe8e8 0%, #fff0f0 100%);
    border-radius: 8px;
    border: 1px solid #f5c6c6;
    text-align: center;
}

.timer-label {
    font-size: 0.85rem;
    color: #8b2635;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.timer-time {
    font-size: 1.4rem;
    font-weight: 700;
    color: #c82333;
    letter-spacing: -0.02em;
    font-family: 'Courier New', monospace;
    min-width: 5.5rem;
    display: inline-block;
}

.race-live {
}

.race-completed {
    opacity: 0.7;
    background: #f8f9fa;
}

.live-timer .timer-label {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.edit-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
}

.edit-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: scale(1.1);
}

.edit-btn svg {
    width: 18px;
    height: 18px;
    fill: #6c757d;
    pointer-events: none;
}

.edit-btn:hover svg {
    fill: #495057;
}

.delete-btn {
    position: absolute;
    top: 1rem;
    right: 4.5rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
}

.delete-btn:hover {
    background: #f8d7da;
    border-color: #dc3545;
    transform: scale(1.1);
}

.delete-btn svg {
    width: 18px;
    height: 18px;
    fill: #6c757d;
    pointer-events: none;
}

.delete-btn:hover svg {
    fill: #dc3545;
}

.messages-btn {
    position: absolute;
    top: 1rem;
    right: 8rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
}

.messages-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: scale(1.1);
}

.messages-btn svg {
    width: 18px;
    height: 18px;
    fill: #17a2b8;
    pointer-events: none;
}

.messages-btn:hover svg {
    fill: #138496;
}

.view-race-btn {
    position: absolute;
    top: 1rem;
    right: 11.5rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
}

.view-race-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: scale(1.1);
}

.view-race-btn svg {
    width: 18px;
    height: 18px;
    fill: #28a745;
    pointer-events: none;
}

.view-race-btn:hover svg {
    fill: #1e7e34;
}

.messages-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.race-completion-time {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%);
    border-radius: 8px;
    border: 1px solid #c3e6c3;
    text-align: center;
}

.completion-time-label {
    font-size: 0.85rem;
    color: #2d5a2d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.completion-time-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2e7d2e;
    letter-spacing: -0.02em;
}

/* Styles pour la gestion des messages */
.messages-list {
    margin-bottom: 2rem;
}

.messages-list h3 {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.add-message-section h3 {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.message-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.race-messages-admin {
    text-align: center;
}

.manage-messages-btn {
    background: #17a2b8 !important;
    border-color: #17a2b8 !important;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.manage-messages-btn:hover {
    background: #138496 !important;
    border-color: #117a8b !important;
    transform: translateY(-1px);
}

.message-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.message-kilometer, .message-text {
    padding: 0.5rem 0;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.message-kilometer {
    width: 100px;
    text-align: center;
}

.message-text {
    flex: 1;
    min-width: 150px;
}

.message-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.message-time-display {
    font-weight: 600;
    color: #495057;
    min-width: 50px;
}

.message-km-display {
    font-weight: 600;
    color: #007bff;
    min-width: 50px;
    font-size: 0.85rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}


.message-text-display {
    flex: 1;
    color: #212529;
}

.remove-message {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-message:hover {
    background: #c82333;
}

/* Styles pour le marqueur de position GPS en temps réel */
.current-position-marker {
    position: relative;
}

.current-position-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.position-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #007bff;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

.position-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.current-position-popup {
    text-align: center;
    min-width: 150px;
}

.current-position-popup strong {
    color: #007bff;
    display: block;
    margin-bottom: 4px;
}

.current-position-popup small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Styles pour le compteur de rafraîchissement dans le header */
.refresh-countdown-header {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.refresh-countdown-header .countdown-text {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.85rem;
}

.refresh-countdown-header .countdown-timer {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    min-width: 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.refresh-countdown-header .countdown-timer.countdown-urgent {
    background: #dc3545;
    animation: pulse-urgent 1s ease-in-out infinite alternate;
}

/* Styles pour la grille d'infos live en 4 colonnes */
.live-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: rgb(248, 249, 250);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.live-timer-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-timer-col .race-timer {
    margin: 0;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ffe8e8 0%, #fff0f0 100%);
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

.live-timer-col .race-timer .timer-time {
    font-size: 1rem;
    font-weight: 600;
    color: #dc3545;
    font-family: 'Roboto', sans-serif;
}

.live-stat-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.live-whatsapp-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn-live {
    background: #25D366;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    border: none;
}

.whatsapp-btn-live:hover {
    background: #20B954;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-live svg {
    flex-shrink: 0;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .live-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .live-timer-col {
        grid-column: 1 / -1;
    }
    
    .live-whatsapp-col {
        grid-column: 1 / -1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Styles pour les images des messages */
.message-image {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.message-image-thumb {
    max-width: 150px;
    max-height: 100px;
    border-radius: 6px;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease;
}

.message-image-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Styles pour les images dans les tooltips du profil altimétrique */
.tooltip-image {
    margin-top: 0.5rem;
    text-align: center;
}

.tooltip-image-thumb {
    max-width: 120px;
    max-height: 80px;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease;
}

.tooltip-image-thumb:hover {
    transform: scale(1.1);
}

/* Modal pour afficher les images en grand */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.image-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: background 0.2s ease;
}

.image-modal-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

/* Styles pour les cartes de messages live */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.message-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.message-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.message-card-time {
    color: #6c757d;
    font-family: 'Courier New', monospace;
}

.message-card-km {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.message-card-image {
    margin-bottom: 0.75rem;
    text-align: center;
}

.message-card-img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.message-card-img:hover {
    transform: scale(1.02);
}

.message-card-text {
    color: #333;
    line-height: 1.4;
    font-size: 0.9rem;
}

.live-messages-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .messages-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.75rem;
    }
    
    .message-card {
        padding: 0.75rem;
    }
    
    .message-card-img {
        max-height: 120px;
    }
    
    .message-image-thumb {
        max-width: 120px;
        max-height: 80px;
    }
    
    .tooltip-image-thumb {
        max-width: 100px;
        max-height: 60px;
    }
    
    .image-modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* Sur grand écran, 4 cartes par ligne maximum */
@media (min-width: 1200px) {
    .messages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@keyframes pulse-urgent {
    from {
        background: #e74c3c;
        transform: scale(1);
    }
    to {
        background: #c0392b;
        transform: scale(1.05);
    }
}

/* Styles pour les marqueurs de messages au-dessus du profil */
.message-marker-overlay {
    pointer-events: all;
}

.marker-point {
    width: 30px;
    height: 30px;
    background: #007bff;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.marker-point:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.6);
}

.marker-emoji {
    font-size: 14px;
    filter: brightness(0) invert(1); /* Rendre l'emoji blanc */
}

.marker-tooltip {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 1px solid #dee2e6;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1001;
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: white;
}

.message-marker-overlay:hover .marker-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-time {
    color: #e67e22;
    font-weight: 600;
    margin-right: 8px;
}

.tooltip-km {
    color: #3498db;
    font-weight: 600;
    margin-right: 8px;
}

.tooltip-message {
    color: #2c3e50;
    margin-top: 4px;
    font-weight: 500;
}

/* Styles pour l'affichage des messages sur les cartes */
.race-messages {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #fff3cd 0%, #fef9e7 100%);
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.messages-title {
    font-size: 1rem;
    font-weight: 600;
    color: #856404;
    margin: 0 0 1rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.race-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 0.9rem;
}

.race-message:last-child {
    margin-bottom: 0;
}

.race-message .message-time {
    font-weight: 700;
    color: #d39e00;
    min-width: 45px;
    font-size: 0.85rem;
}

.race-message .message-km {
    font-weight: 600;
    color: #007bff;
    min-width: 50px;
    font-size: 0.8rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.race-message .message-emoji {
    font-size: 1.1rem;
    min-width: 25px;
    text-align: center;
}

.race-message .message-text {
    flex: 1;
    color: #856404;
    font-weight: 500;
}

@media (max-width: 768px) {
    .message-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .message-emoji, .message-text {
        width: 100%;
        margin-bottom: 0.3rem;
    }
    
    .message-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .race-message {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Styles pour l'affichage GPX intégré dans les courses live */
.live-gpx-section {
    margin: 1.5rem 0;
    padding: 0 1.5rem;
}

.live-map-container,
.live-elevation-container {
    margin-bottom: 1rem;
}

.live-map-container h4,
.live-elevation-container h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

.live-elevation-container h4 {
    padding-bottom: 40px;
}

.live-map {
    height: 450px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.live-chart-wrapper {
    position: relative;
    height: 200px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}

.live-elevation-chart {
    width: 100% !important;
    height: 100% !important;
}

/* Styles pour les messages dans les courses live - Version moderne sans fond coloré */
.live-race-messages {
    margin-top: 1.5rem;
    padding: 0;
}
}

/* Responsive pour les cartes live */
@media (max-width: 768px) {
    .live-map {
        height: 375px;
    }
    
    .live-chart-wrapper {
        height: 150px;
    }
}

/* Styles pour les pins de messages sur la carte */
.message-pin {
    background: transparent !important;
    border: none !important;
}

.pin-content {
    background: #007bff;
    color: white;
    border-radius: 15px;
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    border: 2px solid white;
    position: relative;
}

.pin-content:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    margin-left: -5px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #007bff;
}

.pin-emoji {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.pin-km {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Styles pour les popups de messages */
.message-popup {
    min-width: 150px;
    text-align: center;
}

.popup-time {
    font-weight: 600;
    color: #d39e00;
    margin-bottom: 0.2rem;
}

.popup-km {
    font-weight: 600;
    color: #007bff;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.popup-message {
    color: #495057;
    font-size: 0.9rem;
}

/* Styles pour le tooltip personnalisé des marqueurs */
.message-tooltip {
    background: white;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    max-width: 250px;
    font-size: 0.9rem;
    pointer-events: none;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.tooltip-emoji {
    font-size: 1.2rem;
}

.tooltip-time {
    font-weight: 600;
    color: #d39e00;
    font-size: 0.85rem;
}

.tooltip-km {
    font-weight: 600;
    color: #007bff;
    font-size: 0.85rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.tooltip-message {
    color: #495057;
    font-weight: 500;
    line-height: 1.4;
}

/* Styles pour les fonctionnalités GPX */
.gpx-section {
    text-align: center;
}

.gpx-btn {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.gpx-btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
}

.gpx-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.elevation-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: 380px;
    position: relative;
}

.chart-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
}

#elevation-chart {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 300px !important;
}

.map-container h3,
.elevation-container h3 {
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    color: #495057;
    font-size: 1.1rem;
    text-align: center;
}

#gpx-map {
    border: 2px solid #dee2e6;
    border-radius: 8px;
}

/* Styles pour les boutons d'agenda */
.calendar-section {
    text-align: center;
}

.calendar-add-btn {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.calendar-add-btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
}

.calendar-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    cursor: pointer;
    font-size: 0.9rem;
    background: #f8f9fa;
    color: #495057;
}

.google-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.google-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-color: #adb5bd;
}

.outlook-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.outlook-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-color: #adb5bd;
}

.office365-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.office365-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    border-color: #adb5bd;
}

.ics-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.ics-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

/* Styles pour les boutons WhatsApp */
.whatsapp-section {
    text-align: center;
}

.whatsapp-btn {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
}

.whatsapp-btn:hover {
    background: #128C7E !important;
    border-color: #128C7E !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.whatsapp-btn svg {
    fill: white;
}

@media (max-width: 768px) {
    .gpx-content {
        gap: 1rem;
    }
    
    #gpx-map {
        height: 300px !important;
    }
    
    .calendar-options {
        gap: 0.75rem;
    }
    
    .calendar-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .whatsapp-btn {
        padding: 0.875rem 1rem !important;
        font-size: 0.9rem !important;
    }
}

/* Styles pour le profil utilisateur */
.profile-photo-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-photo-container:hover .photo-overlay {
    opacity: 1;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 300;
}

.stat-value {
    font-weight: 500;
    color: #3b859d;
}

.race-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
}

.subscription-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.notification-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left-color: #4e8397;
}

/* Styles pour les modals d'authentification */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.auth-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.auth-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.auth-close:hover {
    color: #333;
}

.auth-form {
    margin-top: 20px;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.auth-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-form button:hover {
    background: #45a049;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
}

.auth-switch a {
    color: #4CAF50;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Styles pour les commentaires et likes */
.comment-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    color: #666;
    font-size: 0.9em;
}

.comment-actions {
    margin-top: 10px;
}

.like-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.like-button.liked {
    color: #e91e63;
}

.like-button:hover {
    color: #e91e63;
}

/* Styles pour les notifications */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e91e63;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}

.notifications-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.notifications-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.notifications-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left: 4px solid #4e8397;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.notification-message {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.notification-time {
    color: #999;
    font-size: 0.8em;
}

/* Styles pour la recherche de coureurs */
.search-form {
    padding: 20px;
}

.search-results {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.runner-result {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.runner-result:hover {
    background: #f8f9fa;
}

.runner-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.runner-info {
    flex: 1;
}

.runner-name {
    font-weight: 600;
    color: #333;
}

.runner-email {
    color: #666;
    font-size: 0.9em;
}

.subscribe-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
}

.subscribe-btn:hover {
    background: #45a049;
}

.subscribe-btn.subscribed {
    background: #dc3545;
}

.subscribe-btn.subscribed:hover {
    background: #c82333;
}

/* Styles pour les commentaires */
.comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-form textarea {
    resize: vertical;
    min-height: 80px;
}

.comments-list {
    /* Suppression de la hauteur fixe pour permettre l'expansion automatique */
    /* max-height: 300px; */
    /* overflow-y: auto; */
}

.comment-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #4CAF50;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-date {
    color: #666;
    font-size: 0.9em;
}

.comment-text {
    color: #555;
    line-height: 1.4;
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.comment-likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-like-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: transparent;
    color: #6c757d;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.comment-like-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.comment-like-btn.btn-primary {
    background: #835ec2;
    border-color: #835ec2;
    color: white;
}

.comment-like-btn.btn-primary:hover {
    background: #6d4ba8;
    border-color: #6d4ba8;
}

.comment-like-display {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.85rem;
}

.comment-like-display .like-count {
    font-weight: 500;
}

.liked-by-names {
    margin-left: 10px;
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.like-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    transition: color 0.2s;
}

.like-button:hover {
    color: #e91e63;
}

.like-button.liked {
    color: #e91e63;
}

.like-count {
    font-weight: 600;
}

/* Styles pour les boutons de like dans les cartes de courses */
.race-like-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

.race-like-btn:hover {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.race-like-btn.liked {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

/* Styles pour les boutons d'abonnement dans les cartes de courses */
.subscribe-race-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.subscribe-race-btn:hover {
    background: #45a049;
}

.subscribe-race-btn.subscribed {
    background: #dc3545;
}

.subscribe-race-btn.subscribed:hover {
    background: #c82333;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .notifications-panel {
        width: 90%;
        right: 5%;
        max-height: 400px;
    }
    
    .notifications-content {
        max-height: 300px;
    }
    
    .search-form {
        padding: 15px;
    }
    
    .runner-result {
        flex-direction: column;
        text-align: center;
    }
    
    .runner-photo {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Styles pour les abonnés */
.follower-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.follower-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.follower-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Styles pour les messages récents en grille 4 colonnes */
.messages-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
}

.race-message-item {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.race-message-item:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.message-time {
    font-weight: bold;
}

.message-km {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.message-content {
    margin-bottom: 0.5rem;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.message-text {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Conteneur pour l'image carrée */
.message-image-container {
    position: relative;
    width: 100% !important;
    padding-bottom: 0 !important; /* Suppression du padding-bottom */
    margin-top: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
}

.race-message-item .message-content .message-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: block !important;
}

.message-image:hover {
    opacity: 0.8;
}

.message-race {
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
}

/* Modal pour les images */
.image-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
}

.image-modal-close:hover {
    color: #ccc;
}

/* Responsive design pour les messages */
@media (max-width: 1200px) {
    .messages-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .messages-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .messages-content {
        grid-template-columns: 1fr;
    }
}

/* Styles pour les boutons de courses */
.race-item .d-flex.flex-column .btn {
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.race-item .d-flex.flex-column .btn:last-child {
    margin-bottom: 0;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Badges de type de course */
.course-type-badge {
    display: inline-block;
    padding: 3px 10px;
    margin-left: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.course-type-course {
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.course-type-off {
    background-color: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffcc02;
}

.course-type-entrainement {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Types de course (trail, route, rando) */
.race-type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.race-type-trail {
    background-color: #28a745;
    color: white;
}

.race-type-route {
    background-color: #17a2b8;
    color: white;
}

.race-type-rando {
    background-color: #ffc107;
    color: #212529;
}

/* Styles pour les courses en live */
.live-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.live-race-card {
    border-left: 4px solid #dc3545;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-race-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.live-badge {
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

.live-stat {
    padding: 0.5rem 0;
}

.live-stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #dc3545;
}

.live-stat-value .unit {
    font-size: 0.9rem;
    font-weight: normal;
    color: #6c757d;
    margin-left: 2px;
}

.live-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-race-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Styles pour la section courses en live */
.live-badge {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.live-badge i {
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.live-indicator {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-indicator i {
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

.live-stat {
    padding: 0.5rem;
}

#live-races-section h2 {
    color: #dc3545;
    font-weight: 700;
}

.runner-info {
    border-left: 3px solid #007bff;
    padding-left: 0.75rem;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 0 4px 4px 0;
}

.runner-info small {
    font-weight: 600;
}

.runner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #007bff;
}

.runner-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Boutons de like */
.like-button {
    border: none;
    background: none;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.like-button:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.05);
}

.like-button.liked {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.like-button.liked:hover {
    background-color: rgba(220, 53, 69, 0.2);
    color: #b02a37;
}

.like-button i {
    font-size: 1rem;
}

.like-button.liked i {
    animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-count {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Runner info minimal style for live race cards */
.runner-info-minimal {
    border-left: none !important;
    padding-left: 0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
}