:root {
    --primary: #1dbcaa;
    --primary-dark: #179e8e;
    --secondary: #ff6b4a;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #fff;
    --text-color: #444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Roboto', sans-serif; */
    font-family: 'Inter var', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-decor {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 10px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    width: auto;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    font-weight: 500;
    font-size: 14px;
}

nav a:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: var(--primary);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    background-image: url('../images/bike-repair-hero.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero .container h1 a {
    font-style: normal;
    font-weight: 400;
    color: #fff;
    position: relative;
    z-index: 1;
    text-decoration: none;
}

.hero .container h1 a:hover::before {
    background: linear-gradient(to right top, #ff5862, #ff6d59, #ff7954, #ff8551) !important;
    height: 0;
    /* Start with no height */
    bottom: 0;
    /* Start from the bottom */
    transition: height 0.3s ease-in-out;
    /* Smooth transition effect */
    height: 100%;
    /* Fully covers the text from bottom to top */

}

.hero .container h1 a::before {
    content: '';
    /* Required for pseudo-element to appear */
    position: absolute;
    bottom: 0;
    /* Aligns it to the bottom for underline effect */
    left: 0;
    width: 100%;
    height: 8px;
    /* Reduced height to make it look like an underline */
    background: linear-gradient(to right top, #ff5862, #ff6d59, #ff7954, #ff8551) !important;
    z-index: -1;
    /* Places it behind the link text */
    border-radius: 4px;
    /* Optional: gives rounded edges */
}

.search-wrapper {
    padding: 0 9em;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 8px 8px;
    background: white;
    border-radius: 50px;
    position: relative;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.12);
}

.location-container {
    flex-grow: 1;
}

.location-container input[type="text"] {
    width: 100%;
}

/* Inputs dans la barre (type, date, etc.) */
.search-bar>input[type="text"],
.search-bar>input[type="date"],
.search-bar>select,
.location-container input[type="text"] {
    height: 50px;
    padding: 0 16px;
    font-size: 16px;
    border: 0;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.search-bar select {
    color: gray;
    padding-right: 16px;
    padding-left: 0px;
    width: auto;
}

.search-bar>input[type="date"]::-webkit-datetime-edit {
    color: gray;
}

.search-btn {
    background: linear-gradient(to right top, #FF5862, #FF6D59, #FF7954, #FF8551);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #ff5a36;
}


/* Diviseur vertical, laisse la couleur existante */
.divider {
    width: 1px;
    background-color: #e9e9e9;
}

/* Dropdown de résultats de localisation (s’étire comme l’input) */
.location-result-display {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: 280px;
    overflow: auto;
    border-radius: 12px;
}

/* Responsive : en mobile on empile tout, full width */
@media (max-width:780px) {
    .search-bar {
        gap: 10px
    }

    .divider {
        display: none
    }

    .search-btn {
        width: 100%
    }
}

.benefits {
    max-width: 1000px;
    margin: 60px auto;
    text-align: center;
}

.benefits h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit {
    padding: 10px;
}

.benefit p {
    font-size: .975rem;
}

.benefit h3 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(29, 188, 170, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

.icon-circle-booking {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
    background: url('../images/icons/booking.svg') no-repeat center center;
    background-size: 95px 95px;
}

.icon-circle-agenda {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
    background: url('../images/icons/agenda.svg') no-repeat center center;
    background-size: 95px 95px;
}

.icon-circle-qualification {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
    background: url('../images/icons/qualification.svg') no-repeat center center;
    background-size: 95px 95px;
}




/* Services Section */
.services {
    padding: 20px 0 60px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    font-size: 1.1rem;
    font-weight: 400;
}

.service-card {
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    color: var(--black);
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content {
    width: 100%;
    padding: 20px;
}

.service-card:hover .arrow-link {
    width: 120px;
}

.service-card:hover .arrow-link span {
    display: inline;
}

.city-card h3 {
    position: relative;
    z-index: 2;
}


.arrow-link {
    background: linear-gradient(to right top, #ff5862, #ff6d59, #ff7954, #ff8551);
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 36px;
    color: white;
    border-radius: 50px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    font-family: 20px;
}

.arrow-link span {
    font-size: 0.8rem;
    display: none;
    transition: opacity 3s ease-in;
}



.location-finder {
    text-align: center;
}

.location-finder h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.location-finder p {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #777;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 15px;
}

.city-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.city-card:hover {
    transform: scale(1.03);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;

    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.service-head .dark {
    font-size: 1.8rem;
    color: #4d4d4d;
    font-weight: 600
}



/* For Pros Section */
.for-pros {
    padding: 60px 0;
    text-align: center;
    background-color: #F0FDFB;
}

.for-pros h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.for-pros>.container>p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #777;
}

.pros-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.pro-card {
    height: 200px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding: 30px;
    background-size: cover;
    background-position: center;
}

.partout {
    background-color: #F57F7F;
}

.experts {
    background-color: #F4A774;
}

.pro-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.pros-cards-decor {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 2 cards + 3 decor blocks */
    margin-bottom: 40px;
    align-items: center;
    margin-top: 30px;
}

.pro-card-decor {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    height: 300px
}

.pro-card-decor h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.decor {
    height: 300px;
    background-size: cover;
}

/* Individual background images */
.decor-left {
    background-image: url('../images/home-7.webp');
    background-position: center center;
}

.decor-middle {
    background-image: url('../images/junglebikepro_2.webp');
    background-position: center center;
}

.decor-right {
    background-image: url('../images/junglebikepro_3.webp');
    background-position: center center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.join-network {
    margin-top: 40px;
}

.join-network h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 400;
}

.join-network p {
    color: #444;
    margin-bottom: 20px;
}

.outline-btn {
    border: 1px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    font-weight: normal;
}

.outline-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Values Section */
.values {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.values-container {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.values h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 50px;
}

.value {
    text-align: center;
}

.value-icon {
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-icon-confidence {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
    background: url('../images/icons/confidence.svg') no-repeat center center;
    background-size: 95px 95px;
}

.value-icon-exigence {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
    background: url('../images/icons/exigence.svg') no-repeat center center;
    background-size: 95px 95px;
}

.value-icon-goodwill {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
    background: url('../images/icons/goodwill.svg') no-repeat center center;
    background-size: 95px 95px;
}

.value-icon-freedom {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
    background: url('../images/icons/freedom.svg') no-repeat center center;
    background-size: 95px 95px;
}

.value-icon-availability {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 1.5rem;
    background: url('../images/icons/availability.svg') no-repeat center center;
    background-size: 95px 95px;
}

.value h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.value p {
    font-size: 0.975rem;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0 30px;
    font-size: 0.875rem
}

.footer-intro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    margin-bottom: 30px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}


.footer-col a:hover {
    text-decoration: underline;
}

.newsletter {
    margin-bottom: 30px;
}

.newsletter p {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 3px 0 0 3px;
    outline: none;
}

.subscribe-btn {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.social-media {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.social-media a {
    margin: 0 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-media a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {

    .header-container {
        overflow: hidden;
    }

    .search-bar select,
    .search-bar input {
        background-color: #f5f5f5;
        margin-bottom: 10px;
        border-radius: 50px !important;
        height: 60px !important;
        padding: 20px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    .search-bar select {
        padding: 12px;
    }

    .search-wrapper {
        padding: 0 12px;
    }

    .pros-cards-decor {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .benefits-grid,
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .cities-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(6, 200px) !important;
    }
}

@media (max-width: 768px) {
    .search-bar {
        flex-direction: column;
        border-radius: 15px;
        padding: 20px 20px;
    }

    .divider {
        display: none;
    }

    .service-cards,
    .pros-cards,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {

    .benefits-grid,
    .values-grid,
    .cities-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }
}