.contact-link {
    color: var(--primary);
    text-decoration: none;
    word-break: break-word;
}

.contact-link:hover {
    text-decoration: underline;
}.event-image-large {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Styles responsive */
@media (min-width: 768px) {
    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 30px;
        max-width: 800px;
    }
}/* /html_public/css/quoifaire/style.css */
:root {
    --primary: #0078D7;
    --secondary: #005BB5;
    --background: #F8F9FA;
    --text: #333;
    --gray: #666;
    --light-gray: #EEE;
    --radius: 12px;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.header {
    background: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.back-btn {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.location-selector select {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--light-gray);
    background-color: white;
    font-size: 1rem;
    flex-grow: 1;
}

.filters {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Pour Firefox */
}

.filters::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari et Opera */
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    white-space: nowrap;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.section {
    padding: 1rem;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.events-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.events-scroll::-webkit-scrollbar {
    display: none;
}

.event-card {
    flex: 0 0 280px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.event-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.event-content {
    padding: 1rem;
}

.event-time {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.event-price {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    margin: 0.25rem 0 0 0;
}

.price-tag {
    color: var(--primary);
    font-weight: 600;
}

.price-free {
    color: #28a745;
    font-weight: 600;
}

.routes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
}

.route-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.route-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.route-content {
    padding: 1rem;
    flex: 1;
}

.route-type {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.route-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.route-info {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.calendar-section {
    background: white;
    margin: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.calendar-nav button {
    background: none;
    border: 1px solid var(--light-gray);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav button:hover {
    background: var(--light-gray);
}

.calendar-events {
    padding: 1rem;
}

.day-events {
    margin-bottom: 1.5rem;
}

.day-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.event-time-block {
    flex: 0 0 60px;
    text-align: right;
    color: var(--gray);
    font-size: 0.9rem;
}

.more-link-container {
    text-align: center;
    margin-top: 1rem;
}

.more-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--primary);
    transition: all 0.2s ease;
}

.more-link:hover {
    background: var(--primary);
    color: white;
}

.no-data-message {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.loading {
    text-align: center;
    padding: 1rem;
    color: var(--gray);
}

/* Modal pour les détails des circuits et événements */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: var(--radius);
    max-width: 600px;
    position: relative;
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: var(--gray);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Styles pour les détails du circuit */
.circuit-detail-header,
.event-detail-header {
    margin-bottom: 1rem;
}

.circuit-detail-type,
.event-detail-type {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.circuit-detail-title,
.event-detail-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.circuit-detail-meta,
.event-detail-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.circuit-detail-description,
.event-detail-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.circuit-etapes {
    border-top: 1px solid var(--light-gray);
    padding-top: 1rem;
}

.etape-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.header {
    background: #0078d7;
}

.etape-numero {
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.etape-content {
    flex: 1;
}

.etape-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.etape-address {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.etape-address a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.etape-address a:hover {
    text-decoration: underline;
}

.etape-address .material-icons {
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.etape-description {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.etape-produits {
    background: var(--background);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.etape-produit-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.etape-line {
    position: absolute;
    left: 15px;
    top: 30px;
    bottom: -10px;
    width: 2px;
    background: var(--light-gray);
    z-index: -1;
}

.last-etape .etape-line {
    display: none;
}

.circuit-actions,
.event-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.start-circuit-btn,
.register-event-btn,
.primary-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.start-circuit-btn:hover,
.register-event-btn:hover,
.primary-btn:hover {
    background: var(--secondary);
}

.circuit-btn,
.event-btn {
    padding: 0.5rem 0.75rem;
    background: white;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.circuit-btn:hover,
.event-btn:hover {
    background: var(--light-gray);
}

.circuit-btn .material-icons,
.event-btn .material-icons {
    font-size: 18px;
}

/* Menu latéral pour mobile */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--primary);
    color: white;
}

.side-menu-title {
    margin: 0;
    font-size: 1.2rem;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.side-menu-content {
    padding: 1rem;
}

.side-menu-section {
    margin-bottom: 1.5rem;
}

.side-menu-section-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.side-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.side-menu-link {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.side-menu-link:hover {
    background-color: var(--light-gray);
}

.side-menu-link.active {
    background-color: var(--primary);
    color: white;
}

.side-menu-link .material-icons {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Bouton pour ouvrir le menu */
.menu-toggle {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 99;
    border: none;
    cursor: pointer;
}

/* Overlay pour fermer le menu */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.menu-overlay.open {
    display: block;
}

/* Flèches de navigation pour PC */
.nav-arrows {
    display: none; /* Par défaut masqué, visible sur desktop */
}

@media (min-width: 768px) {
    .nav-arrows {
        display: flex;
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        width: 100%;
        justify-content: space-between;
        transform: translateY(-50%);
        pointer-events: none; /* Pour ne pas interférer avec le swipe */
        z-index: 10;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        pointer-events: auto; /* Rétablir les événements pour les boutons */
        margin: 0 10px;
        z-index: 20;
    }
    
    .nav-arrow.prev {
        margin-left: 20px;
    }
    
    .nav-arrow.next {
        margin-right: 20px;
    }
    
    .menu-toggle {
        display: none; /* Masquer le bouton de menu sur desktop */
    }
    
    .events-scroll {
        position: relative; /* Pour positionner correctement les flèches */
        padding: 0 50px; /* Espace pour les flèches */
    }
}
/* Styles pour le bouton de sélection de ville */
.ville-select-btn {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
    width: 80%;
    max-width: 250px;
    margin: 0 auto;
    justify-content: center
}

.ville-select-btn:hover {
    background-color: #e8e8e8;
    border-color: #aaa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1)
}

.ville-select-btn .material-icons {
    margin-left: 5px;
    font-size: 20px;
    color: #555
}

/* Styles pour le modal */
.ville-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto
}

.ville-modal-content {
    position: relative;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.ville-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background-color: #f5f5f5;
    border-radius: 10px 10px 0 0
}

.ville-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #222;
    font-weight: 600
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #444
}

.ville-modal-search {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    width: auto
}

.search-field {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    border-radius: 25px;
    padding: 8px 15px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd;
    max-width: 100%
}

.search-field .material-icons {
    color: #555;
    margin-right: 8px
}

.search-field input {
    border: none;
    background: none;
    width: 100%;
    padding: 5px 0;
    font-size: 15px;
    color: #333;
    box-sizing: border-box
}

.search-field input:focus {
    outline: none
}

.ville-modal-body {
    display: flex;
    padding: 15px;
    overflow: hidden;
    flex: 1;
    background-color: #fff
}

/* Départements */
.departements-container {
    width: 250px;
    border-right: 1px solid #ddd;
    padding-right: 20px;
    overflow-y: auto;
    max-height: 500px
}

.departements-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
    font-size: 16px;
    font-weight: 600
}

.departements-list {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.departement-item {
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    margin-bottom: 8px;
    border: 1px solid #eee;
    background-color: #f8f8f8
}

.departement-item:hover {
    background-color: #eef5ff;
    border-color: #cce0ff;
    color: #0066cc
}

.departement-item.active {
    background-color: #e6f0ff;
    border-color: #99c2ff;
    color: #0052cc;
    font-weight: 500
}

.ville-count {
    color: #666;
    font-size: 14px
}

/* Villes */
.villes-container {
    flex: 1;
    padding-left: 20px;
    overflow-y: auto;
    max-height: 500px
}

.villes-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
    font-size: 16px;
    font-weight: 600
}

.select-dep-prompt {
    color: #555;
    font-style: italic;
    text-align: center;
    margin-top: 50px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px dashed #ddd
}

.villes-list {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.villes-by-dep {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px
}

.ville-item {
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    border: 1px solid #eee;
    background-color: #fafafa;
    text-align: center
}

.ville-item:hover {
    background-color: #eef5ff;
    border-color: #cce0ff;
    color: #0066cc
}

/* Responsive */
@media (max-width: 768px) {
    .ville-modal-body {
    display: flex;
    padding: 15px;
    overflow: hidden;
    flex: 1;
    background-color: #fff
}
    
    .departements-container {
    width: 250px;
    border-right: 1px solid #ddd;
    padding-right: 20px;
    overflow-y: auto;
    max-height: 500px
}
    
    .villes-container {
    flex: 1;
    padding-left: 20px;
    overflow-y: auto;
    max-height: 500px
}
}

.close-modal:hover {
    color: #000
}
/* Styles pour le bouton et la modal d'affiche */
.poster-btn-container {
    margin: 20px 0;
    text-align: center;
}

.view-poster-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 auto;
}

.view-poster-btn:hover {
    background: var(--color-primary-dark, #0062b1);
    transform: translateY(-2px);
}

.poster-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity 0.3s;
}

.poster-modal.show {
    opacity: 1;
}

.poster-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    text-align: center;
}

.close-poster-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.poster-container {
    margin-top: 40px;
}

.full-poster {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .poster-modal-content {
        margin: 2% auto;
        width: 95%;
        padding: 10px;
    }
    
    .full-poster {
        max-height: 85vh;
    }
}
@media (max-width: 768px) {
    .ville-modal-body {
    display: flex;
    padding: 15px;
    overflow: hidden;
    flex: 1;
    background-color: #fff
}

@media (max-width: 768px) {
    .ville-modal-content {
    position: relative;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

@media (max-width: 768px) {
    .ville-modal-content {
    position: relative;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

@media (max-width: 480px) {
    .ville-modal-content {
    position: relative;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

@media (max-width: 768px) {
    .ville-modal-body {
        flex-direction: column;
    padding: 10px
}

@media (max-width: 768px) {
    .ville-modal-content {
        margin: 20px auto;
    width: 95%;
    max-height: 90vh
}

@media (max-width: 480px) {
    .villes-by-dep {
        grid-template-columns: 1fr
}