/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

@font-face {
    font-family: rs_icon;
    src: url('rs_icon.ttf');
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
    color: #333;
}

header {
    background: url('header-image.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    position: relative;
    animation: fadeIn 1s ease-out forwards;
    overflow: hidden;
    transition: background-size 0.5s ease-in-out;
}

header h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 3em; /* Augmente la taille de la police du titre */
    animation: fadeIn 1s ease-out 0.5s forwards;
}

header p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.5em; /* Augmente la taille de la police du paragraphe */
    margin-top: 20px;
    animation: fadeIn 1s ease-out 0.5s forwards;
}


.scrolled {
    background-size: 110%; /* Zoom effect when the page is scrolled */
}



nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #F2EEE1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.2s forwards;
}

nav .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #111;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    transition: background-color 0.3s ease-in-out;
    border-radius: 4px;
}

nav ul li a:hover {
    color: #fff;
    background-color: #395390;
}

section {
    padding: 30px 15%;
    text-align: center;
    background: #fff;
    margin-top: 10px; /* Réduire la marge supérieure */
}

#about, #team, #benefits, #clients, #bikes-carousel {
    animation: fadeIn 1s ease-out;
    margin-bottom: 10px; /* Réduire la marge inférieure */
}


#team {
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#team h2 {
    width: 100%;
    margin-bottom: 40px;
}

#team div {
    flex: 1 1 300px;
    margin: 10px;
    text-align: center;
    animation: fadeIn 1s ease-out;
    transition: transform 0.3s;
}

#team div:hover {
    transform: translateY(-10px);
}

#team img {
    border-radius: 20px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

footer {
    background: #f2EEE1;
    color: #111;
    text-align: center;
    padding: 15px 0;
    margin-top: 0;
    animation: fadeIn 1s ease-out;

}

footer a {
    font-size: 30px;
    font-family: rs_icon;
    text-decoration: none;
}

form {
    display: grid;
    grid-gap: 15px;
    max-width: 600px;
    margin: auto;
    text-align: left;
}

form label {
    font-weight: bold;
    color: #333;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1em;
    background-color: #f9fafb;
    transition: border-color 0.3s ease;
    outline: none;
}

form input:focus, form textarea:focus {
    border-color: #48a999;
}

form button {
    padding: 10px;
    background: #48a999;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #3b8f86;
}


#clients ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out;
}

#clients ul li {
    margin: 15px;
    transition: transform 0.3s;
}

#clients ul li:hover {
    transform: translateY(-5px);
}

#clients ul li img {
    width: 120px;
    height: auto;
    display: block;
}

#bikes-carousel {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
}

#bikes-carousel h2 {
    margin-bottom: 30px;
}



.bike {
    min-width: 300px;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #f9fafb;
    text-align: center;
}

.bike img {
    max-width: 100%;
    border-radius: 8px;
}

.bike h3 {
    margin: 15px 0 5px;
}

.bike p {
    margin: 5px 0;
}

.bike button {
    margin-top: 10px;
    padding: 10px;
    color: #fff;
    background-color: #48a999;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.bike button:hover {
    background-color: #3b8f86;
}

.carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(72, 169, 153, 0.8);
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.prev:hover, .next:hover {
    background-color: #3b8f86;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.popup-content {
    background-color: #fff;
    padding: 0; /* Remove padding to allow image to touch the sides */
    border-radius: 8px;
    width: 400px; /* Increased width for more content space */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: auto;
    display: block;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
}

.popup-content h3, .popup-content p {
    margin: 20px;
}

.hidden {
    display: none;
}


