/* 
   AutoRent - CSS Principal
   Une landing page de location de véhicules inspirée par Europcar
*/

/* ===== Variables et Reset ===== */
:root {
    --primary-color: #ffc111;
    --secondary-color: #00a651;
    --light-color: #ffffff;
    --dark-color: #333333;
    --gray-color: #f5f5f5;
    --text-color: #555555;
    --border-color: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section-title h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 18px;
    color: var(--text-color);
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-search {
    background-color: var(--secondary-color);
    color: var(--light-color);
    width: 100%;
    font-size: 18px;
    padding: 15px 30px;
    margin-top: 15px;
}

.btn-search:hover {
    background-color: #008a44;
    color: var(--light-color);
}

.btn-reserve {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 100%;
    margin-top: 10px;
}

.btn-reserve:hover {
    background-color: #004e83;
    color: var(--light-color);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

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

.btn-subscribe {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-subscribe:hover {
    background-color: #008a44;
    color: var(--light-color);
}

/* ===== Header ===== */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 5px;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
     color: #fff;
    background-color: var(--primary-color);
}
.nav-link:hover{
   color: #fff;
    background-color: var(--primary-color);
	opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 2s;
}

.fade-in {
	opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 2s;
}
 .nav-link.active {
    color: #fff;
	 background-color: var(--primary-color);
  }
.btn-login {
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
    border-radius: 5px;
}

.btn-signup {
    background-color: var(--primary-color);
    color: var(--light-color) !important;
    border-radius: 5px;
}

.btn-login:hover {
    background-color: rgba(0, 98, 164, 0.1);
}

.btn-signup:hover {
    background-color: #004e83;
}

/* ===== Hero Section ===== */
#hero {
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    /*background-position: center;*/
    padding: 120px 0;
    position: relative;
    color: var(--light-color);
}

#hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#hero .container {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

#hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.booking-engine {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.booking-engine h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 12px 15px;
    width: 100%;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 98, 164, 0.2);
}

.return-check {
    margin-bottom: 15px;
}

/* ===== Advantages Section ===== */
#advantages {
    background-color: var(--gray-color);
    text-align: center;
}

.advantage-item {
    padding: 30px 20px;
    margin-bottom: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-item h4 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.advantage-item p {
    color: var(--text-color);
}

/* ===== Fleet Section ===== */
.car-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-image {
    height: 200px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.car-details {
    padding: 20px;
}

.car-details h4 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.car-details ul {
    margin-bottom: 15px;
}

.car-details ul li {
    padding: 5px 0;
    color: var(--text-color);
}

.car-details ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 16px;
}

.car-price {
    margin-bottom: 15px;
}

.car-price span {
    display: block;
    font-size: 14px;
    color: var(--text-color);
}

.car-price h5 {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: 700;
}

.car-price h5 small {
    font-size: 16px;
    font-weight: 400;
}

/* ===== Why Us Section ===== */
#why-us {
    background-color: var(--gray-color);
}

.testimonial {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    height: 100%;
}

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

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

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

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author h5 {
    margin-bottom: 0;
    color: var(--dark-color);
    font-weight: 600;
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-color);
}

.trust-badges {
    margin-top: 50px;
}

.trust-badge {
    text-align: center;
    margin-bottom: 30px;
}

.trust-badge img {
    height: 60px;
    margin-bottom: 10px;
}

.trust-badge span {
    display: block;
    font-weight: 500;
}

/* ===== Services Section ===== */
.service-item {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    height: 100%;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    flex: 0 0 70px;
    height: 70px;
    background-color: rgba(0, 98, 164, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-content {
    flex: 1;
}

.service-content h4 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.service-content p {
    margin-bottom: 10px;
}

.price {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

/* ===== FAQ Section ===== */
#faq .accordion-item {
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

#faq .accordion-button {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 20px 25px;
}

#faq .accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: none;
}

#faq .accordion-body {
    padding: 20px 25px;
    background-color: var(--light-color);
}

.more-questions {
    text-align: center;
    margin-top: 30px;
}

.more-questions p {
    margin-bottom: 15px;
    font-weight: 500;
}

/* ===== Newsletter Section ===== */
#newsletter {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.newsletter-content {
    color: var(--light-color);
}

.newsletter-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 0;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-form .form-control {
    height: 54px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* ===== Footer ===== */
footer {
    background-color: #0a1426;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-top {
    margin-bottom: 60px;
}

.footer-info {
    margin-bottom: 30px;
}

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

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

.footer-logo span {
    color: var(--light-color);
    font-weight: 700;
    font-size: 24px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--light-color);
}

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

.footer-links {
    margin-bottom: 30px;
}

.footer-links h4 {
    color: var(--light-color);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 0;
}

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

.footer-links ul li a:hover {
    color: var(--light-color);
    padding-left: 5px;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact h4 {
    color: var(--light-color);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-contact h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 0;
}

.footer-contact p {
    margin-bottom: 15px;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 14px;
}

.payment-methods {
    text-align: right;
    font-size: 14px;
}

.payment-methods span {
    margin-right: 10px;
}

.payment-methods img {
    height: 25px;
}

/* Styles pour le carousel média sticky */
.media-carousel-container {
    position: fixed;
    right: 0;
    top:30%;
    transform: translateY(-50%);
    width: 300px;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.media-carousel-container.collapsed {
    transform: translateY(-50%) translateX(calc(100% - 0px));
}

.media-carousel-container.collapsed .media-carousel-toggle-wrapper {
    left: -30px;
}

.media-carousel-container.js-loaded {
    transition: transform 0.4s ease;
}

.media-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--primary-color);
    border-radius: 8px 0 0 0;
}

.media-carousel-header h5 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.media-carousel-toggle-wrapper {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    width: 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.media-carousel-toggle {
    font-size: 16px;
    padding: 8px 12px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10001;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.media-carousel-container.collapsed .media-carousel-toggle i {
    transform: rotate(180deg);
}

#mediaCarousel {
    max-height: 400px;
}

#mediaCarousel .carousel-item {
    height: 220px;
    background-color: #000;
    overflow: hidden;
}

#mediaCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
}

#mediaCarousel .carousel-caption {
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    left: 0;
    right: 0;
    bottom: 0;
}

#mediaCarousel .carousel-caption p {
    font-size: 14px;
    margin: 0;
}
