/* ------------------------------
   Global Styles
--------------------------------*/
:root {
    --bg: #f7f8fa;
    --paper: #fbf7ea; /* sections claires */
    --ink: #24332f; /* texte principal */
    --muted: #6b7a75; /* texte secondaire */
    --green: #0d6059; /* vert foncé */
    --green-2: #0e6c64; /* dégradé */
    --gold: #e0b56c; /* bouton */
    --ring: #dcd6c3; /* bordures soft */
    --accent: #ff9f2e;
    --shadow: 0 14px 30px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.05);
    --r: 20px;
    --r-lg: 26px;
    --primary: #069398;
    --primary-700: #346E68;
    --search-bg: var(--bg);
}

*, *:before, *:after {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1 {
    margin: 0 0 .5rem;
    color: var(--primary-700);
}

h3 {
    margin: 0 0 .5rem;
    color: #3f4645;
}

h2 {
    text-align: center;
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 700;
    margin-top: 10px;
    color: var(--primary-700);
}

p {
    margin: .25rem 0
}

.container {
    width: min(1100px,92%);
    margin-inline: auto
}

.info-link {
    background: none;
    border: none;
    color: #069398;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: color 0.2s ease;
}

.info-link:hover {
    color: #046d60;
    text-decoration: none;
}

/* ------------------------------
   MODAL Popup Styles
--------------------------------*/

/* ---- MODAL ---- */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 28px 34px;
    border-radius: 16px;
    width: min(90%, 480px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.35s ease-out;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #000;
}

/* Animation douce d’apparition */
@keyframes slideUp {
    from {
        transform: translateY(25px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ------------------------------
   HERO Banner
--------------------------------*/
.hero-content {
    position: relative;
    color: #fff;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.2rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

/* ------------------------------
   HERO Search Box
--------------------------------*/
.hero {
    position: relative;
    width: 100%;
    min-height: 500px; /* ajuste comme tu veux la hauteur de la section */
    border-bottom: 1px solid #eadfca;
    color: #5f4b3a;
    background-image: url('/images/aeroport_hero.jpg');
    background-size: 100% 100%; /* étire l’image en largeur ET hauteur */
    background-position: center;
    background-repeat: no-repeat;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

.hero h1 {
    margin-top: 100px;
    text-align: center;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(28px, 5vw, 44px);
}

.hero h2 {
    color: whitesmoke;
}

.hero p {
    text-align: center;
    color: #6f5a4b;
    font-size: clamp(18px, 2.8vw, 24px);
    font-weight: 500;
}

/* SEARCH qui dépasse le hero */
.hero .search {
    position: absolute;
    left: 50%;
    bottom: -125px;
    transform: translateX(-50%);
    width: min(720px, 92%);
    background: var(--search-bg);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0,0,0,.12);
    padding: 18px;
    display: grid;
    gap: 14px;
    z-index: 9999; /* <-- important : place la recherche au-dessus */
    pointer-events: auto; /* s'assure que la zone capte bien les clics */
}

@media (max-width: 768px) {
    .hero {
        min-height: 400px; /* hauteur plus petite sur mobile */

        background-image: url('/images/aeroport_hero_mobile.jpg'); /* image mobile */
        background-size: cover; /* garde proportions */
        background-position: center top; /* ajuste le focus si nécessaire */
    }

    .hero h1 {
        margin-top: 20px;
    }

    .hero .search {
        bottom: -350px;
        width: 90%;
    }
}

.grid {
    display: grid;
    gap: 10px 12px
}

@media(min-width:720px) {
    .grid {
        grid-template-columns: 1fr 1fr 1fr;
        align-items: end
    }

    .span-2 {
        grid-column: span 2
    }
}

.search label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--primary-700);
    margin: 6px 0 6px;
    /* text-transform: uppercase; */
    opacity: 0.9;
    transition: color 0.2s ease, transform 0.2s ease;
    text-align: left;
}

/* Effet subtil au survol du champ associé */
.search .field:focus-within label,
.search label:hover {
    color: orange; /* accent moderne turquoise / menthe */
    transform: translateY(-1px);
}

.field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    cursor: text; /* indique clairement qu'on peut interagir avec le champ */
}

.field input, .field select {
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    color: var(--primary-700);
    font-size: 15px
}

.field input::placeholder {
    color: #cfe8e3
}

.actions {
    display: flex;
    justify-content: center;
    margin-top: 10px
}

.btn {
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.4px;
    margin-top: 18px;
    padding: 14px 34px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
}

/* Effet au survol */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #ffe2a9 0%, #eac075 100%);
}

/* Effet au clic */
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) inset;
}

/* Accessibilité et focus clavier */
.btn:focus-visible {
    outline: 3px solid #00dbc2;
    outline-offset: 3px;
}

.text-danger {
    color: #dc3545;
    font-size: 0.9rem;
}

/* ------------------------------
   Étapes Section
--------------------------------*/
.steps {
    padding: 200px 0 6px;
    margin-bottom: 35px;
}

.steps .line {
    height: 1px;
    background: #e7dfcb;
    margin: 12px 0 26px
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    text-align: center
}

@media(max-width:860px) {
    .steps {
        padding-top: 380px;
    }

    .steps-list {
        grid-template-columns: repeat(2,1fr)
    }
}

.step {
    color: var(--muted);
    font-size: .97rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center
}

.step img {
    width: 48px;
    height: 48px;
    fill: #0f615a;
    padding: 10px;
    background: #eaf3ef;
    border-radius: 12px;
}

/* ------------------------------
   Offers Section
--------------------------------*/
.offers-section {
    background-color: #f8f8f8;
    padding: 3rem 1rem;
}

.offers-heading {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #333;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.offer-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    width: 260px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.offer-card:hover {
    transform: translateY(-4px);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.logo {
    max-height: 40px;
    max-width: 150px;
}

.premium-badge {
    background-color: #ffcc00;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 0.9rem;
    margin: -0.7em;
    max-width: 6em;
}

.premium-badge img {
    width: 14px;
    margin-bottom: 2px;
}

.offer-body {
    margin-top: 0.8rem;
    padding: 1rem;
}

.offer-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stars {
    color: #ffc107;
}

.services {
    font-size: 0.85rem;
    color: #555;
}

.services p {
    margin: 0.3rem 0;
}

.alert-text {
    color: #d9534f;
    margin: 0.6rem 0;
    font-weight: 700;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 0.5rem;
    gap: 1rem;
}

.price-left {
    display: flex;
    flex-direction: column;
}

.price-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-right .days {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.price-row .btn-yellow {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
}

.new-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
}

.days {
    font-size: 0.8rem;
    color: #555;
}

.btn-yellow {
    background-color: #ffcc00;
    border: none;
    color: #222;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-yellow:hover {
    background-color: #f0ba00;
}

/* ------------------------------
   Avis Clients
--------------------------------*/

.testimonial h2 {
    text-align: center;
    margin: 14px 0;
    font-size: clamp(28px, 4vw, 40px);
    color: var(--primary-700);
}

.carousel {
    padding: 50px;
    position: relative;
    background: linear-gradient(180deg, var(--green) 0%, var(--green-2) 100%);
    height: 340px; /* Hauteur fixe du carrousel */
    overflow: hidden; /* Empêche tout dépassement d’item */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%; /* Remplit la hauteur du carrousel */
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Chaque slide occupe toute la hauteur */
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}

/* ----------- FLEX UTILS ----------- */

.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-content-center {
    justify-content: center;
}

.gap-4 {
    gap: 1.5rem;
}

/* ----------- SPACING UTILS ----------- */

.mb-2 {
    margin-bottom: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

/* ----------- TEXT UTILS ----------- */

.text-center {
    text-align: center;
}

.text-warning {
    color: #ffc107;
}

.text-secondary {
    color: #6c757d;
    font-weight: 700;
    font-size: medium;
}

.text-muted {
    color: #6c757d;
}

.fst-italic {
    font-style: italic;
}

/* ----------- BACKGROUND & BORDER ----------- */

.bg-white {
    background-color: #fff;
}

.rounded-4 {
    border-radius: 1rem;
}

/* ----------- SHADOW ----------- */

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

/* ----------- TRANSITIONS ----------- */

@keyframes carouselFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.carousel-item.fade {
    animation: carouselFade 0.8s ease-in-out;
}

/* ----------- CONTENU INTERNE ----------- */

/* Les cartes ne dépassent jamais la hauteur max visible */
.carousel-item .p-3 {
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Texte coupé proprement si trop long */
.carousel-item p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* ----------- RESPONSIVE ----------- */
@media (max-width: 768px) {
    .carousel {
        height: auto; /* s’adapte au contenu */
        padding: 30px 20px;
    }

    .carousel-item {
        height: auto;
        align-items: flex-start;
    }

    .carousel-item .p-3 {
        max-height: none;
    }
}


/* ------------------------------
   Parking Site Page 
--------------------------------*/
.parking-hero {
    position: relative;
    background: linear-gradient( 180deg, rgba(6, 147, 152, 0.45) 0%, /* turquoise léger en haut */
    rgba(0, 212, 170, 0.35) 100% /* vert menthe doux en bas */
    ), url('/images/official-valet/hero.jpg') center center / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 120px 20px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Meilleure lisibilité du texte sans trop d’effet */
.parking-hero h1,
.parking-hero p {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}


@media (max-width: 768px) {
    .parking-hero {
        background-image: url('/images/official-valet/hero-mobile.jpg');
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
    }
}

.parking-hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    margin-bottom: 10px;
}

.parking-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Booking box */
.parking-booking {
    background: #fff;
    max-width: 820px;
    margin: -60px auto 50px;
    padding: 32px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.parking-booking form {
    display: grid;
    gap: 18px;
}

.parking-booking label {
    font-weight: 600;
    color: var(--primary-700);
    margin-bottom: 4px;
    display: block;
}

.parking-booking input[type="datetime-local"] {
    width: 100%;
    border: 1px solid var(--ring);
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
    color: var(--ink);
}

.parking-booking button {
    background: var(--gold);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 14px 26px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.parking-booking button:hover {
    background: #d8a750;
    transform: translateY(-2px);
}

/* Booking box améliorée (inspirée du visuel fourni) */
.booking-form {
    background: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.form-field label {
    display: block;
    font-weight: 600;
    color: var(--primary-700);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.form-field input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color 0.2s ease;
}

.form-field input:focus {
    border-color: var(--primary);
    outline: none;
}

/* Map intégrée */
.booking-map {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.booking-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-address {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-700);
}

/* Responsive */
@media (max-width: 768px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .booking-map {
        height: 200px;
    }
}


/* ------------------------------
   Parking Features Section Enhanced
--------------------------------*/
/* --- Company Title Modern Style --- */
.parking-company-name {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 30px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(90deg, #069398 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    animation: fadeSlideIn 0.9s ease-out both;
}

.company-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

/* Animation subtile d’apparition */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery */
.parking-gallery {
    max-width: 1100px;
    margin: 60px auto;
    text-align: center;
}

.parking-gallery h2 {
    margin-bottom: 20px;
    color: var(--primary-700);
}

.parking-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.parking-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.parking-gallery img:hover {
    transform: scale(1.03);
}

/* Map container */
.map-container {
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Pricing grid */
.parking-pricing {
    background: #f8f8f8;
    padding: 60px 20px;
    text-align: center;
}

.parking-pricing h2 {
    margin-bottom: 30px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    max-width: 700px;
    margin: auto;
}

.price-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-weight: 600;
    color: var(--ink);
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card strong {
    font-size: 1.3rem;
    color: var(--primary-700);
}

/* Hours */
.hours-table {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px 30px;
}

.hours-table table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 10px 6px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

/* Info tags */
.info-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.info-tags span {
    background: #e6f8f7;
    color: var(--primary);
    border-radius: 50px;
    padding: 8px 16px;
    font-weight: 500;
}

/* Testimonials reuse existing .testimonial */
.parking-avis {
    margin-top: 80px;
}

/* ------------------------------
   ANIMATIONS FADE-IN AU SCROLL
--------------------------------*/
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animation pour les images de la galerie */
.gallery-grid img {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.gallery-grid img.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Booking Summary / Nombre de jours --- */
.booking-summary {
    display: flex;
    flex-direction: column; /* ✅ éléments empilés */
    align-items: center; /* ✅ centré horizontalement */
    justify-content: center;
    margin-top: 35px;
    gap: 25px; /* ✅ espace entre la bulle et le bouton */
    width: 100%;
    text-align: center;
}

.days-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(6,147,152,0.08) 0%, rgba(0,212,170,0.08) 100%);
    border: 1px solid rgba(6,147,152,0.3);
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--primary-700);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    width: fit-content; /* ✅ évite qu’elle prenne toute la ligne */
}

    .days-counter:hover {
        transform: translateY(-2px);
        background: linear-gradient(90deg, rgba(6,147,152,0.12) 0%, rgba(0,212,170,0.12) 100%);
    }

#nbDays {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

/* Animation douce lors du changement */
@keyframes pulseHighlight {
    0% {
        background-color: rgba(0, 212, 170, 0.15);
    }

    50% {
        background-color: rgba(0, 212, 170, 0.4);
    }

    100% {
        background-color: rgba(0, 212, 170, 0.15);
    }
}

.days-counter.updated {
    animation: pulseHighlight 0.7s ease;
}