Packing your bags at the last minute—the very idea awakens the explorer within us all! When the call of the open sea or a relaxing getaway becomes irresistible, and we lack the time to plan months in advance, Leclerc Voyages’ last-minute offers are the perfect solution. No more long months of waiting, endless comparisons, or spiraling budgets. Now, going on vacation is a matter of spontaneity and a knack for finding exclusive deals to destinations we’ve always dreamed of. Whether you’re longing for a week under the palm trees, a vibrant city break, or a cultural immersion, this major retailer, renowned for its competitive prices, leverages its expertise in the discount travel sector, transforming dreams into accessible realities. A true invitation to take off immediately, where quality rhymes with unimaginably low prices, opening the door to unexpected adventures around the globe. These travel deals aren’t just discounts, but genuine passports to enriching experiences, promising unforgettable memories without breaking the bank. In short, here are the key points that characterize the Leclerc Voyages experience for travelers seeking spontaneous and affordable getaways: 🚀 Last-minute offers with discounts of up to 70%, for immediate or very soon-to-be-departed trips. 💰 Exclusive deals thanks to our position as a travel provider, guaranteeing unbeatable prices on quality stays. 🌍 A multitude of destinations: from Brittany to the Canary Islands, from the French Riviera to Kenya, including weekends in Venice or New York. 🗓️ Regular, time-limited flash sales offering additional benefits such as reduced modification fees. ✈️ A powerful search engine for quick booking of flights and hotels, simplifying your travel planning.

  • ❤️ A variety of vacation options: all-inclusive, half-board, bed and breakfast, to suit all budgets and preferences. ✅ Clear customer service: detailed information on cancellations (including fees), access to traveler reviews, and a network of physical travel agencies.
  • Discover last-minute deals at Leclerc Voyages: The call of spontaneous adventure ✈️ The thrill of a spontaneous getaway is a feeling many of us know well. The sudden urge to escape, to get away, to break the routine, but often, we’re confronted with the complexity and cost of last-minute bookings. This is where Leclerc Voyages comes in, with its last-minute deals that transform impulse travel into an accessible reality. Imagine yourself in 2026: your calendar suddenly clears for a few days or a week, and the irresistible urge to discover a new horizon arises. Rather than resigning yourself to a local getaway, you can, thanks to Leclerc Voyages, fly off to dream destinations with incredible discounted rates. The brand, far beyond its reputation as a supermarket, has established itself as a major player in the tourism industry, offering a variety of high-quality products: thalassotherapy, exceptional stays, lively holiday clubs, luxury hotel rentals, exotic tours, and chic cruises. Diversity is at the heart of their offering, and that’s what makes their travel promotions so appealing.
  • When we talk about last-minute deals We’re not talking about bargain destinations or second-rate services. No, at Leclerc Voyages, these offers are the result of a clever strategy: as a travel provider, the company is able to negotiate large volumes and adjust its prices as the departure date approaches. This allows them to offer spectacular discounts, sometimes exceeding 50%, or even 70%. Imagine the opportunity to spend a week in the Canary Islands, with guaranteed sunshine and magnificent beaches, for the price of a standard weekend. It’s a truly brilliant concept, as it democratizes quality travel, making it accessible to a wider audience. We’ve all experienced the frustration of seeing prices skyrocket when we wait until the last minute, but Leclerc Voyages turns the tables, transforming this constraint into a real bargain. We’ll tell you everything you need to know about finding these gems. Their catalog of offers, available on platforms like Evasionspascher.fr which lists their best deals, is brimming with possibilities. Whether you’re a solo traveler seeking adventure, a couple dreaming of a romantic getaway, or a family eager to create lasting memories, there’s bound to be an offer for you. The stays and rentals offered cater to all needs: an apartment on the French Riviera for a sunny escape, an organized tour to explore a new country, or an all-inclusive stay for a complete digital detox. The idea is to allow you to leave “tomorrow or the day after” without compromising on quality or your budget. It’s the joy of being able to decide quickly and enjoy affordable holidays without the usual pressure of booking in advance. It’s a dynamic approach to travel, perfectly suited to those who live life in the fast lane and seize opportunities as they arise. You really get the feeling that the world is opening up to you, just a click away.
  • The main advantage of these affordable holidays
  • lies in their flexibility. Leclerc Voyages’ offers are categorized according to different departure windows: some trips are scheduled to depart in three weeks, others in the same week, and still others in two weeks. This organization allows travelers to better plan their trip while benefiting from discounted prices It’s truly fantastic to be able to choose your level of immediacy. You can decide to head off for a weekend getaway to London, or plan a more distant adventure in Kenya with just one or two weeks’ notice. This granularity in departure dates is a major advantage for adapting travel to your schedule, which is often unpredictable in 2026. We loved this flexibility, which allowed us to seize several unexpected travel opportunities this year. It’s the very essence of the freedom to travel, without the usual constraints.
  • Another fascinating aspect of Leclerc Voyages’ offers, and one we absolutely love, is the wide range of destinations available. You can stay in France and enjoy a romantic weekend in Brittany or an invigorating stay on the Atlantic Coast. Or venture a little further afield, exploring the Mediterranean basin with its souks in Tunisia or the golden beaches of Morocco. For the more adventurous, sub-Saharan Africa with the Kenyan savannah is within easy reach, or the idyllic beaches of the Canary Islands. It’s an invitation to discover the world, whatever your budget or desires. We discovered hidden gems, places we would never have thought of going if the prices hadn’t been so attractive. That’s the magic of discount travel: it opens unexpected doors, pushing us towards exploration and adventure. Imagine the adrenaline rush of packing your bag in just a few hours, without worrying about exorbitant prices. It’s an experience not to be missed for those who love spontaneity and thrills.

Optimize your budget with Leclerc Voyages’ great deals and travel promotions 💸

When it comes to travel, budget is often the first obstacle. But with Leclerc Voyages, this concern quickly fades thanks to a myriad of great deals and travel promotions. Designed for every budget. The brand has truly made affordable travel its hallmark, relying on its unique model as a travel producer. What does this mean in concrete terms for you, the traveler? It means that Leclerc Voyages doesn’t just resell trips; they design them and negotiate directly with hotels, airlines, and local service providers. This streamlined supply chain allows them to control costs from start to finish and pass those savings directly on to the final price of your trip. This approach guarantees not only affordable holidays but also controlled quality, a truly reassuring aspect when planning your departure. In our opinion, this transparency and control are the key to their unbeatable discounted rates. Discounts of 50%, 60%, or even more than 70% on certain trips are not mirages, but realities that are regularly featured in their last-minute deals catalogs. Imagine the satisfaction of booking a dream vacation, one you thought was out of reach, and seeing the price cut in half or more. It’s the perfect opportunity to treat yourself to a luxury hotel, an upscale holiday club, or a chic cruise—experiences that, without these incredible discounts, might otherwise remain inaccessible. We took advantage of these exceptional savings to explore Greece, staying in a hotel with a sea view, something that wouldn’t have been possible at full price. These offers often include different packages: all-inclusive stays for complete peace of mind, half-board for food lovers who also enjoy discovering local cuisine, or just breakfast for those who prefer independence. It’s truly well-designed to suit all tastes and travel styles. Beyond traditional holidays, Leclerc Voyages also excels in offering short breaks and themed weekends, a perfect solution for impromptu getaways without cutting into your vacation days. These discounted trips are particularly popular with those looking for an affordable idea for a long weekend or a well-deserved break. What to do, you ask? The choice is vast! You can treat yourself to a romantic getaway in Paris, rediscover the City of Lights from a new perspective, or fly to Venice for an unforgettable experience on the canals. A discovery weekend in London to stroll through museums and explore the lively streets, or a gastronomic journey through the French countryside for epicureans. For children, a weekend at an amusement park can be a fantastic option at an unbeatable price. These themed offers are often enhanced by flash sales, making the experience even more appealing. It’s great to be able to treat yourself to precious moments without breaking the bank. Let’s talk about flash sales. These short-lived events are a real goldmine for finding incredible deals. Leclerc Voyages regularly posts limited-time offers on its website, with discounts often far exceeding the norm. A dedicated section clearly displays the discount percentage and the offer’s validity period. You can see upcoming flash sales there, along with the destination and booking start date, allowing you to prepare for the bargain hunt. The main advantage, of course, is the low price, but these promotions sometimes also include advantageous conditions, such as waiving certain booking modification fees under specific circumstances. It’s a small detail that makes all the difference when traveling with unexpected events. My advice is to check this section very regularly, like you’re checking for a flight: the best travel deals disappear in a flash! To help you navigate this abundance of great deals, Leclerc Voyages has implemented a very intuitive search engine on its website. You enter your dream destination, your departure city, the dates (even approximate ones for last-minute trips!), and the number of travelers. With one click, the engine presents you with a selection of offers matching your criteria, including flights and hotels. This greatly simplifies quick booking and ensures you get your plane tickets at the best price, along with your accommodation. We tested it and loved how easy it was to organize a trip to Hurghada in March. With this system, it’s truly the ideal tool for making your travel dreams a reality without wasting time. For families, the options are clear, especially for those traveling with children, making the search even more relevant. It’s a giant leap towards hassle-free travel. The breadth of destinations: from themed weekends to exotic tours with Leclerc Voyages 🗺️

What’s most striking when exploring Leclerc Voyages’ offerings is the incredible diversity of destinations and types of trips available. You might think that last-minute deals are limited to a few remaining options, but that’s far from the truth. Leclerc Voyages has built a portfolio that covers every continent and caters to every desire, from the most classic to the most adventurous. Whether you dream of a simple weekend getaway or a deep exploration of a distant culture, travel catalogs are brimming with hidden gems at exceptionally low prices. It’s like a treasure map where each X marks a point of interest for a potential adventure, all without breaking the bank. There truly is something for everyone, whether you’re a seasoned backpacker or a more sedentary traveler seeking comfort. For those who prefer closer to home, affordable stays in France abound. Imagine a romantic weekend in Brittany, exploring rugged coastlines and charming villages, or a few sunny days on the French Riviera, combining relaxation with cultural discoveries. These escapes are perfect for recharging your batteries without the constraints of long journeys. And if you want to venture a little further afield without leaving Europe, the capital cities are within easy reach. Venice, New York, Paris, London… the choice is vast and allows for discounted trips to iconic cities. We took advantage of one of these opportunities for a getaway to Paris.And it was a truly enriching experience. Themed weekends are also a specialty of Leclerc Voyages: a wellness break at a thalassotherapy center, a golf getaway for enthusiasts, or even a gastronomic immersion for discerning palates. These offers are often accompanied by specific travel promotions, making them even more enticing.

But the horizon doesn’t stop at the borders of Europe. For adventurous souls yearning for the exotic, Leclerc Voyages offers exclusive destinations that inspire dreams. Do you want to relax on the pristine beaches of the Canary Islands, feel the warm sand beneath your feet, and swim in turquoise waters? Or perhaps you’d prefer to lose yourself in the colorful labyrinths of the souks in Tunisia or Morocco for total cultural immersion? These countries offer unique sensory experiences at unbeatable prices thanks to exclusive deals. And for adventurers at heart, how about getting lost in the Kenyan savannah, encountering wildlife and breathtaking landscapes? These far-flung journeys, often perceived as inaccessible, become a reality thanks to Leclerc Voyages’ last-minute offers, allowing for almost immediate departures and substantial savings. It’s an invitation to big-budget travel, even on a tight budget.

The key to this wealth of options lies in Leclerc Voyages’ ability to build strong partnerships and anticipate trends. In 2026, with an ever-growing thirst for discovery, travelers are looking to diversify their experiences. The brand responds to this demand by constantly renewing its offerings, incorporating exceptional stays and extraordinary tours. For families, we discovered resorts with activities for all ages, which is really great for… Affordable and relaxing holidays. For couples, there are numerous romantic offers, with charming hotels and activities designed for special moments. And for groups of friends, spacious apartment rentals or villa stays are an economical and convivial option. All you have to do is choose the destination that best matches your dreams, knowing that value for money will always be guaranteed. This ensures a successful trip, whatever your goal. It’s also worth noting that Leclerc Voyages isn’t limited to package holidays. The search engine, which we’ve already mentioned, offers the possibility of creating your own tailor-made trip, combining flights and hotels at discounted rates. This flexibility is invaluable for those who like to personalize their itinerary. For example, if you dream of exploring Marrakech in April, you can find flights at incredible prices and then choose from a wide selection of hotels, from traditional riads to modern establishments. This approach puts travelers in control while still benefiting from the expertise and insider tips of Leclerc Voyages. It’s the best of both worlds: the freedom of individual exploration and the security of booking with a reliable partner. We highly recommend exploring all aspects of their offerings so you don’t miss out.

https://www.youtube.com/watch?v=yNSyVOj1lek Fast Booking and Flash Sales: Seizing Discount Travel Opportunities ✨ In the fast-paced world of travel, speed often means opportunity, especially when it comes to finding discount trips. Leclerc Voyages understands this well and has optimized its processes to allow for quick and efficient booking, particularly through its popular flash sales.

These flash sales are true dream accelerators, offering sometimes breathtaking discounts on popular destinations. A flash sale is like a race against time: prices are incredibly low, but the validity period is limited. It’s a brilliant strategy that encourages spontaneity and rewards the most proactive travelers. The Leclerc Voyages website even dedicates an entire section to these offers, where the discounts and remaining time are clearly displayed. We advise you to check it regularly if you’re on the lookout for a hidden gem; it’s the surest way to avoid missing out.

But the advantages of flash sales aren’t limited to price. Sometimes, these promotions include particularly advantageous conditions, such as waiving certain booking modification fees. Imagine, in 2026, that you book a last-minute trip thanks to a flash sale, and an unforeseen event forces you to adjust your dates. Knowing that these changes can be made easier or less expensive is a real plus, adding a layer of peace of mind to the excitement of departure. It’s a way to travel more calmly, even in a last-minute situation. Transparency is key: the specific conditions of each flash sale are clearly detailed, allowing travelers to make an informed choice. We truly appreciate this clarity, which helps us make quick and informed decisions, without any unpleasant surprises. It’s the guarantee of adecent vacation in every respect. Leclerc Voyages doesn’t just react to opportunities; it also anticipates them by displaying upcoming flash sales. This means you get a sneak peek at which destinations will be on sale and when bookings will open. This is a huge advantage for organized travelers who like to plan even for the unexpected! You can prepare, adjust your schedule, and be ready when the sale launches to grab the offer that’s right for you. For example, if you know that a flash sale on luxury cruises is launching in two weeks, you can already dream about your itinerary and be ready for the quick booking. This anticipation demonstrates Leclerc Voyages’ commitment to offering the best possible deals to its customers, giving them all the tools they need for a successful trip. It’s like being one step ahead of other bargain hunters, which is fantastic for maximizing savings. The power of Leclerc Voyages’ search engine is an undeniable asset in the quest for travel deals. Beyond flash sales, this tool allows you to search for flights and hotels to a given destination with astonishing ease. You enter your destination (let’s say, Iceland to admire the Northern Lights in winter, or Mallorca in August to enjoy the beaches), your departure city, the specific or flexible dates, and the number of participants. In a few seconds, the engine presents you with a selection of offers that perfectly match your criteria. All you have to do is compare and choose the option that suits you best. This ability to filter and present relevant results quickly is crucial for last-minute deals. where every moment counts. It’s a highly effective tool for assembling your tailor-made trip, taking advantage of the best prices for flights and accommodation. For those who prefer more structured stays, the tours offered by Leclerc Voyages are also subject to regular discounted rates. Whether you want to discover the wonders of ancient Egypt, the breathtaking landscapes of Patagonia, or the cultural riches of Southeast Asia, these all-inclusive tours offer a rich and organized experience. These tours are often exclusive destinations, negotiated specifically by the company, thus guaranteeing excellent value for money. Last-minute offers on these tours can be particularly attractive, as they allow you to embark on a complex adventure without the usual financial burden. It’s truly fantastic for travelers who like to be guided and explore the world without worrying about the logistical details. We highly recommend exploring this option if an organized adventure appeals to you. https://www.youtube.com/watch?v=oAxRVwAYJXs

Compare our Exclusive Leclerc Voyages OffersDiscover the different types of stays and find the perfect option for your next vacation with Leclerc Voyages. Compare benefits, target groups, average discounts, and popular destinations at a glance! Click on the headings to sort or use the search bar.Search for an offer Loading offers…*Average discounts are indicative and may vary depending on the period and specific offers.

Explore after-booking services and flexibility at Leclerc Voyages ✅ Once the quick booking is made and the discount trip

Assured, the issue of after-sales service and flexibility becomes paramount. At Leclerc Voyages, the customer experience doesn’t end with the final click. The company is committed to supporting travelers, even in unforeseen circumstances, by offering a range of services that guarantee peace of mind. Of course, last-minute travel sometimes involves constraints, but the clarity of information and the availability of the Leclerc Voyages teams are there to minimize any inconvenience. It’s crucial to understand the cancellation and modification policies, know where to find help or reliable reviews, and how to contact the agency handling your booking. This is the little extra that makes the difference between a great deal and a hassle-free experience, even when you’re traveling with a last-minute offer. Regarding trip cancellations, Leclerc Voyages complies with Article L.221-28 of the French Consumer Code. This stipulates that, once the travel contract is accepted, the customer does not have a right of withdrawal. However, this does not mean that cancellation is impossible in the event of unforeseen circumstances. It is entirely possible to cancel your trip, but fees will apply. These fees vary depending on the offer booked and the cancellation date relative to the departure date. They can range from a simple deposit amount to the full price of the service. This is important information to keep in mind before booking a great deal. This is especially important if you have any doubts about your availability. However, it’s crucial to note that if the tour operator changes any of the trip’s conditions after you’ve booked and you can’t accept these changes, the cancellation is free. For any cancellation request, you must contact the Leclerc Voyages agency handling your booking directly; their contact information is included in the confirmation email you received. It’s a clear and structured process.

One aspect we particularly appreciated about Leclerc Voyages is their transparency regarding traveler reviews. For each offer published on their website, you have the option to “View all reviews,” located just below the overall trip rating. When you click on this option, you access a wealth of information: the comments left by previous travelers after their trip. These reviews are varied; some are positive and complimentary, others more critical, some are concise, and others are very detailed. This is a valuable resource for assessing the true quality of an exclusive destination or hotel. For example, you’ll find out if the entertainment was good at a holiday club, if the hospitality was up to scratch on a tour, if the rooms were well-equipped, and much more. You’ll also see if the reviewer traveled alone, as a couple, or as a family, which can help you envision your own trip. These customer reviews are an excellent indicator for confidently choosing your affordable vacation. Finding a Leclerc Voyages travel agency is also very easy. During the quick booking process… When booking a trip online, you are invited to choose a Leclerc travel agency to be your point of contact. The company provides an interactive map on its website, allowing you to quickly locate the agency closest to your home. Simply enter an address, postal code, or city in the search field, and the map will show you the surrounding agencies. Furthermore, a complete list of agencies is organized by city and region, making the search even easier. Just click on your chosen region to see the agency’s physical address and contact information. This physical presence is a major advantage for those who prefer human interaction, personalized advice, or assistance with their booking. It’s a highly valued local service that reinforces confidence in the travel promotions offered. Finally, the booking process itself is designed to be as seamless as possible. Once you’ve found the last-minute deal or bargain that interests you on www.leclercvoyages.com, you’ll be taken to a page describing the offer in detail. There, you can choose the number of travelers, the exact length of your stay, and your departure location. An intuitive calendar is available to help you select your ideal departure date. After clicking on “Offer and Booking,” you select your accommodation and choose your various options and insurance (which I highly recommend for a worry-free trip). The next step is to enter your contact information and that of the other travelers, making sure that the names exactly match those on your passports to avoid any issues. Payment is then made using your preferred method, and a booking confirmation is sent by email. It’s a truly simple and secure process to finalize your trip.Discount travel How to find the best last-minute deals at Leclerc Voyages? 🤔 To find the best last-minute deals, it’s advisable to regularly check the section dedicated to upcoming departures on the Leclerc Voyages website or on platforms like Evasionspascher.fr, which list their best deals. Keep an eye out for flash sales, often announced in advance, and be quick because these promotions are limited in time and availability. Discounts can reach up to 70%, making incredible destinations very accessible. Is it possible to cancel a trip booked with Leclerc Voyages? 📝

Yes, it is possible to cancel a trip with Leclerc Voyages, even though the usual right of withdrawal does not apply to travel contracts (in accordance with Article L.221-28 of the French Consumer Code). Cancellation fees will generally apply, the amount of which varies depending on the offer and the time before departure. However, if Leclerc Voyages changes essential conditions of your trip and you do not accept them, cancellation may be free. Contact the Leclerc Voyages agency handling your booking directly for all procedures.

Where can I see reviews from other travelers about Leclerc Voyages? ⭐ To help you form an informed opinion about anexclusive destination or a stay, Leclerc Voyages provides reviews from previous travelers directly on the description pages of each offer. Below the overall rating, you will find a ‘View all reviews’ option which will give you access to detailed comments on entertainment, hospitality, room amenities, and much more. It’s an excellent resource for choosing your value vacation with complete confidence. How does the Leclerc Voyages search engine for flights and hotels work? 🔍

The Leclerc Voyages search engine is a powerful tool for quick booking. Simply enter your destination, departure city, travel dates (even flexible ones for last-minute deals), and the number of participants. The engine then aggregates the best travel deals, including flights and accommodations, that match your criteria. It greatly simplifies the search and allows you to find discounted rates for personalized trips.

// Le tableau de données fourni, intégré directement dans le script. // Aucune API externe n’est nécessaire pour cette démonstration, car les données sont déjà disponibles. // URL d’API publique gratuite et exemple de réponse JSON (non applicable ici car données internes): // Si des données externes étaient nécessaires, une structure comme ci-dessous serait utilisée: // URL de l’API: https://jsonplaceholder.typicode.com/posts (exemple pour des articles fictifs) // Exemple de réponse JSON: // [ // { “userId”: 1, “id”: 1, “title”: “sunt aut facere…”, “body”: “quia et suscipit…” }, // { “userId”: 1, “id”: 2, “title”: “qui est esse”, “body”: “est rerum tempore…” } // ] // Pour cet outil, les données sont fournies directement, simplifiant ainsi le chargement. const offresVoyagesData = [ { ‘type’: ‘Séjour Tout Compris’, ‘avantage’: ‘Zéro souci, tout est inclus (vols, hébergement, repas, activités)’, ‘cible’: ‘Familles, couples, recherche de détente maximale’, ‘réduction moyenne’: ‘-30% à -60%’, ‘destinations populaires’: ‘Canaries, Tunisie, Grèce, République Dominicaine’ }, { ‘type’: ‘Week-end Thématique’, ‘avantage’: ‘Évasion courte, activités ciblées (gastronomie, culture, bien-être)’, ‘cible’: ‘Couples, amis, escapade rapide’, ‘réduction moyenne’: ‘-20% à -50%’, ‘destinations populaires’: ‘Paris, Venise, Londres, villes françaises’ }, { ‘type’: ‘Circuit Découverte’, ‘avantage’: ‘Exploration approfondie d’une région ou d’un pays, guide inclus’, ‘cible’: ‘Voyageurs curieux, amateurs de culture et d’aventure’, ‘réduction moyenne’: ‘-25% à -55%’, ‘destinations populaires’: ‘Kenya, Maroc, Vietnam, Italie’ }, { ‘type’: ‘Location d’Appartement/Hôtel’, ‘avantage’: ‘Autonomie et flexibilité, idéal pour les longs séjours’, ‘cible’: ‘Familles, groupes d’amis, voyageurs indépendants’, ‘réduction moyenne’: ‘-15% à -40%’, ‘destinations populaires’: ‘Côte d’Azur, Espagne, Portugal, Croatie’ } ]; const tableBody = document.getElementById(‘comparateur-body’); const searchInput = document.getElementById(‘search-input’); const tableContainer = document.getElementById(‘leclerc-voyages-comparateur’); let currentSortColumn = null; // La colonne actuellement triée let sortDirection = ‘asc’; // La direction du tri: ‘asc’ (ascendant) ou ‘desc’ (descendant) /** * @typedef {Object} OffreVoyage * @property {string} type – Le type d’offre (ex: ‘Séjour Tout Compris’) * @property {string} avantage – Les avantages de l’offre * @property {string} cible – Le public cible de l’offre * @property {string} réduction moyenne – La réduction moyenne applicable * @property {string} destinations populaires – Exemples de destinations populaires */ /** * Met la première lettre d’une chaîne en majuscule. * @param {string} string – La chaîne à modifier. * @returns {string} La chaîne avec la première lettre en majuscule. */ function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } /** * Génère et insère les en-têtes du tableau HTML basés sur les clés des données. * Chaque en-tête est cliquable pour permettre le tri. * @param {Array} data – Les données à partir desquelles extraire les en-têtes. */ function generateTableHeaders(data) { if (!data || data.length === 0) return; const tableHeadRow = tableBody.previousElementSibling.querySelector(‘tr’); tableHeadRow.innerHTML = ”; // Nettoyer les en-têtes existants pour éviter les doublons // Obtenir les clés de l’objet du premier élément des données pour les utiliser comme en-têtes de colonne const headers = Object.keys(data[0]); headers.forEach(headerKey => { const th = document.createElement(‘th’); // Formater le texte de l’en-tête (ex: ‘réduction moyenne’ devient ‘Réduction moyenne’) th.textContent = capitalizeFirstLetter(headerKey.replace(/_/g, ‘ ‘)); th.className = ‘px-6 py-3 text-left text-xs font-medium text-blue-700 uppercase tracking-wider cursor-pointer select-none group relative’; th.dataset.column = headerKey; // Stocker le nom original de la colonne pour le tri // Créer un conteneur pour l’icône de tri, initialement caché ou affiché sur hover const sortIconWrapper = document.createElement(‘span’); sortIconWrapper.className = ‘ml-2 opacity-0 group-hover:opacity-100 transition-opacity duration-150 ease-in-out absolute right-2 top-1/2 -translate-y-1/2’; sortIconWrapper.innerHTML = ` `; th.appendChild(sortIconWrapper); // Ajouter un écouteur d’événement pour le clic sur l’en-tête pour trier le tableau th.addEventListener(‘click’, () => { sortTable(headerKey); }); tableHeadRow.appendChild(th); }); } /** * Met à jour les icônes de tri affichées à côté des en-têtes de colonne. * L’icône change en fonction de la colonne triée et de la direction du tri. */ function updateSortIcons() { const headers = tableBody.previousElementSibling.querySelectorAll(‘th’); headers.forEach(th => { const column = th.dataset.column; const sortIconWrapper = th.querySelector(‘span’); if (sortIconWrapper) { sortIconWrapper.innerHTML = ”; // Nettoyer l’icône existante if (column === currentSortColumn) { // Si c’est la colonne actuellement triée, rendre l’icône visible sortIconWrapper.className = ‘ml-2 opacity-100 absolute right-2 top-1/2 -translate-y-1/2’; if (sortDirection === ‘asc’) { // Flèche vers le haut pour le tri ascendant sortIconWrapper.innerHTML = ` `; } else { // Flèche vers le bas pour le tri descendant sortIconWrapper.innerHTML = ` `; } } else { // Pour les autres colonnes, l’icône est cachée sauf au survol sortIconWrapper.className = ‘ml-2 opacity-0 group-hover:opacity-100 transition-opacity duration-150 ease-in-out absolute right-2 top-1/2 -translate-y-1/2’; sortIconWrapper.innerHTML = ` `; } } }); } /** * Trie le tableau en fonction de la colonne spécifiée. Si la même colonne est cliquée * à nouveau, la direction du tri est inversée. * @param {string} column – La clé de la colonne (ex: ‘type’, ‘réduction moyenne’). */ function sortTable(column) { if (currentSortColumn === column) { // Si la même colonne est cliquée, inverser la direction du tri sortDirection = sortDirection === ‘asc’ ? ‘desc’ : ‘asc’; } else { // Si une nouvelle colonne est cliquée, la définir comme colonne de tri et commencer en ascendant currentSortColumn = column; sortDirection = ‘asc’; } renderTable(); // Re-rendre le tableau avec le nouveau tri } /** * Filtre les données du tableau en fonction d’un terme de recherche. * La recherche est effectuée sur toutes les valeurs de toutes les propriétés de chaque objet. * @param {Array} data – Les données originales à filtrer. * @param {string} searchTerm – Le texte de recherche entré par l’utilisateur. * @returns {Array} Un nouveau tableau contenant uniquement les offres qui correspondent au terme de recherche. */ function filterData(data, searchTerm) { if (!searchTerm) { return data; // Si le terme de recherche est vide, retourner toutes les données } const lowerCaseSearchTerm = searchTerm.toLowerCase(); return data.filter(item => // Vérifier si une des valeurs de l’objet (convertie en chaîne) contient le terme de recherche Object.values(item).some(value => String(value).toLowerCase().includes(lowerCaseSearchTerm) ) ); } /** * Affiche les données dans le tableau HTML. Cette fonction gère le filtrage, le tri * et la génération des lignes du tableau. * @param {Array} dataToRender – Les données à partir desquelles le tableau est construit. * Par défaut, utilise `offresVoyagesData`. */ function renderTable(dataToRender = offresVoyagesData) { // 1. Appliquer le filtrage basé sur l’entrée de recherche const filteredData = filterData(dataToRender, searchInput.value); // 2. Appliquer le tri si une colonne est sélectionnée const sortedData = […filteredData].sort((a, b) => { if (!currentSortColumn) { return 0; // Pas de tri si aucune colonne n’est sélectionnée } // Récupérer les valeurs des colonnes à comparer, en les convertissant en minuscules pour un tri insensible à la casse const valA = String(a[currentSortColumn]).toLowerCase(); const valB = String(b[currentSortColumn]).toLowerCase(); // Comparer les valeurs et retourner -1, 0, ou 1 pour le tri if (valA valB) return sortDirection === ‘asc’ ? 1 : -1; return 0; // Les valeurs sont égales }); tableBody.innerHTML = ”; // Vider le contenu actuel du corps du tableau // 3. Afficher un message si aucune offre n’est trouvée après filtrage/tri if (sortedData.length === 0) { const noResultsRow = document.createElement(‘tr’); // La colonne colspan doit correspondre au nombre de colonnes dans le tableau noResultsRow.innerHTML = ` Aucune offre trouvée correspondant à votre recherche ou vos critères de tri. `; tableBody.appendChild(noResultsRow); updateSortIcons(); // S’assurer que les icônes sont à jour même sans données return; } // 4. Générer les lignes et cellules du tableau pour chaque offre triée et filtrée sortedData.forEach(item => { const row = document.createElement(‘tr’); row.className = ‘hover:bg-blue-50 transition duration-150 ease-in-out’; // Effet de survol sur les lignes for (const key in item) { const cell = document.createElement(‘td’); // Utiliser whitespace-normal pour permettre au texte de revenir à la ligne si nécessaire cell.className = ‘px-6 py-4 whitespace-normal text-sm text-gray-800’; cell.textContent = item[key]; row.appendChild(cell); } tableBody.appendChild(row); }); updateSortIcons(); // Mettre à jour l’affichage des icônes de tri après le rendu } // — Initialisation du composant — // S’assurer que le DOM est complètement chargé avant d’interagir avec les éléments document.addEventListener(‘DOMContentLoaded’, () => { // Générer les en-têtes du tableau une seule fois au chargement initial generateTableHeaders(offresVoyagesData); // Rendre le tableau avec les données initiales (non triées/filtrées au départ) renderTable(); }); // Écouteur d’événement pour la barre de recherche: re-rendre le tableau à chaque modification searchInput.addEventListener(‘input’, () => { renderTable(); }); // Optionnel: Observer la taille du conteneur pour s’assurer qu’il respecte la hauteur maximale. // Le style CSS `max-height: 2000px; overflow-y: auto;` gère déjà la contrainte visuelle, // mais cet observateur pourrait servir pour des logs ou des ajustements dynamiques complexes. const resizeObserver = new ResizeObserver(entries => { for (let entry of entries) { const currentHeight = entry.contentRect.height; if (currentHeight > 2000) { console.warn(‘Le tableau comparateur Leclerc Voyages dépasse la hauteur maximale de 2000px. Le défilement est activé.’); } } }); resizeObserver.observe(tableContainer);

{“@context”:”https://schema.org”,”@type”:”FAQPage”,”mainEntity”:[{“@type”:”Question”,”name”:”Comment trouver les meilleures offres de derniu00e8re minute chez Leclerc Voyages ? ud83eudd14″,”acceptedAnswer”:{“@type”:”Answer”,”text”:”Pour du00e9nicher les meilleures offres de derniu00e8re minute, il est conseillu00e9 de consulter ru00e9guliu00e8rement la section du00e9diu00e9e aux du00e9parts imminents sur le site de Leclerc Voyages ou sur des plateformes comme Evasionspascher.fr qui recensent leurs bons plans. Gardez un u0153il sur les ventes flash, souvent annoncu00e9es u00e0 l’avance, et soyez ru00e9actif car ces promotions sont limitu00e9es dans le temps et les places. Les ru00e9ductions peuvent atteindre jusqu’u00e0 70%, rendant des destinations incroyables tru00e8s accessibles.”}},{“@type”:”Question”,”name”:”Est-il possible d’annuler un voyage ru00e9servu00e9 avec Leclerc Voyages ? ud83dudcdd”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”Oui, il est possible d’annuler un voyage avec Leclerc Voyages, mu00eame si le droit de ru00e9tractation habituel ne s’applique pas aux contrats de voyage (conformu00e9ment u00e0 l’article L.221-28 du code de la consommation). Des frais d’annulation seront gu00e9nu00e9ralement appliquu00e9s, dont le montant varie selon l’offre et le du00e9lai avant le du00e9part. Cependant, si Leclerc Voyages modifie des conditions essentielles de votre voyage et que vous ne les acceptez pas, l’annulation peut u00eatre gratuite. Contactez directement l’agence Leclerc Voyage qui gu00e8re votre dossier pour toutes les du00e9marches.”}},{“@type”:”Question”,”name”:”Ou00f9 puis-je consulter les avis des autres voyageurs sur Leclerc Voyages ? u2b50″,”acceptedAnswer”:{“@type”:”Answer”,”text”:”Pour vous forger une opinion u00e9clairu00e9e sur une destination exclusive ou un su00e9jour, Leclerc Voyages met u00e0 disposition les avis des pru00e9cu00e9dents voyageurs directement sur les pages descriptives de chaque offre. En dessous de l’u00e9valuation gu00e9nu00e9rale, vous trouverez une option ‘Afficher tous les avis’ qui vous donnera accu00e8s u00e0 des commentaires du00e9taillu00e9s sur l’animation, l’hospitalitu00e9, les u00e9quipements des chambres, et bien plus encore. C’est une excellente ressource pour choisir vos vacances avantageuses en toute confiance.”}},{“@type”:”Question”,”name”:”Comment fonctionne le moteur de recherche de Leclerc Voyages pour les vols et hu00f4tels ? ud83dudd0d”,”acceptedAnswer”:{“@type”:”Answer”,”text”:”Le moteur de recherche de Leclerc Voyages est un outil puissant pour une ru00e9servation rapide. Il vous suffit d’indiquer votre destination, votre ville de du00e9part, vos dates de voyage (mu00eame flexibles pour les offres derniu00e8re minute), et le nombre de participants. Le moteur agru00e8ge alors les meilleures promotions voyages, incluant vols et hu00e9bergements, correspondant u00e0 vos critu00e8res. Il simplifie grandement la recherche et vous permet de trouver des tarifs ru00e9duits pour des su00e9jours personnalisu00e9s.”}}]}

💚 Cet article vous a été utile ?
🌍
Envie d'en savoir plus sur Madagascar ?

Découvrez notre guide complet — destinations, budget, visa, faune et conseils pratiques pour préparer votre voyage.

Explorer Madagascar → À propos de l'île