:root {
    --primary: #0B8143; /* Vert GoSport */
    --secondary: #ffc107; /* Jaune GoSport */
    --dark: #333333;
    --light: #f8f9fa;
    --white: #ffffff;
}

/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
}

/* Styles pour la navbar */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar-brand h1 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Styles pour les boutons de connexion/inscription */
.btn-login {
    color: var(--primary);
    background-color: transparent;
    border: 1px solid var(--primary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

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

.btn-register {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid var(--primary);
    transition: all 0.3s;
}

.btn-register:hover {
    background-color: #096d37; /* Darker shade */
    color: var(--white);
    border-color: #096d37;
}

/* Styles pour le dropdown utilisateur connecté */
.dropdown-toggle::after {
    margin-left: 8px;
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    min-width: 200px;
}

.dropdown-item {
    padding: 10px 16px;
    transition: background-color 0.2s ease;
    color: var(--dark);
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
}

.dropdown-item.text-danger {
    color: #dc3545 !important;
}

.dropdown-item.text-danger:hover {
    background-color: #f8d7da;
    color: #721c24 !important;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Styles responsives pour la navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .nav-buttons {
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

/* Badge de notification (optionnel pour les réservations en attente) */
.nav-link .badge {
    font-size: 0.7em;
    margin-left: 4px;
    vertical-align: top;
}

/* Avatar utilisateur dans la navbar */
.navbar .rounded-circle {
    border: 2px solid var(--primary);
    transition: border-color 0.3s;
}

.navbar .dropdown-toggle:hover .rounded-circle {
    border-color: #096d37;
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/02.png') center/cover no-repeat;
    color: var(--white);
    padding: 100px 0;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.search-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
}

.search-button {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    padding: 12px 0;
    border: none;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #096d37;
}

/* Features */
.features {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-card {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background-color: rgba(11, 129, 67, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Advantages */
.advantages {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.nav-tabs {
    justify-content: center;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 40px;
}

.nav-tabs .nav-link {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    border: none;
    border-bottom: 3px solid transparent;
    margin: 0 10px;
    transition: all 0.3s;
}

.nav-tabs .nav-link.active, 
.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: transparent;
}

.advantage-card {
    display: flex;
    padding: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.advantage-icon {
    min-width: 60px;
    height: 60px;
    background-color: rgba(11, 129, 67, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 20px;
    font-size: 24px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/02.jpg') center/cover no-repeat;
    padding: 100px 0;
    color: var(--white);
}

.btn-cta {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

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

.btn-user:hover {
    background-color: #096d37;
    color: var(--white);
}

.btn-manager {
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
}

.btn-manager:hover {
    background-color: #e0a800;
    color: var(--dark);
}

/* Terrains populaires */
.popular-terrains {
    padding: 80px 0;
}

.terrain-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}

.terrain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

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

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

.terrain-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.terrain-details {
    padding: 20px;
}

.terrain-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.terrain-location {
    display: flex;
    align-items: center;
    color: #6c757d;
    margin-bottom: 10px;
    font-size: 14px;
}

.terrain-location i {
    margin-right: 5px;
    color: var(--primary);
}

.terrain-feature {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
    margin-right: 15px;
}

.terrain-feature i {
    margin-right: 5px;
    color: var(--primary);
}

.terrain-rating {
    margin-bottom: 15px;
}

.terrain-rating i {
    color: var(--secondary);
}

.rating-count {
    color: #6c757d;
    font-size: 14px;
    margin-left: 5px;
}

.price {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
}

.btn-terrain {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-terrain:hover {
    background-color: #096d37;
    color: var(--white);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    height: 100%;
}

.testimonial-quote {
    font-size: 3rem;
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(11, 129, 67, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    color: #6c757d;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

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

/* How it works */
.how-it-works {
    padding: 80px 0;
}

.step {
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -30px;
    width: 60px;
    height: 2px;
    background-color: var(--primary);
    display: none;
}

@media (min-width: 768px) {
    .step:not(:last-child)::after {
        display: block;
    }
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    color: var(--primary);
    background-color: rgba(11, 129, 67, 0.1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(11, 129, 67, 0.25);
}

/* App Download Section */
.app-download {
    background-color: var(--primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.app-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/02.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.app-store-btn {
    display: inline-block;
    background-color: var(--dark);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.app-store-btn:hover {
    opacity: 0.9;
    color: var(--white);
}

.app-icon {
    font-size: 30px;
    margin-right: 10px;
}

.app-phone-img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.app-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--secondary);
    color: var(--dark);
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 50px;
    transform: rotate(15deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Partners section */
.partner-logo {
    max-width: 80%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 24px;
    margin: 0;
}

.footer-about p {
    margin-bottom: 20px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
}

.footer-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #b3b3b3;
    font-size: 14px;
}

.footer-contact i {
    min-width: 30px;
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #b3b3b3;
}

/* Scroll to top button */
#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: background-color 0.3s;
}

#scrollTopBtn:hover {
    background-color: #096d37;
}

/* Countdown Banner */
.countdown-banner {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
}

.countdown-timer {
    margin: 0 10px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.timer-box {
    background-color: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 4px;
}

.promotion-btn {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 10px;
    font-weight: bold;
}

.promotion-btn:hover {
    background-color: #e0a800;
    color: var(--dark);
}

/* Styles pour les pages de compte */
.page-title-section {
    background: linear-gradient(135deg, var(--primary) 0%, #096d37 100%);
    color: var(--white);
    /*padding: 2rem 0;*/
    margin-bottom: 2rem;
}

.page-title-bg {
    position: relative;
}

.page-title-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.search-counter {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Cards pour les sections de compte */
.info-box {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.info-box h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(11, 129, 67, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Styles pour les statistiques de compte */
.stats-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

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

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.5s ease-out;
}

/* Custom responsive adjustments */
@media (max-width: 767.98px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .cta-section h3 {
        font-size: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .page-title-section {
        padding: 1.5rem 0;
    }
    
    .info-box {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}