:root {
    --primary: #0B8143;
    --primary-light: #e6f7ed;
    --primary-dark: #076A35;
    --secondary: #ffc107;
    /*--secondary: #4A4A4A;*/
    --accent: #F59B00;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #6c757d;
}

/* Global Styles */
body {
    color: #495057;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #212529;
}

a {
    color: var(--primary);
}

.leaflet-container a {
    color: #FFFFFF !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.text-primary {
    color: var(--primary) !important;
}

/* Header and Breadcrumb */
.page-title-section {
    margin-top: -20px;
}

.page-title-bg {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('<?= base_url('public/site/img/terrain-bg.jpg') ?>') center center;
    background-size: cover;
    position: relative;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.page-title-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(11, 129, 67, 0.8) 100%);
    opacity: 0.9;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Terrain Gallery */
.terrain-header {
    position: relative;
    background-color: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.terrain-gallery {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.gallery-main {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-main .swiper-slide:hover img {
    transform: scale(1.03);
}

.gallery-thumbs {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding: 0 20px;
}

.gallery-thumbs .swiper-slide {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: white;
    transform: translateY(-3px);
}

.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Terrain Info */
.terrain-info {
    padding: 25px;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.terrain-info:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.terrain-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.btn-reserve {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-reserve:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

.btn-favorite, .btn-share {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--secondary);
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-favorite:hover, .btn-share:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-favorite.active {
    background-color: #ffe5e5;
    color: #ff4d4d;
    border-color: #ff4d4d;
}

/* Features & Tags */
.terrain-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: var(--primary-light);
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s;
}

.feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feature-badge i {
    color: var(--primary);
}

.terrain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.terrain-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--gray-medium);
    color: var(--secondary);
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.terrain-tag:hover {
    background-color: var(--gray-dark);
    color: white;
}

/* Sections */
.terrain-section {
    margin-bottom: 35px;
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.terrain-section h3 {
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    padding-bottom: 12px;
    font-size: 1.5rem;
}

.terrain-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

/* Tarifs */
.tarif-card {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tarif-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.tarif-type {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.tarif-plages {
    margin-top: 12px;
}

.tarif-plage {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.tarif-plage:last-child {
    border-bottom: none;
}

.tarif-horaire {
    color: var(--gray-dark);
}

.tarif-prix {
    font-weight: 600;
    color: var(--accent);
}

/* Schedule */
.schedule-item {
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.schedule-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.schedule-day {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.schedule-slot {
    background-color: var(--gray-light);
    border: 1px solid #eee;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.schedule-slot.available {
    border-color: #d1e7dd;
    background-color: #f0f9f0;
}

.schedule-slot.available:hover {
    background-color: #d1e7dd;
    transform: translateY(-2px);
}

.schedule-slot.unavailable {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    text-decoration: line-through;
}

.schedule-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
}

.schedule-slot.available::before {
    background-color: var(--primary);
}

.schedule-slot.unavailable::before {
    background-color: #dc3545;
}

/* Reviews */
.review-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.review-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #ddd;
    transform: translateY(-3px);
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 600;
    margin-bottom: 0;
}

.review-date {
    color: var(--gray-dark);
    font-size: 14px;
}

.review-rating {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Info Boxes */
.info-box {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

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

.info-box h4 {
    font-size: 18px;
    margin-bottom: 18px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.info-box h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.3s;
}

.info-item:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Map */
.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

/* Rating in Modal */
.rating-stars {
    display: flex;
    gap: 5px;
    font-size: 24px;
    color: #ddd;
}

.rating-star {
    cursor: pointer;
    transition: all 0.2s;
}

.rating-star:hover {
    transform: scale(1.2);
}

/* Terrain Card */
.terrain-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    background-color: white;
}

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

.terrain-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.terrain-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.terrain-card:hover .terrain-image img {
    transform: scale(1.05);
}

.terrain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.terrain-card:hover .terrain-overlay {
    opacity: 1;
}

.btn-view-details {
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
    text-decoration: none;
}

.terrain-card:hover .btn-view-details {
    transform: translateY(0);
    opacity: 1;
}

.terrain-details {
    padding: 20px;
}

.terrain-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.terrain-location {
    color: var(--gray-dark);
    font-size: 14px;
    margin-bottom: 10px;
}

.terrain-feature {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

.price {
    font-weight: 600;
    color: var(--accent);
    font-size: 18px;
}

.btn-terrain {
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-terrain:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .terrain-gallery {
        height: 350px;
    }
}

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

@keyframes pulseSlot {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

@media (max-width: 768px) {
    .terrain-gallery {
        height: 300px;
    }
    
    .gallery-thumbs {
        display: none;
    }
    
    .terrain-actions {
        flex-direction: column;
    }
    
    .btn-reserve {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .terrain-features {
        gap: 8px;
    }
    
    .feature-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .action-buttons {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    
    .btn-favorite, .btn-share {
        flex: 1;
    }

    .payment-option-card,
    .payment-type-card {
        margin-bottom: 1rem;
    }
    
    .slot-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .terrain-gallery {
        height: 250px;
    }
    
    .terrain-section {
        padding: 15px;
    }
    
    .info-box {
        padding: 15px;
    }
    
    .tarif-card, .schedule-item, .review-card {
        padding: 15px;
    }
}

/* Animation Classes */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Styles améliorés pour les créneaux disponibles */
.available-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.slot-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.slot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(11, 129, 67, 0.15);
    border-color: var(--primary);
}

.slot-item:hover::before {
    transform: scaleX(1);
}

.slot-item.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(11, 129, 67, 0.3);
}

.slot-item.selected::before {
    transform: scaleX(1);
    background: white;
}

.slot-time {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.slot-price {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.slot-price::before {
    content: '💰';
    font-size: 12px;
}

.slot-item.selected .slot-price {
    color: #ffd700;
}

.slot-item.selected .slot-price::before {
    content: '✓';
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Badge pour les plages horaires */
.tarif-tag {
    background-color: rgba(11, 129, 67, 0.1);
    color: var(--primary);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slot-item.selected .tarif-tag {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Créneaux après minuit */
.slot-item.apres-minuit {
    border-color: #d5b8fa;
    background: linear-gradient(135deg, #f8f0ff 0%, #f0e4ff 100%);
}

.slot-item.apres-minuit.selected {
    background: linear-gradient(135deg, #8a2be2 0%, #7126be 100%);
}

/* Animation de pulsation pour les créneaux recommandés */
.slot-item.pulse {
    animation: pulse-slot 2s ease-in-out 3;
}

@keyframes pulse-slot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(11, 129, 67, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(11, 129, 67, 0);
    }
}

/* Responsive design pour les créneaux */
@media (max-width: 1200px) {
    .available-slots {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .available-slots {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 8px;
    }
    
    .slot-item {
        padding: 10px;
    }
    
    .slot-time {
        font-size: 13px;
    }
    
    .slot-price {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .available-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .slot-item {
        padding: 10px 8px;
    }
    
    .slot-time {
        font-size: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .tarif-tag {
        font-size: 9px;
        padding: 2px 6px;
    }
}

@media (max-width: 400px) {
    .available-slots {
        grid-template-columns: 1fr;
    }
}

.reservation-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.availability-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

/* Animation de pulsation pour indiquer la disponibilité */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 129, 67, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(11, 129, 67, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(11, 129, 67, 0);
    }
}

.slot-item.pulse {
    animation: pulse-green 1.5s infinite;
}

/* Styles pour les étiquettes de tarifs */
.tarif-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: var(--accent);
    color: white;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Styles pour les créneaux après minuit */
.slot-item.apres-minuit {
    background-color: #f8f0ff;
    border-color: #e2d0f9;
}

.slot-item.apres-minuit:hover {
    background-color: #f0e4ff;
    border-color: #d5b8fa;
}

.slot-item.apres-minuit.selected {
    background-color: #8a2be2;
    border-color: #7126be;
}

.slot-item.apres-minuit .slot-time small {
    font-size: 11px;
    opacity: 0.8;
}

/* En-têtes des plages horaires */
.available-slots h6 {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.available-slots h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Étiquette de tarif variable */
/*.tarif-tag {
    display: inline-block;
    font-size: 10px;
    background-color: rgba(0, 0, 0, 0.07);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 5px;
}*/

.tarif-tag {
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.slot-item.selected .tarif-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Animation de pulsation pour indiquer la disponibilité */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(11, 129, 67, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(11, 129, 67, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(11, 129, 67, 0);
    }
}

.slot-item.pulse {
    animation: pulse-green 1.5s infinite;
}

/* Optimisation mobile */
@media (max-width: 992px) {
    .slot-item {
        width: calc(33.33% - 7px); /* 3 colonnes sur tablette */
    }
}

@media (max-width: 768px) {
    .slot-item {
        width: calc(50% - 5px); /* 2 colonnes sur petite tablette */
        padding: 8px 12px;
    }
    
    .slot-time, .slot-price {
        font-size: 12px;
    }
    
    .tarif-tag {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .available-slots {
        gap: 7px;
    }
    
    .slot-item {
        width: calc(50% - 4px); /* 2 colonnes sur mobile */
        padding: 7px 10px;
    }
    
    .slot-time {
        font-size: 11px;
    }
    
    .slot-price {
        font-size: 12px;
    }
    
    .slot-time small {
        font-size: 9px !important;
    }
    
    .tarif-tag {
        margin-top: 2px;
        margin-left: 0;
    }
}

/* Styles pour les options de paiement */
.payment-option-card {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.payment-option-card:hover {
    border-color: #0B8143;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.payment-option-card.selected {
    border-color: #0B8143;
    background-color: rgba(11, 129, 67, 0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.payment-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.payment-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-name {
    font-weight: 600;
    color: #495057;
}

.payment-option-card.selected .payment-name {
    color: #0B8143;
}

/* Animation pour les icônes de succès/échec */
.success-icon, .error-icon {
    animation: fadeZoomIn 0.5s ease-out;
}

@keyframes fadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Style pour les téléphones */
@media (max-width: 576px) {
    .payment-icon {
        width: 50px;
        height: 50px;
    }
    
    .payment-name {
        font-size: 14px;
    }
    
    .payment-option-card {
        padding: 10px;
    }
}
.reservation-breakdown {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.reservation-breakdown hr {
    border-color: #dee2e6;
    margin: 8px 0;
}

.reservation-breakdown .fw-bold {
    font-size: 1.1em;
}
.payment-type-selection .payment-type-card {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.payment-type-selection .payment-type-card:hover {
    border-color: #0B8143;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-type-selection .payment-type-card.selected {
    border-color: #0B8143;
    background-color: rgba(11, 129, 67, 0.05);
}

.payment-type-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-type-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.payment-type-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #6c757d;
    font-size: 20px;
}

.payment-type-card.selected .payment-type-icon {
    color: #0B8143;
}

.payment-type-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.payment-type-card.selected .payment-type-name {
    color: #0B8143;
}

.payment-type-desc {
    font-size: 12px;
    color: #6c757d;
}

.avance-input-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}
.avance-input-section .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.avance-input-section .form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.avance-progress-container {
    margin-top: 10px;
}

.avance-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.avance-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #198754 0%, #ffc107 70%, #dc3545 90%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.avance-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.avance-min-label {
    color: #198754;
    font-weight: 500;
}

.avance-max-label {
    color: #dc3545;
    font-weight: 500;
}

.invalid-feedback {
    display: block !important;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.valid-feedback {
    display: block !important;
    color: #198754;
    font-size: 12px;
    margin-top: 5px;
}

/* Styles pour les sélections par défaut du modal de paiement */
.payment-option-card.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    position: relative;
}

.payment-option-card.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.payment-option-card.disabled .badge {
    z-index: 2;
}

/* Amélioration de la visibilité des sélections par défaut */
.payment-type-card.selected,
.payment-option-card.selected {
    border-color: #0B8143 !important;
    background-color: rgba(11, 129, 67, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(11, 129, 67, 0.2) !important;
}

.payment-type-card.selected .payment-type-icon,
.payment-type-card.selected .payment-type-name {
    color: #0B8143 !important;
}

/* Animation pour les sélections */
.payment-type-card,
.payment-option-card {
    transition: all 0.3s ease;
}

.payment-type-card:not(.disabled):hover,
.payment-option-card:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Styles pour l'état activé du bouton de confirmation */
#btnConfirmPayment:not(:disabled) {
    background-color: var(--primary);
    border-color: var(--primary);
}

#btnConfirmPayment:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

/* Animation de chargement */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Styles pour les messages d'état */
.payment-status {
    transition: all 0.3s ease;
}

.payment-status.active {
    display: block !important;
}

/* Amélioration de la lisibilité des prix */
.reservation-breakdown {
    font-size: 0.95rem;
}

.reservation-breakdown .fw-bold {
    font-size: 1.1rem;
    color: var(--primary) !important;
}
/* Popular Terrains Slider */
.popular-terrains-slider {
    position: relative;
    padding-bottom: 60px;
    padding-top: 20px;
    overflow: hidden;
}

.popular-terrains-slider .swiper-slide {
    height: auto;
}

.popular-terrains-slider .swiper-pagination {
    bottom: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.popular-terrains-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    opacity: 0.3;
    transition: all 0.3s ease;
    border-radius: 50%;
    margin: 0 6px;
}

.popular-terrains-slider .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
    background-color: var(--primary);
}

/* Navigation personnalisée avec design moderne */
.custom-swiper-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.popular-terrains-slider .swiper-button-next,
.popular-terrains-slider .swiper-button-prev {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(11, 129, 67, 0.3);
    pointer-events: auto;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.9;
}

.popular-terrains-slider .swiper-button-next::after,
.popular-terrains-slider .swiper-button-prev::after {
    content: none;
}

.popular-terrains-slider .swiper-button-prev {
    left: -25px;
    transform: translateY(-50%);
}

.popular-terrains-slider .swiper-button-next {
    right: -25px;
    transform: translateY(-50%);
}

.popular-terrains-slider .swiper-button-next:hover,
.popular-terrains-slider .swiper-button-prev:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(11, 129, 67, 0.4);
    opacity: 1;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* Animation des flèches */
.popular-terrains-slider .swiper-button-prev i,
.popular-terrains-slider .swiper-button-next i {
    transition: transform 0.3s ease;
}

.popular-terrains-slider .swiper-button-prev:hover i {
    transform: translateX(-2px);
}

.popular-terrains-slider .swiper-button-next:hover i {
    transform: translateX(2px);
}

/* États désactivés */
.popular-terrains-slider .swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.9);
}

.popular-terrains-slider .swiper-button-disabled:hover {
    transform: translateY(-50%) scale(0.9);
    box-shadow: 0 4px 15px rgba(11, 129, 67, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .popular-terrains-slider .swiper-button-prev {
        left: -20px;
    }
    
    .popular-terrains-slider .swiper-button-next {
        right: -20px;
    }
}

@media (max-width: 991px) {
    .popular-terrains-slider .swiper-button-prev {
        left: -15px;
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
    
    .popular-terrains-slider .swiper-button-next {
        right: -15px;
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .popular-terrains-slider .swiper-button-prev {
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 12px;
        background: rgba(11, 129, 67, 0.9);
        backdrop-filter: blur(10px);
    }
    
    .popular-terrains-slider .swiper-button-next {
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 12px;
        background: rgba(11, 129, 67, 0.9);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 576px) {
    .popular-terrains-slider {
        padding-bottom: 50px;
    }
    
    .popular-terrains-slider .swiper-button-prev,
    .popular-terrains-slider .swiper-button-next {
        width: 35px;
        height: 35px;
        font-size: 11px;
    }
}

/* Amélioration de l'espacement pour éviter la superposition */
.popular-terrains {
    padding: 100px 0;
    position: relative;
}

@media (min-width: 1200px) {
    .popular-terrains .container {
        padding-left: 80px;
        padding-right: 80px;
    }
}
/* Bouton de réservation principal */
.btn-reserve {
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    transition: all 0.3s ease;
    animation: pulse-reserve 2s infinite;
}

.btn-reserve:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 129, 67, 0.4);
    animation: none;
}

@keyframes pulse-reserve {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(11, 129, 67, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(11, 129, 67, 0.5);
    }
}

/* Zone de réservation rapide */
.quick-reservation-box {
    border: 2px solid var(--primary-light);
    animation: slideDown 0.4s ease-out;
}

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

/* Bouton flottant mobile */
.btn-floating-reserve {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(11, 129, 67, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.btn-floating-reserve:hover,
.btn-floating-reserve:focus {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(11, 129, 67, 0.6);
}

.btn-floating-reserve i {
    font-size: 24px;
    margin-bottom: 2px;
}

.btn-floating-text {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .btn-reserve {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .available-slots {
        gap: 8px;
    }
    
    .slot-item {
        width: 100%;
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .btn-floating-reserve {
        display: none;
    }
}
/* Boutons d'action améliorés */
.terrain-actions .row {
    margin: 0 -6px;
}

.terrain-actions .col-12,
.terrain-actions .col-md-6 {
    padding: 0 6px;
}

#btnFavorite,
#btnShare {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#btnFavorite::before,
#btnShare::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(11, 129, 67, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#btnFavorite:hover::before,
#btnShare:hover::before {
    width: 300px;
    height: 300px;
}

#btnFavorite i,
#btnShare i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

#btnFavorite:hover i {
    transform: scale(1.2);
}

#btnShare:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Actions de réservation */
.reservation-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid var(--primary);
    animation: slideInUp 0.4s ease-out;
}

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

#reserveSelectedSlot {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#reserveSelectedSlot::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

#reserveSelectedSlot:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(11, 129, 67, 0.3);
    padding-right: 45px;
}

#reserveSelectedSlot:hover::after {
    opacity: 1;
    right: 15px;
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
    #btnFavorite,
    #btnShare {
        font-size: 14px;
    }
    
    #reserveSelectedSlot {
        padding: 12px 20px;
        font-size: 15px;
    }
}
/* Container pour les actions flottantes sur mobile */
.floating-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

/* Masquer sur desktop */
@media (min-width: 992px) {
    .floating-actions {
        display: none;
    }
}

/* Styles de base pour les boutons d'action */
.floating-actions .btn-action {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.floating-actions .btn-action:active {
    transform: scale(0.95);
}

/* Bouton de réservation (principal) */
.floating-actions .btn-reserve-float {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 24px;
    width: 64px;
    height: 64px;
    animation: pulse-reserve 2s infinite;
}

.floating-actions .btn-reserve-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(11, 129, 67, 0.4);
}

/* Animation de pulsation pour le bouton de réservation */
@keyframes pulse-reserve {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(11, 129, 67, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(11, 129, 67, 0.5);
    }
}

/* Bouton de scroll (secondaire) */
.floating-actions .btn-scroll-float {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-actions .btn-scroll-float.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-actions .btn-scroll-float:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

/* Badge de notification optionnel */
.btn-action .badge-notification {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    
    .floating-actions .btn-reserve-float {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    
    .floating-actions .btn-action {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .floating-actions {
        bottom: 12px;
        right: 12px;
    }
    
    .floating-actions .btn-reserve-float {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .floating-actions .btn-action {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

/* Supprimer l'ancien bouton flottant si nécessaire */
.btn-floating-reserve {
    display: none !important;
}

/* Ajuster le bouton scroll to top principal pour desktop */
#scrollTopBtn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #096d37;
    transform: scale(1.1);
}

/* Masquer le bouton principal sur mobile */
@media (max-width: 991px) {
    #scrollTopBtn {
        display: none !important;
    }
}
/* Tooltip pour les boutons flottants */
.btn-action::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.btn-action::after {
    content: '';
    position: absolute;
    right: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.btn-action:hover::before,
.btn-action:hover::after {
    opacity: 1;
}