/* Styles pour la page d'Ã©vÃ©nement */
.wv-event-page {
    background: #2b2c28;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Styles pour les notifications de paiement */
.payment-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1100;
    animation: slideUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-notification.success {
    border-left: 5px solid #2ecc71;
}

.payment-notification.error {
    border-left: 5px solid #e74c3c;
}

.payment-notification h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.payment-notification button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.payment-notification button:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Add a wrapper to contain background diapo within article */
.wv-article-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

#wv-bo-diapo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wv-diapo-img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
    max-width: none;
    max-height: none;
}

#wv-main {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #0002;
    max-width: 800px;
    width: 100%;  /* Ajouter cette ligne */
    margin: 1px auto;
    padding: 32px 24px 24px 24px;
    text-align: left;
    box-sizing: border-box; 
}

#wv-event-img {
    max-height: 100px;
    max-width: 200px;
    background: rgb(255, 255, 255);
    margin-bottom: 16px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

#wv-search-form input::placeholder {
    color: #bbb;
}

/* Styles spécifiques pour le champ nom */
#wv-name-search-container {
    transition: all 0.3s ease;
}

#wv-name-input {
    font-size: 2em !important;
    text-align: center;
    width: 175px;
    border: none;
    background: none;
    color: #333;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    padding-top: 10px;
    text-transform: uppercase;
}

#wv-name-input::placeholder {
    color: #bbb;
    font-size: 0.8em;
}



#wv-help {
    margin-top: 55px;
}

#wv-help h2 {
    font-size: 1.2em;
    margin-bottom: 12px;
}

#wv-help-details {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px;
    font-size: 1em;
}

#wv-results {
    margin: 15px 0;
    margin-top: 15px;
    text-align: left;
    max-height: none !important;
    overflow: visible !important;
}

#wv-results p {
    text-align: center;
    margin: 24px 0;
}

.wv-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

#wv-photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.wv-result-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin: 0 auto;
    justify-self: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure all result-item images fill their container */
.wv-photos-grid .wv-result-item img {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Fallback for browsers not supporting aspect-ratio (e.g., older Safari) */
@supports not (aspect-ratio: 1/1) {
    .wv-result-item {
        padding-bottom: calc(4/3 * 100%); /* 3/4 aspect ratio fallback */
    }
    .wv-result-item img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* Safari-specific fallback for GPX items (detect WebKit) */
@supports (-webkit-touch-callout: none) {
    .wv-result-item-gpx {
        aspect-ratio: auto !important;
        padding-bottom: calc(4/3 * 100%) !important;
    }
    .wv-result-item-gpx .wv-image-container {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* Safari-specific fallback for manual items */
@supports (-webkit-touch-callout: none) {
    .wv-result-item-manual {
        aspect-ratio: auto !important;
        padding-bottom: calc(4/3 * 100%) !important;
    }
    .wv-result-item-manual .wv-image-container {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.wv-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wv-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wv-result-item-manual:hover .wv-request-overlay {
    opacity: 1;
    pointer-events: all;
}

.wv-result-item-manual .wv-request-state-1,
.wv-result-item-manual .wv-request-state-2 {
    position: relative;
    z-index: 12;
}

/* Prevent text selection during click */
.wv-result-item-manual .wv-photo-controls,
.wv-result-item-manual .wv-request-btn,
.wv-result-item-manual .wv-submit-btn,
.wv-result-item-manual .wv-bib-input {
    user-select: none;
}

/* Buttons and inputs */
.wv-request-btn {
    background: #B6FF1E;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wv-request-btn:hover {
    background: #a3e61b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.wv-request-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wv-request-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wv-bib-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #FFFF00;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.wv-bib-input:focus {
    outline: none;
    border-color: #a3e61b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(182, 255, 30, 0.3);
}

/* Animation de transition entre les Ã©tats */
.wv-request-state-1.hide {
    opacity: 0;
    transform: translateY(10px);
}

.wv-request-state-2.show {
    display: flex;
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake animation for GPX upload label */
@keyframes shake {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(3px); }
}

.wv-gpx-upload-label {
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Only shake when still prompting */
.wv-gpx-upload-label.shake {
    display: inline-block;
    animation: shake 0.6s ease-in-out infinite;
}

@media (min-width: 480px) {
    #wv-photos-container .wv-photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    #wv-photos-container .wv-photos-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

#wv-results #wv-photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    #wv-results #wv-photos-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    #wv-results #wv-photos-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

#wv-results .wv-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 100p;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    justify-content: center;
}

@media (min-width: 480px) {
    #wv-results .wv-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 750px) {
    #wv-results .wv-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    #wv-results .wv-photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

#wv-results .wv-result-item {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wv-photos-grid, #wv-photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    justify-content: center;
}

@media (min-width: 480px) {
    .wv-photos-grid, #wv-photos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .wv-photos-grid, #wv-photos-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .wv-photos-grid, #wv-photos-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wv-result-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin: 0 auto;
    justify-self: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wv-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.wv-result-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
    border-radius: 8px;
}

.wv-result-item:hover img {
    transform: scale(1.05);
}

.wv-result-item .wv-add-btn {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #fff !important;
    border: none;
    padding: 8px 16px !important;
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

#wv-results .wv-result-item:hover .wv-add-btn,
#wv-photos-container .wv-result-item:hover .wv-add-btn {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.wv-validate-gpx-pack .wv-result-item {
    cursor: pointer;
}

.wv-manual-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(27, 33, 28, 0.55);
    pointer-events: auto;
    animation: modalBgFadeIn 0.3s ease-out;
    backdrop-filter: blur(4px);
    display: none;
    overflow-y: auto; /* Permet le dÃ©filement vertical */
    text-align: left;
    justify-content: left;
}

.wv-manual-search.active {
    display: block;
}

.wv-manual-search-content {
    position: relative;
    max-width: 90%;
    width: 1200px;
    margin: 20px auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);;
    border-radius: 8px;
    padding: 20px;
    max-height: 95vh;
    min-height: 70vh;
    overflow-y: auto; /* Permet le dÃ©filement du contenu */
}

/* Ensure manual search content can position close button and sticky title */
.wv-manual-search-content {
    position: relative; /* already set, ensure context */
}
/* Position close button fixed inside the content */
.wv-manual-search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
}
/* Make heading stick at top when scrolling */
.wv-manual-search-content > h2 {
    position: sticky;
    top: 0;
    background: white;
    margin: 0;
    padding: 10px 0;
    z-index: 5;
    line-height: 36px !important;
}

.wv-manual-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #333;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    z-index: 1000;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wv-manual-close:hover {
    background: #555;
    transform: scale(1.1);
}


.wv-spot-select {
    text-align: left;
}

.wv-spot-select label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    text-align: left;
}

.wv-spot-select select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wv-spot-select select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.wv-time-control {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.wv-time-control label {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
}

.slider-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.time-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.time-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.time-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.current-time {
    background: rgb(153, 190, 169);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95em;
    color: #232d25;
    font-weight: 500;
    align-self: center;
}

.wv-search-actions {
    margin-top: 8px;
}

.wv-search-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.wv-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.time-control-container {
    display: flex;
    align-items: left;
    gap: 12px;
    padding: 0 10px;
}

#timeInput {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.time-adjust-buttons {
    display: none !important;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
}

.time-slider {
    flex: 1;
    height: 5px;
    background: #ddd;
    border-radius: 2px;
    appearance: none;
    min-width: 300px;
    max-width: 500px;
    width: 100%;
}

.time-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #112001;
    border-radius: 50%;
    cursor: pointer;
}

.time-label {
    font-size: 12px;
    color: #666;
    text-align: left;
}

.current-time {
    text-align: center;
    font-size: 14px;
    color: #333;
}

.wv-search-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
}

.wv-search-btn:hover {
    background: #59725a;
}

.wv-load-more-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 2em;
    min-width: 7em;
    font-size: 1em;
}

.wv-load-more-btn:hover {
    background: #59725a;
}

#manualSearchResults {
    margin-top: 20px;
}

/* Styles pour le mode plein Ã©cran */
.wv-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wv-fullscreen-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wv-fullscreen-image {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    opacity: 0;
    animation: imageEnter 0.4s ease 0.1s forwards;
}

@keyframes imageEnter {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wv-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.wv-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.wv-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.wv-nav-prev {
    left: 20px;
}

.wv-nav-next {
    right: 20px;
}

.wv-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.wv-nav-arrow.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.wv-fullscreen-counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    max-width: 25px;
    backdrop-filter: blur(4px);
}

.wv-fullscreen-actions {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 16px 24px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    z-index: 10001;
    text-align: center;
}

.wv-fullscreen-cart-btn,
.wv-fullscreen-pack-btn {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wv-fullscreen-pack-btn {
     background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
}

.wv-fullscreen-cart-btn:hover,
.wv-fullscreen-pack-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.wv-fullscreen-cart-btn.added {
    background: #32ff87;
    color: #141b16;
}

.wv-fullscreen-btn.wv-appear-btn {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    margin-right: 16px;
}

.wv-fullscreen-btn.wv-appear-btn:hover {
    background: #588671;
    transform: translateY(-2px);
}

/* Style pour l'input du numÃ©ro de dossard en plein Ã©cran */
.wv-fullscreen-bib-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wv-fullscreen-bib-input {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 15px;
    width: 100px;
    text-align: center;
    color: #333;
}

.wv-fullscreen-bib-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3498db;
}

.wv-fullscreen-success {
    color: white;
    background: rgba(46, 204, 113, 0.9);
    padding: 12px 24px;
    border-radius: 25px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wv-fullscreen-btn {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wv-fullscreen-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.wv-fullscreen-btn.added {
    background: #2cff84;
    color: #141b16;
}

.wv-fullscreen-btn.wv-pack-btn {
     background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
}

.wv-fullscreen-btn.wv-appear-btn {
     background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
}

.wv-fullscreen-btn.wv-appear-btn:hover {
    background: #77b081;
}

/* Styles pour la tuile d'achat du pack - Fond blanc avec bordures dégradées */
.wv-pack-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* Même ratio que les photos pour cohérence grille */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Supprimé pour gérer avec ::before */
    box-sizing: border-box;
    
    /* Fond blanc propre */
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    
    /* Animations identiques aux photos */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Bordure dégradée avec pseudo-element */
.wv-pack-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2b2c28 0%, #536d57 50%, #77b081 100%);
    border-radius: 8px;
    padding: 2px; /* Épaisseur de la bordure */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 1;
}

/* Alternative bordure dégradée pour meilleure compatibilité */
.wv-pack-tile::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #ffffff;
    border-radius: 6px;
    z-index: 2;
}

/* Section contenu principal centrée - responsive amélioré */
.wv-pack-tile .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
    padding: clamp(20px, 5vw, 32px) clamp(12px, 4vw, 24px);
    width: 100%;
    box-sizing: border-box;
    min-height: 0; /* Permet la compression sur mobile */
}

/* Hover avec bordure dégradée plus intense */
.wv-pack-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.wv-pack-tile:hover::before {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 30%, #77b081 70%, #8bc595 100%);
    padding: 3px; /* Bordure plus épaisse au hover */
}

/* Icône responsive - corrigée pour éviter coupure PC */
.wv-pack-tile .icon {
    font-size: clamp(1.8em, 6vw, 2.4em);
    color: #536d57;
    margin-bottom: clamp(10px, 3vw, 16px);
    margin-top: clamp(4px, 1.5vw, 8px);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
    line-height: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wv-pack-tile:hover .icon {
    color: #77b081;
    transform: scale(1.08);
}

/* Titre responsive - plus lisible sur mobile */
.wv-pack-tile h3 {
    font-size: clamp(0.9em, 3.5vw, 1.2em);
    font-weight: 600;
    color: #2b2c28;
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

/* Description responsive - optimisée mobile */
.wv-pack-tile p {
    font-size: clamp(0.65em, 2.8vw, 0.8em);
    color: rgba(43, 44, 40, 0.8);
    text-align: center;
    line-height: 1.3;
    position: relative;
    z-index: 3;
    max-width: 95%;
}

/* Section prix responsive - améliorée mobile */
.wv-pack-tile .price-section {
    margin-top: auto;
    position: relative;
    z-index: 3;
    padding: clamp(8px, 2.5vw, 16px) clamp(8px, 3vw, 20px) clamp(12px, 4vw, 20px);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-shrink: 0; /* Empêche la compression du prix */
}

/* Prix responsive - plus visible sur mobile */
.wv-pack-tile .price {
    font-size: clamp(1em, 4vw, 1.4em);
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    padding: clamp(4px, 2vw, 8px) clamp(8px, 4vw, 18px);
    background: linear-gradient(135deg, #536d57 0%, #77b081 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: clamp(60px, 25vw, 90px);
    box-shadow: 0 2px 8px rgba(83, 109, 87, 0.3);
    white-space: nowrap;
}

/* État "ajouté au panier" - cliquable pour retirer */
.wv-pack-tile .price.added-to-cart {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    font-size: clamp(0.85em, 3.5vw, 1.2em);
    padding: clamp(4px, 2vw, 8px) clamp(6px, 3vw, 14px);
    min-width: clamp(80px, 30vw, 120px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.wv-pack-tile .price.added-to-cart::before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 2px;
}

/* Indication visuelle que c'est cliquable */
.wv-pack-tile .price.added-to-cart::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wv-pack-tile:hover .price.added-to-cart::after {
    opacity: 1;
}

.wv-pack-tile:hover .price {
    background: linear-gradient(135deg, #77b081 0%, #8bc595 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(83, 109, 87, 0.4);
}

.wv-pack-tile:hover .price.added-to-cart {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Styles pour l'affichage des prix */
.wv-price-info {
    margin: 20px auto 0;
    display: inline-flex;
    gap: 30px;
    align-items: flex-start;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wv-price-info .price-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wv-price-info .price-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.wv-price-info .price-value {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.wv-faq-accordion {
    margin-top: 20px;
}

.wv-faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.wv-faq-question {
    font-weight: 500;
    padding: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.wv-faq-question:hover {
    color: #647e68;
}

.wv-faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
}

.wv-faq-item.active .wv-faq-question::after {
    transform: rotate(45deg);
}

.wv-faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.wv-faq-item.active .wv-faq-answer {
    padding: 15px;
    max-height: 500px;
    opacity: 1;
    margin-bottom: 10px;
}

#wv-vendor-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

#wv-vendor-logo img {
    width: 50%;
    height: auto;
    max-width: 400px;
}

.error-message {
    color: #e74c3c;
    padding: 10px;
    border-radius: 4px;
    background-color: #fdf3f2;
    border: 1px solid #e74c3c;
    margin: 10px 0;
}

.wv-result-item .wv-appear-hover-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.wv-result-item:hover .wv-appear-hover-btn {
    opacity: 1;
}

.wv-appear-hover-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* Styles pour le conteneur de requÃªte dans la vue miniature */
.wv-request-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wv-result-item:hover .wv-request-container {
    pointer-events: auto;
    opacity: 1;
}

.wv-request-state-1,
.wv-request-state-2 {
    width: 100%;
    pointer-events: auto;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.wv-request-state-2 {
    pointer-events: auto;
    display: none;
}

.wv-request-btn {
    background: #B6FF1E;
    pointer-events: auto;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wv-request-btn:hover {
    pointer-events: auto;
    background: #a3e61b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.wv-request-btn:active {
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wv-request-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wv-bib-input {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 80px;
}

/* Styles pour les nouvelles classes wv-result-item-gpx et wv-result-item-manual */
.wv-result-item-gpx,
.wv-result-item-manual {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin: 0 auto;
    justify-self: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wv-result-item-gpx:hover,
.wv-result-item-manual:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.wv-result-item-gpx .wv-image-container,
.wv-result-item-manual .wv-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wv-result-item-gpx .wv-image-container img,
.wv-result-item-manual .wv-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure GPX result-item images fill their container */
.wv-photos-grid .wv-result-item-gpx .wv-image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Force fixed 3/4 ratio for GPX result tiles in the photo grid (padding-bottom fallback) */
.wv-photos-grid .wv-result-item-gpx {
    aspect-ratio: auto !important;
    height: 0 !important;
    padding-bottom: calc(100% * 4 / 3) !important; /* 3/4 ratio */
    position: relative !important;
    overflow: hidden !important;
}
.wv-photos-grid .wv-result-item-gpx .wv-image-container {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
}
.wv-photos-grid .wv-result-item-gpx .wv-image-container img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


.wv-photos-grid .wv-result-item {
  aspect-ratio: auto !important;
  height: 0 !important;
  padding-bottom: 133.333% !important;
  position: relative !important;
  overflow: hidden !important;
}
.wv-photos-grid .wv-result-item > img {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.wv-event-page {
    background: #2b2c28;
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Styles pour les notifications de paiement */
.payment-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1100;
    animation: slideUp 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-notification.success {
    border-left: 5px solid #2ecc71;
}

.payment-notification.error {
    border-left: 5px solid #e74c3c;
}

.payment-notification h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.payment-notification button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.payment-notification button:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Add a wrapper to contain background diapo within article */
.wv-article-wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
}

#wv-bo-diapo {
    position: absolute;
    top: -100px;                /* 100px above wrapper */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;               /* full viewport width */
    height: calc(100% + 150px); /* wrapper height +150px */
    bottom: auto;
    right: auto;
    z-index: 0; /* keep behind content */
    pointer-events: none;
}

#wv-diapo-img {
    width: 100%;
    height: 100%;
}

#wv-main {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #0002;
    max-width: 800px;
    margin: 1px auto;
    padding: 32px 24px 24px 24px;
    text-align: left;
}

#wv-event-img {
    max-height: 100px;
    background: rgb(255, 255, 255);
    margin-bottom: 16px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}


#wv-search-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 210, 168, 0.15);
    position: relative;
    z-index: 2;
    padding: 32px 24px 24px 24px; 

}



#wv-search-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 210, 168, 0.12);
    border-color: rgba(0, 210, 168, 0.2);
}

#wv-search-form input {
    font-size: 3.5em;
    text-align: center;
    width: 175px;
    border: none;
    background: none;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    padding-top: 10px;
}

#wv-search-form input::placeholder {
    color: #bbb;
}

/* Styles spécifiques pour le champ nom */
#wv-name-search-container {
    transition: all 0.3s ease;
}

#wv-name-input {
    font-size: 2em !important;
    text-align: center;
    width: 175px;
    border: none;
    background: none;
    color: #333;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    padding-top: 10px;
    text-transform: uppercase;
}

#wv-name-input::placeholder {
    color: #bbb;
    font-size: 0.8em;
}

/* Styles des boutons de recherche */
#wv-search-form button,
#wv-gpx-form button {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.15em;
    padding: 12px 0;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

#wv-search-form button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #536d57 0%, #6f9374 100%);
    box-shadow: 0 4px 12px #8c9b8e;
}

#wv-gpx-form button {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
}

#wv-gpx-form button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #536d57 0%, #6f9374 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

#wv-gpx-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 28px 32px 20px 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
    position: relative;
    z-index: 2;
}

#wv-gpx-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.2);
}

#wv-gpx-form input[type="file"] {
    display: none;
}

#wv-gpx-form label {
    display: block;
    font-size: 2.8em;
    color: #333;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#wv-gpx-form label:hover {
    transform: scale(1.05);
    color: #3498db;
}

#wv-help {
    margin-top: 55px;
}

#wv-help h2 {
    font-size: 1.2em;
    margin-bottom: 12px;
}

#wv-help-details {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px;
    font-size: 1em;
}

#wv-results {
    margin: 15px 0;
    margin-top: 15px;
    text-align: left;
}

#wv-results p {
    text-align: center;
    margin: 24px 0;
}

.wv-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

#wv-photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.wv-result-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin: 0 auto;
    justify-self: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wv-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wv-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wv-result-item-manual:hover .wv-request-overlay {
    opacity: 1;
    pointer-events: all;
}

.wv-result-item-manual .wv-request-state-1,
.wv-result-item-manual .wv-request-state-2 {
    position: relative;
    z-index: 12;
}

/* Prevent text selection during click */
.wv-result-item-manual .wv-photo-controls,
.wv-result-item-manual .wv-request-btn,
.wv-result-item-manual .wv-submit-btn,
.wv-result-item-manual .wv-bib-input {
    user-select: none;
}

/* Buttons and inputs */
.wv-request-btn {
    background: #B6FF1E;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wv-request-btn:hover {
    background: #a3e61b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.wv-request-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wv-request-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wv-bib-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #B6FF1E;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    color: #000;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.wv-bib-input:focus {
    outline: none;
    border-color: #a3e61b;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(182, 255, 30, 0.3);
}

/* Animation de transition entre les Ã©tats */
.wv-request-state-1.hide {
    opacity: 0;
    transform: translateY(10px);
}

.wv-request-state-2.show {
    display: flex;
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake animation for GPX upload label */
@keyframes shake {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    75% { transform: translateY(3px); }
}

.wv-gpx-upload-label {
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Only shake when still prompting */
.wv-gpx-upload-label.shake {
    display: inline-block;
    animation: shake 0.6s ease-in-out infinite;
}

@media (min-width: 480px) {
    #wv-photos-container .wv-photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    #wv-photos-container .wv-photos-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

#wv-results #wv-photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    #wv-results #wv-photos-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    #wv-results #wv-photos-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

#wv-results .wv-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    justify-content: center;
}

@media (min-width: 480px) {
    #wv-results .wv-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 750px) {
    #wv-results .wv-photos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    #wv-results .wv-photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

#wv-results .wv-result-item {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#wv-results .wv-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.wv-photos-grid, #wv-photos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    justify-content: center;
}

@media (min-width: 480px) {
    .wv-photos-grid, #wv-photos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .wv-photos-grid, #wv-photos-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .wv-photos-grid, #wv-photos-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wv-result-item {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin: 0 auto;
    justify-self: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wv-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.wv-result-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
    border-radius: 8px;
}

.wv-result-item:hover img {
    transform: scale(1.05);
}

.wv-result-item .wv-add-btn {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #fff !important;
    border: none;
    padding: 8px 16px !important;
    border-radius: 10px;
    cursor: pointer;
    font-size: 10px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

#wv-results .wv-result-item:hover .wv-add-btn,
#wv-photos-container .wv-result-item:hover .wv-add-btn {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.wv-validate-gpx-pack .wv-result-item {
    cursor: pointer;
}

.wv-manual-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: rgba(27, 33, 28, 0.55);
    pointer-events: auto;
    animation: modalBgFadeIn 0.3s ease-out;
    backdrop-filter: blur(4px);
    display: none;
    overflow-y: auto; /* Permet le dÃ©filement vertical */
    text-align: left;
    justify-content: left;
}

.wv-manual-search.active {
    display: block;
}

/* Ensure manual search content can position close button and sticky title */
.wv-manual-search-content {
    position: relative; /* already set, ensure context */
}
/* Position close button fixed inside the content */
.wv-manual-search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
}
/* Make heading stick at top when scrolling */
.wv-manual-search-content > h2 {
    position: sticky;
    top: 0;
    background: white;
    margin: 0;
    padding: 10px 0;
    z-index: 5;
    line-height: 36px !important;
}

.wv-manual-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #333;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    z-index: 1000;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wv-manual-close:hover {
    background: #555;
    transform: scale(1.1);
}

.wv-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0;
    padding: 20px;
    background:transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wv-spot-select {
    text-align: left;
}

.wv-spot-select label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    text-align: left;
}

.wv-spot-select select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wv-spot-select select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.wv-time-control {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.wv-time-control label {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
}

.slider-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}

.time-label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.time-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.time-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.current-time {
    background: rgb(153, 190, 169);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95em;
    color: #232d25;
    font-weight: 500;
    align-self: center;
}

.wv-search-actions {
    margin-top: 8px;
}

.wv-search-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.wv-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.time-control-container {
    display: flex;
    align-items: left;
    gap: 12px;
    padding: 0 10px;
}

#timeInput {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.time-adjust-buttons {
    display: none !important;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
}

.time-slider {
    flex: 1;
    height: 5px;
    background: #ddd;
    border-radius: 2px;
    appearance: none;
    min-width: 300px;
    max-width: 500px;
    width: 100%;
}

.time-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    background: #112001;
    border-radius: 50%;
    cursor: pointer;
}

.time-label {
    font-size: 12px;
    color: #666;
    text-align: left;
}

.current-time {
    text-align: center;
    font-size: 14px;
    color: #333;
}

.wv-search-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
}

.wv-search-btn:hover {
    background: #59725a;
}

.wv-load-more-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #fff;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 2em;
    min-width: 7em;
    font-size: 1em;
}

.wv-load-more-btn:hover {
    background: #59725a;
}

#manualSearchResults {
    margin-top: 20px;
}

/* Styles pour le mode plein Ã©cran */
.wv-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wv-fullscreen-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wv-fullscreen-image {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    opacity: 0;
    animation: imageEnter 0.4s ease 0.1s forwards;
}

@keyframes imageEnter {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wv-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.wv-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.wv-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.wv-nav-prev {
    left: 20px;
}

.wv-nav-next {
    right: 20px;
}

.wv-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.wv-nav-arrow.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.wv-fullscreen-counter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    max-width: 25px;
    backdrop-filter: blur(4px);
}

.wv-fullscreen-actions {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.7);
    padding: 16px 24px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    z-index: 10001;
    text-align: center;
}

.wv-fullscreen-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 500px;
    align-items: center;
}

.wv-fullscreen-cart-btn,
.wv-fullscreen-pack-btn {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wv-fullscreen-pack-btn {
     background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
}

.wv-fullscreen-cart-btn:hover,
.wv-fullscreen-pack-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.wv-fullscreen-cart-btn.added {
    background: #32ff87;
    color: #141b16;
}

.wv-fullscreen-btn.wv-appear-btn {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    margin-right: 16px;
}

.wv-fullscreen-btn.wv-appear-btn:hover {
    background: #588671;
    transform: translateY(-2px);
}

/* Style pour l'input du numÃ©ro de dossard en plein Ã©cran */
.wv-fullscreen-bib-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wv-fullscreen-bib-input {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 15px;
    width: 100px;
    text-align: center;
    color: #333;
}

.wv-fullscreen-bib-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3498db;
}

.wv-fullscreen-success {
    color: white;
    background: rgba(46, 204, 113, 0.9);
    padding: 12px 24px;
    border-radius: 25px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wv-fullscreen-btn {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wv-fullscreen-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.wv-fullscreen-btn.added {
    background: #2cff84;
    color: #141b16;
}

.wv-fullscreen-btn.wv-pack-btn {
     background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
}

.wv-fullscreen-btn.wv-appear-btn {
     background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
}

.wv-fullscreen-btn.wv-appear-btn:hover {
    background: #77b081;
}

/* Styles pour la tuile d'achat du pack - Fond blanc avec bordures dégradées */
.wv-pack-tile {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* Même ratio que les photos pour cohérence grille */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Supprimé pour gérer avec ::before */
    box-sizing: border-box;
    
    /* Fond blanc propre */
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    
    /* Animations identiques aux photos */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Bordure dégradée avec pseudo-element */
.wv-pack-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2b2c28 0%, #536d57 50%, #77b081 100%);
    border-radius: 8px;
    padding: 2px; /* Épaisseur de la bordure */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 1;
}

/* Alternative bordure dégradée pour meilleure compatibilité */
.wv-pack-tile::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #ffffff;
    border-radius: 6px;
    z-index: 2;
}

/* Section contenu principal centrée - responsive amélioré */
.wv-pack-tile .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 3;
    padding: clamp(20px, 5vw, 32px) clamp(12px, 4vw, 24px);
    width: 100%;
    box-sizing: border-box;
    min-height: 0; /* Permet la compression sur mobile */
}

/* Hover avec bordure dégradée plus intense */
.wv-pack-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.wv-pack-tile:hover::before {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 30%, #77b081 70%, #8bc595 100%);
    padding: 3px; /* Bordure plus épaisse au hover */
}

/* Icône responsive - corrigée pour éviter coupure PC */
.wv-pack-tile .icon {
    font-size: clamp(1.8em, 6vw, 2.4em);
    color: #536d57;
    margin-bottom: clamp(10px, 3vw, 16px);
    margin-top: clamp(4px, 1.5vw, 8px);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
    line-height: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wv-pack-tile:hover .icon {
    color: #77b081;
    transform: scale(1.08);
}

/* Titre responsive - plus lisible sur mobile */
.wv-pack-tile h3 {
    font-size: clamp(0.9em, 3.5vw, 1.2em);
    font-weight: 600;
    color: #2b2c28;
    margin: 0 0 clamp(3px, 1.5vw, 8px) 0;
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 3;
}

/* Description responsive - optimisée mobile */
.wv-pack-tile p {
    font-size: clamp(0.65em, 2.8vw, 0.8em);
    color: rgba(43, 44, 40, 0.8);
    margin: 0;
    text-align: center;
    line-height: 1.3;
    position: relative;
    z-index: 3;
    max-width: 95%;
    padding: 0 2px;
}

/* Section prix responsive - améliorée mobile */
.wv-pack-tile .price-section {
    margin-top: auto;
    position: relative;
    z-index: 3;
    padding: clamp(8px, 2.5vw, 16px) clamp(8px, 3vw, 20px) clamp(12px, 4vw, 20px);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-shrink: 0; /* Empêche la compression du prix */
}

/* Prix responsive - plus visible sur mobile */
.wv-pack-tile .price {
    font-size: clamp(1em, 4vw, 1.4em);
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    padding: clamp(4px, 2vw, 8px) clamp(8px, 4vw, 18px);
    background: linear-gradient(135deg, #536d57 0%, #77b081 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: clamp(60px, 25vw, 90px);
    box-shadow: 0 2px 8px rgba(83, 109, 87, 0.3);
    white-space: nowrap;
}

/* État "ajouté au panier" - cliquable pour retirer */
.wv-pack-tile .price.added-to-cart {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    font-size: clamp(0.85em, 3.5vw, 1.2em);
    padding: clamp(4px, 2vw, 8px) clamp(6px, 3vw, 14px);
    min-width: clamp(80px, 30vw, 120px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.wv-pack-tile .price.added-to-cart::before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 2px;
}

/* Indication visuelle que c'est cliquable */
.wv-pack-tile .price.added-to-cart::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wv-pack-tile:hover .price.added-to-cart::after {
    opacity: 1;
}

.wv-pack-tile:hover .price {
    background: linear-gradient(135deg, #77b081 0%, #8bc595 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(83, 109, 87, 0.4);
}

.wv-pack-tile:hover .price.added-to-cart {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Responsive optimisé avec clamp() */
@media (max-width: 768px) {
    .wv-pack-tile {
        aspect-ratio: 3/4; /* Maintient le ratio sur mobile */
    }
    
    .wv-pack-tile::before {
        padding: 2px; /* Bordure normale sur mobile */
    }
    
    .wv-pack-tile .content {
        padding: clamp(14px, 4vw, 18px) clamp(8px, 3vw, 12px);
    }
    
    .wv-pack-tile .price-section {
        padding: clamp(8px, 2vw, 12px) clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
    }
    
    .wv-pack-tile .icon {
        margin-top: clamp(2px, 1vw, 4px);
        margin-bottom: clamp(6px, 2vw, 10px);
    }
}

@media (max-width: 480px) {
    .wv-pack-tile .content {
        padding: 8px 6px;
    }
    
    .wv-pack-tile .price-section {
        padding: 4px 6px 10px;
    }
    
    .wv-pack-tile .icon {
        font-size: 1.6em;
        margin-bottom: 4px;
    }
    
    .wv-pack-tile h3 {
        font-size: 0.85em;
        margin-bottom: 2px;
    }
    
    .wv-pack-tile p {
        font-size: 0.65em;
        line-height: 1.2;
    }
    
    .wv-pack-tile .price {
        font-size: 0.95em;
        padding: 3px 8px;
        min-width: 55px;
    }
}

/* Breakpoint pour très petits écrans (smartphones en portrait) */
@media (max-width: 360px) {
    .wv-pack-tile .content {
        padding: 6px 4px;
    }
    
    .wv-pack-tile .price-section {
        padding: 3px 4px 8px;
    }
    
    .wv-pack-tile .icon {
        font-size: 1.4em;
        margin-bottom: 3px;
    }
    
    .wv-pack-tile h3 {
        font-size: 0.8em;
        margin-bottom: 1px;
    }
    
    .wv-pack-tile p {
        font-size: 0.6em;
        line-height: 1.1;
    }
    
    .wv-pack-tile .price {
        font-size: 0.9em;
        padding: 2px 6px;
        min-width: 50px;
    }
}

/* Media query pour grands écrans */
@media (min-width: 1200px) {
    .wv-pack-tile .content {
        padding: 24px 20px;
        margin-top: 25px;
    }
    
    .wv-pack-tile .price-section {
        padding: 16px 20px 24px;
    }
}

/* Styles pour l'affichage des prix */
.wv-price-info {
    margin: 20px auto 0;
    display: inline-flex;
    gap: 30px;
    align-items: flex-start;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wv-price-info .price-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wv-price-info .price-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.wv-price-info .price-value {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.wv-faq-accordion {
    margin-top: 20px;
}

.wv-faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.wv-faq-question {
    font-weight: 500;
    padding: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.wv-faq-question:hover {
    color: #647e68;
}

.wv-faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
}

.wv-faq-item.active .wv-faq-question::after {
    transform: rotate(45deg);
}

.wv-faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.wv-faq-item.active .wv-faq-answer {
    padding: 15px;
    max-height: 500px;
    opacity: 1;
    margin-bottom: 10px;
}

#wv-vendor-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

#wv-vendor-logo img {
    width: 50%;
    height: auto;
    max-width: 400px;
}

.error-message {
    color: #e74c3c;
    padding: 10px;
    border-radius: 4px;
    background-color: #fdf3f2;
    border: 1px solid #e74c3c;
    margin: 10px 0;
}

.wv-result-item .wv-appear-hover-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.wv-result-item:hover .wv-appear-hover-btn {
    opacity: 1;
}

.wv-appear-hover-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

/* Styles pour le conteneur de requÃªte dans la vue miniature */
.wv-request-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wv-result-item:hover .wv-request-container {
    pointer-events: auto;
    opacity: 1;
}

.wv-request-state-1,
.wv-request-state-2 {
    width: 100%;
    pointer-events: auto;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.wv-request-state-2 {
    pointer-events: auto;
    display: none;
}

.wv-request-btn {
    background: #B6FF1E;
    pointer-events: auto;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wv-request-btn:hover {
    pointer-events: auto;
    background: #a3e61b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.wv-request-btn:active {
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wv-request-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wv-bib-input {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 80px;
}

/* Styles pour les nouvelles classes wv-result-item-gpx et wv-result-item-manual */
.wv-result-item-gpx,
.wv-result-item-manual {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin: 0 auto;
    justify-self: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wv-result-item-gpx:hover,
.wv-result-item-manual:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.wv-result-item-gpx .wv-image-container,
.wv-result-item-manual .wv-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wv-result-item-gpx .wv-image-container img,
.wv-result-item-manual .wv-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wv-result-item-gpx .wv-add-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

/* Show on hover */
.wv-result-item-gpx:hover .wv-add-btn {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Always visible on touch devices */
@media (hover: none) {
    .wv-result-item-gpx .wv-add-btn {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
}

/* Fix pour que la navigation Ã  la roulette fonctionne */
.wv-photos-grid,
#wv-photos-container,
.wv-manual-search-content {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    scrollbar-width: thin;
    scrollbar-color: #1E271F #ffffff;
}

/* Style pour la scrollbar (Chrome) */
.wv-photos-grid::-webkit-scrollbar,
#wv-photos-container::-webkit-scrollbar,
.wv-manual-search-content::-webkit-scrollbar {
    width: 8px;
}

.wv-photos-grid::-webkit-scrollbar-track,
#wv-photos-container::-webkit-scrollbar-track,
.wv-manual-search-content::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.wv-photos-grid::-webkit-scrollbar-thumb,
#wv-photos-container::-webkit-scrollbar-thumb,
.wv-manual-search-content::-webkit-scrollbar-thumb {
    background: #B6FF1E;
    border-radius: 4px;
}

/* Pour Ã©viter que le conteneur des rÃ©sultats soit trop grand */
#manualSearchResults {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding: 20px;
}

/* Styles pour le modal de saisie du dossard en recherche manuelle */
.wv-bib-input-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.wv-bib-input-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
}

.wv-bib-close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.wv-bib-input {
    width: 100%;
    max-width: 200px;
    margin: 20px auto;
    padding: 10px;
    font-size: 18px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.wv-bib-submit-btn {
    background: #B6FF1E;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wv-bib-submit-btn:hover {
    background: #a3e61b;
}

.wv-photo-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    gap: 10px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wv-result-item:hover .wv-photo-controls {
    opacity: 1;
}

.wv-search-actions {
    text-align: left;
}

.wv-manual-search-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
}

/* --- Manual search close icon hover animation --- */
.wv-manual-search-content > .wv-cart-modal-close {
    transition: all 0.3s ease !important;
}
.wv-manual-search-content > .wv-cart-modal-close:hover {
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
    transform: rotate(90deg) !important;
}

/* ----------------------------------------
   Manual search close button override
   ---------------------------------------- */
.wv-manual-search-content > .wv-cart-modal-close {
    position: absolute !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1.8em !important;
    color: #444 !important;
    background: transparent !important;
    border-radius: 50% !important;
    top: 20px !important;
    right: 20px !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 1001 !important;
}

/* === Manual search modal header alignment === */
.wv-manual-search-content > h2 {
    margin: 0 !important;
    padding: 16px 0 !important;
    line-height: 36px !important;
}
.wv-manual-search-content .wv-cart-modal-close {
    z-index: 999 !important;
}

/* Nouveau bouton panier flottant */
#wv-cart-btn.wv-cart-btn {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1200;
    background: #212b22;
    color: #fff;
    border: none;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    padding: 0;
    font-size: 1.6em;
    box-shadow: 0 4px 16px rgba(0, 210, 168, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
}

#wv-cart-btn.wv-cart-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 210, 168, 0.4);
}

#wv-cart-btn.wv-cart-btn:active {
    transform: translateY(-1px) scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 210, 168, 0.3);
    transition: all 0.1s ease-in-out;
}

#wv-cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fefe31;
    color: #222b22;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.7em;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 24px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

/* Animation pour l'ajout au panier */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes cartShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.cart-item-added #wv-cart-btn {
    animation: cartBounce 0.5s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

.cart-item-added #wv-cart-counter {
    animation: cartShake 0.5s ease-in-out;
}

/* Modal panier */
#wv-cart-modal-root {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1300;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* EmpÃªcher le scroll de l'arriÃ¨re-plan */
}
.wv-cart-modal-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 33, 28, 0.55);
    z-index: 1301;
    pointer-events: auto;
    animation: modalBgFadeIn 0.3s ease-out;
    backdrop-filter: blur(4px);
    overflow: hidden; /* EmpÃªcher le dÃ©filement de l'arriÃ¨re-plan */
}

@keyframes modalBgFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.wv-cart-modal {
    position: relative; /* Ne plus fixed pour que le flex parent gÃ¨re la position */
    left: auto;
    top: auto;
    transform: none;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    max-width: 480px;
    width: 92vw;
    max-height: 90vh; /* Limiter la hauteur maximale */
    padding: 0px 32px 32px 32px;
    overflow-y: auto; /* Activer le scroll interne */
    overflow-x: hidden;
    overscroll-behavior: contain; /* EmpÃªcher le scroll de toucher l'arriÃ¨re-plan */
    margin: auto;
    z-index: 1302;
    text-align: left;
    pointer-events: auto;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

@keyframes modalPop {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.wv-cart-modal-header {
   position: sticky;
   top: 0;
   background: #fff;
   z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0; /* remove transparent margin under header */
    padding-bottom: 28px; /* extend header background downward */
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-top: 32px; /* add padding to the top for better spacing */
}
.wv-cart-modal-close {
    font-size: 1.8em;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    margin: -8px;
}

.wv-cart-modal-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    transform: rotate(90deg);
}

.wv-cart-modal h2 {
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.wv-cart-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 4px;
    overflow-y: auto; /* Permet le dÃ©filement du contenu */
    max-height: calc(90vh - 200px); /* Hauteur maximale en tenant compte des en-tÃªtes/pieds */
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Style de la scrollbar pour Webkit (Chrome, Safari, etc.) */
.wv-cart-modal-grid::-webkit-scrollbar {
    width: 8px;
}

.wv-cart-modal-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wv-cart-modal-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.wv-cart-modal-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.wv-cart-modal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wv-cart-modal-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wv-cart-modal-item:hover img {
    transform: scale(1.05);
}
.wv-cart-modal-remove {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.wv-cart-modal-remove:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

.wv-cart-modal-summary {
    margin: 24px 0;
    padding: 20px;
    background: #cfe0d1;
    border-radius: 16px;
    font-size: 1.1em;
}

.wv-cart-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-direction: column;
}

.wv-cart-modal-checkout {
    background: #222b22;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 14px 24px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 210, 168, 0.2);
    width: 100%;
    text-align: center;
}

.wv-cart-modal-checkout:hover {
    background: #647e68;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 210, 168, 0.3);
}

.wv-cart-modal-clear {
    background: transparent;
    color: #666;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 16px;
    padding: 14px 24px;
    font-size: 1.05em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}
.wv-cart-modal-clear:hover {
    background: #888;
}

/* Styles pour le panier en tableau */
.wv-cart-modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.wv-cart-modal-table th,
.wv-cart-modal-table td {
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: left;
    vertical-align: middle;
}
.wv-cart-modal-table th {
    background: #f8f8f8;
    font-weight: 600;
}
.wv-cart-table-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wv-cart-table-thumbnail:hover {
    transform: scale(1.1);
}

.wv-cart-modal-total td {
    border-top: 2px solid rgba(0,0,0,0.08);
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
    padding-top: 16px;
}

/* Highlight pack rows in cart modal */
.wv-cart-modal-row-pack td {
    background-color: #f3f6f9;
}
.wv-cart-modal-row-pack {
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Styles pour le formulaire de checkout */
.wv-checkout-form {
    margin-top: 24px;
    transform: translateY(20px);
    opacity: 0;
    animation: checkoutFormAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes checkoutFormAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wv-checkout-form input {
    width: 85%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.02);
}

.wv-checkout-form input:focus {
    outline: none;
    border-color: #fefe31;
    box-shadow: 0 0 0 3px rgba(0, 210, 168, 0.1);
    background: white;
}

.wv-checkout-form input::placeholder {
    color: #999;
}

.wv-checkout-form select {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    font-size: 1em;
    background: rgba(0,0,0,0.02);
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.wv-checkout-form select:focus {
    outline: none;
    border-color: #fefe31;
    box-shadow: 0 0 0 3px rgba(0, 210, 168, 0.1);
    background-color: white;
}

.wv-checkout-form label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
}

.wv-checkout-form-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 24px 0;
}

/* Animation des champs lors de la validation */
.wv-checkout-form input:valid,
.wv-checkout-form select:valid {
    border-color: rgba(0, 210, 168, 0.3);
}

/* GPX Pack Selection Styles */
.wv-gpx-pack-container {
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: left;
    box-shadow: -4px -3px 20px 10px rgba(160,160,160,0.35);
    position: sticky;
    top: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.wv-gpx-pack-container h3 {
    margin: 0 0 15px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.wv-gpx-pack-counter {
    font-size: 0.8em;
    font-weight: 100;
    margin: 10px 0;
    color: #000000;
}

.wv-gpx-pack-validate {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    margin-top: 15px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

    letter-spacing: 0.5px;
}

.wv-gpx-pack-validate:hover {
    background: #536d57 ;
    transform: translateY(-2px);
}

.wv-gpx-pack-validate:disabled {
    background: #cccccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}



/* Ajout des styles CSS pour les messages d'erreur et de succès de recherche avec animations */
.wv-results-title {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
}

.wv-results-title.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-left: 5px solid #1abc9c;
}

.wv-results-title.error {
    text-align: left;
}

.wv-results-title h4 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.wv-results-title p {
    margin: 8px 0;
    opacity: 0.9;
}

.wv-search-suggestions {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wv-search-suggestions p {
    margin: 8px 0;
    font-size: 0.95em;
}

.wv-search-suggestions a {
    color: #f1c40f;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wv-search-suggestions a:hover {
    color: #f39c12;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
}

/* Animation pour l'apparition des messages */
.wv-results-title {
    animation: fadeInUp 0.5s ease-out;
}

#wv-results,
.wv-photos-grid,
#wv-photos-container,
.wv-result-item {
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    height: auto !important;
}

#wv-search-box {
    display: flex;
    flex-direction: row;  /* Ajouter cette ligne */
    gap: 24px;
    margin: 32px 0 24px 0;
    justify-content: center;
    align-items: stretch;  /* Ajouter cette ligne */
    width: 100%;  /* Ajouter cette ligne */
    box-sizing: border-box;  /* Ajouter cette ligne */
    padding: 0;
}

#wv-search-form,
#wv-gpx-form {
    flex: 1;  /* Remplacer flex: none !important */
    width: auto;  /* Remplacer width: 100% !important */
    min-width: 0;
    max-width: calc(60% - 10px);;  /* Supprimer max-width: 48% !important */
    box-sizing: border-box;
    margin: 0;  /* Ajouter cette ligne */
    height: fit-content;
}
#wv-search-form .wv-bib-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    #wv-main {
        padding: 16px;
        margin: 8px;
        border-radius: 12px;
    }

     #wv-search-box {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        width: 100%;
        padding: 0;
    }
    #wv-search-form,
    #wv-gpx-form {
        width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 20px;
    }

    #wv-search-form input {
        font-size: 2em;
        width: 120px;
    }

    .wv-photos-grid,
    #wv-photos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .wv-result-item {
        aspect-ratio: 4/5;
    }

    .wv-add-pack-btn,
    .wv-request-btn {
        font-size: 13px;
        padding: 10px 16px;
    }

    .wv-fullscreen-actions {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        width: 90%;
    }

    .wv-fullscreen-btn {
        width: 100%;
        font-size: 14px;
        padding: 10px 16px;
        text-align: center;
        justify-content: center;
    }

    .wv-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .wv-fullscreen-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
        top: 12px;
        right: 12px;
    }

    #wv-cart-btn.wv-cart-btn {
        width: 55px;
        height: 55px;
        right: 20px;
        bottom: 20px;
        font-size: 1.4em;
    }

    .wv-cart-modal {
        width: 95vw;
        padding: 24px 16px;
    }

    .wv-cart-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    #wv-main {
        padding: 20px 12px;
        margin: 0;
        border-radius: 12px;
    }
    #wv-search-box {
        gap: 10px;
        margin: 8px 0;
    }

    #wv-search-form,
    #wv-gpx-form {
        padding: 16px;
        width: 100%;
    }

    #wv-search-form input {
        font-size: 2em;
        width: 100px;
    }

    #wv-gpx-form {
        width: 100%;
        min-width: auto;
        padding: 20px;
    }
    #wv-search-form,
    #wv-gpx-form {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 16px !important;
        box-sizing: border-box !important;
    }

    .wv-price-info {
        flex-direction: column;
    }

    .wv-cart-modal {
        width: 95vw;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .wv-cart-modal-actions {
        flex-direction: column;
    }

    .wv-cart-modal-checkout,
    .wv-cart-modal-clear {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

    .wv-cart-modal-summary {
        padding: 15px;
        font-size: 1em;
    }

    .wv-cart-table-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* AmÃ©lioration de l'expÃ©rience tactile sur mobile */
@media (hover: none) {
    .wv-add-pack-btn,
    .wv-appear-hover-btn {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Les boutons wv-add-btn restent cachés sur mobile - accès via plein écran uniquement */
    .wv-add-btn {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .wv-request-container {
        opacity: 1;
        pointer-events: auto;
    }

    .wv-photo-controls {
        opacity: 1;
    }
}

/* Gestion de l'orientation paysage sur mobile */
@media (max-height: 480px) and (orientation: landscape) {
    .wv-fullscreen-actions {
        flex-direction: row;
        padding: 8px 16px;
        bottom: 16px;
    }

    .wv-fullscreen-btn {
        width: auto;
        white-space: nowrap;
    }

    .wv-cart-modal {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Styles du modal panier responsive */
.wv-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.wv-cart-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.wv-cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 2;
}

.wv-cart-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(90vh - 180px);
}

.wv-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    background: #fff;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.wv-cart-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.wv-cart-item {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wv-cart-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wv-cart-item .remove-item {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e74c3c;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Media queries pour la responsivitÃ© */
@media (max-width: 768px) {
    .wv-cart-modal {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    .wv-cart-header {
        position: sticky;
        top: 0;
        background: white;
        border-radius: 0;
        padding: 12px;
        z-index: 10;
        border-bottom: 1px solid #eee;
    }

    .wv-cart-header h2 {
        font-size: 1.1em;
        margin: 0;
    }

    .wv-cart-content {
        flex: 1;
        overflow-y: auto;
        padding: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .wv-cart-modal-table {
        display: block;
        width: 100%;
    }

    .wv-cart-modal-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 6px;
        margin-bottom: 4px;
        background: #f8f8f8;
        border-radius: 4px;
        gap: 8px;
    }

    .wv-cart-table-thumbnail {
        width: 50px;
        height: 50px;
        border-radius: 3px;
        flex-shrink: 0;
    }

    .wv-cart-modal-table td {
        padding: 0;
       }

    .wv-cart-modal-table td:nth-child(2) {
        flex: 1;
        font-size: 0.9em;
    }

    .wv-cart-modal-table td:last-child {
        width: 100%;
        text-align: right;
        padding-top: 4px;
    }

    .wv-cart-modal-table td:nth-child(2) {
        flex: 1;
    }

    .wv-cart-modal-table td:last-child {
        width: 100%;
        text-align: right;
        padding-top: 8px;
    }

    .wv-cart-footer {
        position: sticky;
        bottom: 0;
        background: white;
        border-radius: 0;
        padding: 12px 8px;
        border-top: 1px solid #eee;
    }

    .wv-cart-modal-actions {
        gap: 8px;
    }

    .wv-cart-modal-checkout,
    .wv-cart-modal-clear {
        padding: 10px;
        font-size: 0.95em;
    }

    .wv-cart-modal-summary {
        margin: 12px 0;
        padding: 12px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .wv-cart-header h2 {
        font-size: 1.2em;
    }

    .wv-cart-items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .wv-cart-item .remove-item {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .wv-cart-footer button {
        width: 100%;
        margin: 5px 0;
    }
}

/* Animations de transition */
.wv-cart-item {
    transition: transform 0.2s ease;
}

.wv-cart-item:hover {
    transform: scale(1.02);
}

.wv-cart-item .remove-item {
    transition: all 0.2s ease;
}

.wv-cart-item .remove-item:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Popup de recherche manuelle responsive */
.wv-manual-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wv-manual-search-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    margin-top: 100px;


    width: 90vw;
    max-width: 1000px;
    max-height: 90vh;
    padding: 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.wv-manual-search-header {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: left;
}

.wv-manual-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
}

/* Adjust manual-body height to remaining space below header */
.wv-manual-body {
    overflow-y: auto;
    height: calc(100% - 60px); /* occupy full popup minus header height */
    box-sizing: border-box;
}

/* Ensure parent has fixed height */
.wv-manual-search-content {
    overflow: hidden;
    height: 95vh;
}

/* Nouveau style pour le bouton de recherche GPX */
.wv-gpx-search-btn {
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.wv-gpx-search-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    transition: transform 0.3s ease;
    z-index: 0;
}

.wv-gpx-search-btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
}



.wv-gpx-search-btn:hover {
    background: linear-gradient(135deg, #536d57 0%, #6f9374 100%);
}

#wv-gpx-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(52, 152, 219, 0.12);
    border-color: rgba(52, 152, 219, 0.2);
}

#wv-gpx-form label {
    display: block;
    font-size: 2.8em;
    color: #333;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#wv-gpx-form label:hover {
    transform: scale(1.05);
    color: #3498db;
}

#wv-gpx-form input[type="file"] {
    display: none;
}

/* Styles pour le chargement des fichiers GPX */
.wv-gpx-upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.wv-gpx-upload label {
    font-size: 1.2em;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wv-gpx-upload label:hover {
    color: #007bff;
}

.wv-gpx-upload input {
    display: none;
}

.wv-gpx-upload .wv-upload-area {
    border: 2px dashed #007bff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: background 0.3s ease;
}

.wv-gpx-upload .wv-upload-area:hover {
    background: rgba(0, 123, 255, 0.1);
}

.wv-gpx-upload .wv-upload-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 12px;
}

.wv-gpx-upload .wv-upload-text {
    font-size: 1.1em;
    color: #333;
}

.wv-gpx-upload-success {
    color: #28a745;
    font-size: 0.9em;
    margin-top: 4px;
    text-align: center;
}

label[for="wv-gpx-upload"] {
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s ease;
}
label[for="wv-gpx-upload"]:hover {
    color: #0069d9;
}

/* Style to disable gpx search button until file loaded */
#wv-gpx-search-btn:disabled {

    opacity: 0.6;
    cursor: not-allowed;
}

/* Prompt message under upload label */
.wv-gpx-upload-prompt {
    font-size: 0.9em;
    color: #bbb;
    margin-bottom: 8px;
    padding-bottom: 10px;
}

/* Center and style add to pack button */
.wv-add-pack-btn {
    position: absolute ;
    max-height: 50px;
    left: 50%;
    top: 70%;
    transform: translate(-10%, -10%);
    color: #fff;
    padding: 0;
    border-radius: 10px;
    border:none;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* === Override pack buttons positioning and visibility === */
.wv-result-item-gpx .wv-add-pack-btn {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    color: #fff !important;
    padding: 8px 16px !important;
    font-size: 10px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.wv-result-item-gpx:hover .wv-add-pack-btn {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@media (hover: none) {
    .wv-result-item-gpx .wv-add-pack-btn {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.wv-manual-search-content .wv-result-item {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  max-width: 300px;
  margin: 0 10px 20px 0;
}

.wv-manual-search-content .wv-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

select{
    width: 50%;
    padding: 5px 16px;
    margin-bottom: 16px;
    border: 2px linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    border-radius: 25px;
    font-size: 0.9em;
    background: rgba(0,0,0,0.02);
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

@media (max-width: 600px) {
  .wv-search-form {
    padding: 16px;
    box-sizing: border-box;
    gap: 16px;
    border-radius: 8px;
  }
  
  .wv-spot-select label,
  .wv-time-control label {
    font-size: 1em;
    font-weight: 600;
  }
  
  .wv-search-form select,
  .wv-search-form input,
  .wv-search-form button {
    font-size: 16px; /* Évite le zoom sur iOS */
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  
  .wv-spot-select select {
    padding: 12px 14px;
    border-radius: 6px;
  }
  
  .slider-container {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .time-label {
    font-size: 0.85em;
    min-width: auto;
  }
  
  .time-slider {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 8px;
    margin: 8px 0;
  }
  
  .time-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
  }
  
  .time-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
  
  .current-time {
    padding: 10px 14px;
    font-size: 0.9em;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .wv-search-actions {
    margin-top: 12px;
  }
  
  .wv-search-btn {
    padding: 16px 20px;
    font-size: 1em;
    border-radius: 6px;
    min-height: 48px; /* Facilite l'interaction tactile */
  }
  
  /* Amélioration de l'espacement vertical */
  .wv-time-control {
    gap: 16px;
  }
  
  /* Amélioration de l'accessibilité mobile */
  .wv-spot-select select:focus,
  .wv-search-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
  }
}

/* Styles pour les informations de l'image en mode plein écran */
.wv-fullscreen-info {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 200px;
    max-width: 80vw;
    z-index: 2;
    animation: slideUpFade 0.5s ease 0.2s both;
}

.wv-image-name {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.3;
}

.wv-image-counter {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75em;
    font-weight: 400;
    text-align: center;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .wv-fullscreen-info {
        bottom: 100px;
        padding: 10px 16px;
        min-width: 150px;
        max-width: 90vw;
    }
    
    .wv-image-name {
        font-size: 0.8em;
    }
    
    .wv-image-counter {
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .wv-fullscreen-info {
        bottom: 110px;
        padding: 8px 12px;
        min-width: 120px;
        max-width: 95vw;
    }
    
    .wv-image-name {
        font-size: 0.75em;
        line-height: 1.2;
    }
    
    .wv-image-counter {
        font-size: 0.65em;
    }
}

/* Styles pour tablettes */
@media (min-width: 601px) and (max-width: 768px) {
  .wv-search-form {
    max-width: 90vw;
    padding: 18px;
    gap: 18px;
  }
  
  .slider-container {
    gap: 10px;
  }
  
  .time-slider {
    height: 6px;
  }
  
  .wv-search-btn {
    padding: 14px 22px;
    font-size: 1.05em;
  }
}

/* Amélioration pour les très petits écrans */
@media (max-width: 380px) {
  .wv-search-form {
    padding: 12px;
    gap: 14px;
    margin: 0 8px;
    max-width: calc(100vw - 16px);
  }
  
  .wv-spot-select label,
  .wv-time-control label {
    font-size: 0.95em;
  }
  
  .time-label {
    font-size: 0.8em;
  }
  
  .current-time {
    padding: 8px 12px;
    font-size: 0.85em;
  }
  
  .wv-search-btn {
    padding: 14px 16px;
    font-size: 0.95em;
  }
}
/* Fix pour les petits écrans */
@media (max-width: 380px) {
    #wv-search-box {
        padding: 0 8px;
    }

    #wv-search-form,
    #wv-gpx-form {
        padding: 12px;
        width: 100%;
        min-width: 0;
    }
}


.wv-spot-table {
    align-items: left;
    justify-content: left;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1A221B 0%, #536d57 100%);
    border-radius: 8px;
    padding: 15px;
    font-size: small;
}
.wv-spot-table th{
    text-align: left;
    padding-right:40px;
    font-weight: 350;
    color: white;
    padding-top: 15px;

}
.wv-spot-table td{
    text-align: left;
    padding-right:40px;
    font-weight: 190;
    padding-left: 15px;
    color: #B4C9B7;
}
details {
    margin-bottom: 20px;
    padding: 16px;
    max-width: 80%;
    border-radius: 8px;
}
summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 5px;
  }
