/* styles_rsv_page2.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* =============== VARIABLES =============== */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #ff6b4a;
    --dark-color: #222;
    --light-color: #f8f8f8;
    --gray-color: #777;
    --light-gray: #eee;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-primary: 'Montserrat', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* =============== BASE STYLES =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.25rem;
}

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

a:hover {
    color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============== NAVBAR CORRIGÉE =============== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 2rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links ul {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.langue {
    padding: 0.5rem 1rem;
    width: auto;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    background-color: white;
    font-family: var(--font-secondary);
    cursor: pointer;
    margin-left: 1rem;
}

/* Menu Hamburger */
.menu-hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
    padding: 0;
    transition: var(--transition);
}

.menu-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
    border-radius: 3px;
}

.menu-hamburger span:nth-child(1) {
    top: 0;
    transform-origin: left center;
}

.menu-hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.menu-hamburger span:nth-child(3) {
    bottom: 0;
    transform-origin: left center;
}

/* Animation du menu hamburger */
.menu-hamburger.active {
    transform: rotate(90deg);
}

.menu-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -3px);
    width: 110%;
}

.menu-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 3px);
    width: 110%;
}

/* Menu mobile */
.nav-links.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.nav-links.mobile-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
}

.nav-links.mobile-menu a {
    color: var(--dark-color);
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
    display: block;
    text-align: center;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links.mobile-menu a:hover,
.nav-links.mobile-menu a.active {
    background-color: rgba(74, 107, 255, 0.1);
    color: var(--primary-color);
}

.nav-links.mobile-menu a::after {
    display: none;
}

/* Bouton CTA dans le menu mobile */
.nav-links.mobile-menu .cta-button {
    background-color: var(--primary-color);
    color: white !important;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.nav-links.mobile-menu .cta-button:hover {
    background-color: #3a5ae8;
}


/* =============== HEADER SECTION =============== */
#header {
    padding: 180px 0 80px;
    background: 
        linear-gradient(135deg, rgba(0, 57, 115, 0.85) 0%, rgba(229, 0, 126, 0.85) 100%),
        url('Image/pexels-joan-costa-13800612.jpg') no-repeat center center/cover;
    color: white;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-top: 70px;
}

#header .card {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

#header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

#header h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* =============== RESERVATION FORM =============== */
#reservation {
    padding: 80px 20px;
    background-color: var(--light-color);
}

.reservation-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.formulaire {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.formulaire h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    position: relative;
}

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

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.cardtypetransfert, 
.cardtransfert, 
.cardclient, 
.cardtotal {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e1e1e1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cardtypetransfert:hover, 
.cardtransfert:hover, 
.cardclient:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Titres centrés */
.soustitre1, 
.soustitre2, 
.soustitre3, 
.soustitre4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.soustitre1::after,
.soustitre2::after,
.soustitre3::after,
.soustitre4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Conteneur pour les éléments */
.form-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Boutons radio */
.typetransfert {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.typetransfert input[type="radio"] {
    display: none;
}

.typetransfert label {
    padding: 14px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    color: var(--primary-color);
    text-align: center;
    min-width: 150px;
}

.typetransfert input[type="radio"]:checked + label,
.typetransfert label:hover {
    background: var(--primary-color);
    color: white;
}

/* Champs de formulaire */
select, 
input, 
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s;
    margin-bottom: 1.2rem;
    font-family: var(--font-primary);
}

select:focus, 
input:focus, 
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
    outline: none;
}

textarea {
    min-height: 100px;
    resize: vertical;
    text-align: left;
    padding: 15px;
}

/* Grille pour les champs */
.double-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.time-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

/* Section Prix Total */
.prixetpaiement {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cardtotal {
    text-align: center;
    width: 100%;
    max-width: 600px;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
}

#totalPrice {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Boutons */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0;
}

.reservation-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    width: 100%;
}

.reservation-btn:hover {
    background: #3a5ae8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 90, 232, 0.3);
}

#cashPaymentBtn {
    background: var(--success-color);
}

#cashPaymentBtn:hover {
    background: #218838;
}

/* PayPal */
#paypal-button-container {
    margin: 2rem auto 0;
    width: 100%;
    max-width: 400px;
}

/* =============== CTA SECTION =============== */
.faq-cta {
    padding: 120px 0;
    background: 
        linear-gradient(135deg, rgba(0, 57, 115, 0.9) 0%, rgba(229, 0, 126, 0.9) 100%),
        url('Image/chauffeuretclient.webp') no-repeat center center/cover;
    color: white;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.cta-button:hover {
    background-color: #3a5ae8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 107, 255, 0.2);
}

/* =============== FOOTER =============== */
.footer-section {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item svg {
    min-width: 20px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

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

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

.footer-badge {
    margin-top: 2rem;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.legal-links a:hover {
    color: white;
}

/* =============== MEDIA QUERIES =============== */
@media (max-width: 992px) {
    #header {
        padding: 150px 20px 80px;
    }
    
    #header h1 {
        font-size: 2.5rem;
    }
    
    #header h2 {
        font-size: 1.5rem;
    }
    
    .formulaire {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links:not(.mobile-menu) {
        display: none;
    }
    
    .menu-hamburger {
        display: block;
    }
    
    .langue {
        margin-left: auto;
        margin-right: 1rem;
        padding: 0.4rem 1.5rem 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    #header {
        padding: 120px 0 60px;
    }
    
    #header .card {
        padding: 30px 20px;
    }
    
    #header h1 {
        font-size: 2.2rem;
    }
    
    #header h2 {
        font-size: 1.3rem;
    }
    
    .formulaire {
        padding: 2rem;
    }
    
    .cardtypetransfert, 
    .cardtransfert, 
    .cardclient {
        padding: 2rem 1.5rem;
    }
    
    .typetransfert {
        flex-direction: column;
        gap: 1rem;
    }
    
    .typetransfert label {
        width: 100%;
    }
    
    .double-row {
        grid-template-columns: 1fr;
    }
    
    .faq-cta {
        padding: 80px 0;
    }
    
    .cta-content {
        padding: 40px 20px;
        margin: 0 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .langue {
        padding: 0.4rem 1.8rem 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    #header h1 {
        font-size: 1.8rem;
    }
    
    #header h2 {
        font-size: 1.1rem;
    }
    
    .formulaire {
        padding: 1.5rem;
    }
    
    .cardtypetransfert, 
    .cardtransfert, 
    .cardclient, 
    .cardtotal {
        padding: 1.5rem 1rem;
    }
    
    .soustitre1, 
    .soustitre2, 
    .soustitre3, 
    .soustitre4 {
        font-size: 1.3rem;
    }
    
    .reservation-btn {
        padding: 16px;
        font-size: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
    }
}