★
ARTICLE PREMIUM
1. Capture d’ecran de la page
2. Code source final index html
<!DOCTYPE html>
<html lang="fr" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TicketPass | Moteur de Recherche d'Événements & Billetterie</title>
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
ticket: {
light: '#fafafa',
soft: '#f1f5f9',
accent: '#ff4757',
main: '#6366f1',
dark: '#0f172a',
}
}
}
}
}
</script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght=400;500;600;700;800&display=swap');
body { font-family: 'Plus Jakarta Sans', sans-serif; }
.slider-slide { display: none; }
.slider-slide.active { display: block; }
</style>
</head>
<body class="bg-ticket-light text-slate-800">
<!-- NAVIGATION BAR -->
<nav class="bg-white sticky top-0 z-[100] border-b border-ticket-soft shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-20">
<!-- Logo -->
<a href="#" class="flex items-center gap-3">
<div class="w-12 h-12 rounded-xl bg-ticket-main text-white flex items-center justify-center font-black text-xl shadow-lg shadow-ticket-main/20">
<i class="fa-solid fa-ticket"></i>
</div>
<div>
<span class="block text-lg font-black tracking-tight text-ticket-dark leading-none">TICKET<span class="text-ticket-accent">PASS</span></span>
<span class="text-[10px] tracking-widest text-slate-400 font-bold uppercase">Billetterie Officielle</span>
</div>
</a>
<!-- Liens Desktop avec Menu & Sous-Éléments natifs -->
<div class="hidden lg:flex items-center gap-6 font-bold text-slate-600 text-sm">
<a href="#" class="text-ticket-main transition">Accueil</a>
<!-- Item 1: Parcourir -->
<div class="relative group py-7">
<button class="flex items-center gap-1 hover:text-ticket-main transition">
Catégories <i class="fa-solid fa-chevron-down text-[10px] ml-0.5"></i>
</button>
<div class="absolute top-full left-0 w-56 bg-white shadow-xl border border-ticket-soft rounded-b-xl overflow-hidden hidden group-hover:block">
<a href="#categories" class="block px-5 py-3 text-slate-700 hover:bg-ticket-soft/50 hover:text-ticket-main border-b border-slate-100 transition">Concerts & Festivals</a>
<a href="#categories" class="block px-5 py-3 text-slate-700 hover:bg-ticket-soft/50 hover:text-ticket-main border-b border-slate-100 transition">Théâtre & Humour</a>
<a href="#categories" class="block px-5 py-3 text-slate-700 hover:bg-ticket-soft/50 hover:text-ticket-main transition">Matchs & Sport</a>
</div>
</div>
<!-- Item 2: Organisateur -->
<div class="relative group py-7">
<button class="flex items-center gap-1 hover:text-ticket-main transition">
Organisateurs <i class="fa-solid fa-chevron-down text-[10px] ml-0.5"></i>
</button>
<div class="absolute top-full left-0 w-64 bg-white shadow-xl border border-ticket-soft rounded-b-xl overflow-hidden hidden group-hover:block">
<a href="#" class="block px-5 py-3 text-slate-700 hover:bg-ticket-soft/50 hover:text-ticket-main border-b border-slate-100 transition">Créer un événement</a>
<a href="#" class="block px-5 py-3 text-slate-700 hover:bg-ticket-soft/50 hover:text-ticket-main border-b border-slate-100 transition">Tarifs Billetterie</a>
<a href="#" class="block px-5 py-3 text-slate-700 hover:bg-ticket-soft/50 hover:text-ticket-main transition">Solutions Contrôle d'accès</a>
</div>
</div>
<a href="#populaires" class="hover:text-ticket-main transition">Top Ventes</a>
</div>
<!-- Bouton d'action / Profil -->
<div class="flex items-center gap-4">
<a href="#" class="hidden sm:inline-flex bg-ticket-dark text-white px-5 py-2.5 rounded-full font-bold text-xs hover:bg-ticket-main transition shadow-sm uppercase tracking-wider">
Mon Panier <i class="fa-solid fa-basket-shopping ml-2 text-sm text-ticket-accent"></i>
</a>
<button onclick="toggleMobileMenu()" class="lg:hidden w-12 h-12 flex items-center justify-center text-xl text-ticket-main">
<i class="fa-solid fa-bars-staggered"></i>
</button>
</div>
</div>
</div>
</nav>
<!-- MOBILE MENU -->
<div id="mobile-menu" class="fixed inset-0 z-[200] bg-ticket-dark text-white translate-x-full transition-transform duration-300 ease-in-out lg:hidden">
<div class="p-6 flex flex-col h-full">
<div class="flex justify-between items-center mb-12">
<span class="text-xl font-black">TICKET<span class="text-ticket-accent">PASS</span></span>
<button onclick="toggleMobileMenu()" class="text-2xl">×</button>
</div>
<div class="space-y-6 text-lg font-bold overflow-y-auto">
<a href="#" onclick="toggleMobileMenu()" class="block border-b border-white/10 pb-2">Accueil</a>
<div>
<p class="text-ticket-accent text-xs uppercase tracking-widest mb-2">Catégories</p>
<a href="#categories" onclick="toggleMobileMenu()" class="block pl-4 text-base text-slate-300 py-1">Concerts</a>
<a href="#categories" onclick="toggleMobileMenu()" class="block pl-4 text-base text-slate-300 py-1">Spectacles</a>
<a href="#categories" onclick="toggleMobileMenu()" class="block pl-4 text-base text-slate-300 py-1">Sports</a>
</div>
<a href="#populaires" onclick="toggleMobileMenu()" class="block pb-2">Top Ventes</a>
</div>
<div class="mt-auto">
<a href="#" class="block w-full bg-ticket-accent text-center py-4 rounded-xl font-extrabold text-base text-white shadow-lg">Espace Organisateur</a>
</div>
</div>
</div>
<!-- HERO SLIDER AVEC MOTEUR DE RECHERCHE INTÉGRÉ -->
<section class="relative h-[70vh] md:h-[80vh] w-full overflow-hidden bg-ticket-dark">
<!-- Slider Backgrounds -->
<div class="slider-slide active absolute inset-0">
<img src="https://images.unsplash.com/photo-1514525253161-7a46d19cd819?auto=format&fit=crop&q=80&w=1600" class="w-full h-full object-cover opacity-40" alt="Concert Live">
<div class="absolute inset-0 bg-gradient-to-t from-ticket-dark via-ticket-dark/50 to-transparent"></div>
</div>
<div class="slider-slide absolute inset-0">
<img src="https://images.unsplash.com/photo-1461896836934-ffe607ba8211?auto=format&fit=crop&q=80&w=1600" class="w-full h-full object-cover opacity-40" alt="Stade de foot match">
<div class="absolute inset-0 bg-gradient-to-t from-ticket-dark via-ticket-dark/50 to-transparent"></div>
</div>
<!-- Contenu fixe du Moteur de Recherche posé par-dessus le slider -->
<div class="absolute inset-0 flex items-center justify-center z-30 px-4">
<div class="max-w-4xl w-full text-center space-y-8">
<div class="space-y-3">
<span class="inline-block bg-ticket-accent text-white text-[10px] font-black px-3 py-1.5 rounded-full uppercase tracking-widest">Billetterie Temps Réel</span>
<h1 class="text-4xl md:text-6xl font-black text-white leading-none tracking-tight">Trouvez votre prochain <br><span class="text-transparent bg-clip-text bg-gradient-to-r from-indigo-400 to-ticket-accent">événement mémorable</span></h1>
<p class="text-slate-300 text-xs md:text-sm font-medium">Réservez vos places instantanément pour des milliers de concerts, matchs et festivals.</p>
</div>
<!-- Formulaire Moteur de Recherche -->
<form class="bg-white p-4 rounded-2xl md:rounded-full shadow-2xl border border-white/10 grid grid-cols-1 md:grid-cols-12 gap-4 items-center text-left">
<!-- Quoi / Nom de l'événement -->
<div class="md:col-span-4 flex items-center gap-3 px-3 border-b md:border-b-0 md:border-r border-slate-100 pb-3 md:pb-0">
<i class="fa-solid fa-magnifying-glass text-slate-400 text-sm"></i>
<div class="w-full">
<label class="block text-[10px] font-black uppercase text-slate-400 tracking-wider">Quoi ?</label>
<input type="text" placeholder="Artiste, match, festival..." class="w-full text-sm font-semibold text-slate-800 placeholder-slate-400 focus:outline-none bg-transparent">
</div>
</div>
<!-- Où / Ville -->
<div class="md:col-span-3 flex items-center gap-3 px-3 border-b md:border-b-0 md:border-r border-slate-100 pb-3 md:pb-0">
<i class="fa-solid fa-location-dot text-slate-400 text-sm"></i>
<div class="w-full">
<label class="block text-[10px] font-black uppercase text-slate-400 tracking-wider">Où ?</label>
<input type="text" placeholder="Ville ou salle..." class="w-full text-sm font-semibold text-slate-800 placeholder-slate-400 focus:outline-none bg-transparent">
</div>
</div>
<!-- Quand / Date -->
<div class="md:col-span-3 flex items-center gap-3 px-3 pb-3 md:pb-0">
<i class="fa-solid fa-calendar-days text-slate-400 text-sm"></i>
<div class="w-full">
<label class="block text-[10px] font-black uppercase text-slate-400 tracking-wider">Quand ?</label>
<input type="date" class="w-full text-sm font-semibold text-slate-800 focus:outline-none bg-transparent">
</div>
</div>
<!-- Bouton Rechercher -->
<div class="md:col-span-2">
<button type="submit" class="w-full bg-ticket-main text-white rounded-xl md:rounded-full py-3.5 px-6 font-bold text-sm hover:bg-ticket-accent transition shadow-lg shadow-ticket-main/20 flex items-center justify-center gap-2">
<span>Trouver</span> <i class="fa-solid fa-arrow-right text-xs"></i>
</button>
</div>
</form>
</div>
</div>
<!-- Flèches et Dots du Slider -->
<button onclick="changeSlide(-1)" class="absolute left-6 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full bg-white/10 text-white flex items-center justify-center hover:bg-ticket-main transition z-40">
<i class="fa-solid fa-chevron-left text-sm"></i>
</button>
<button onclick="changeSlide(1)" class="absolute right-6 top-1/2 -translate-y-1/2 w-10 h-10 rounded-full bg-white/10 text-white flex items-center justify-center hover:bg-ticket-main transition z-40">
<i class="fa-solid fa-chevron-right text-sm"></i>
</button>
</section>
<!-- SECTION CATÉGORIES (AFFICHAGE NATIF FIXE) -->
<section id="categories" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 -mt-10 relative z-50 mb-20">
<div class="bg-white rounded-3xl shadow-xl p-6 border border-ticket-soft grid grid-cols-2 md:grid-cols-4 gap-4">
<!-- Catégorie 1 -->
<a href="#" class="flex items-center gap-4 p-4 bg-slate-50 rounded-2xl border border-slate-100 hover:border-ticket-main/30 transition">
<div class="w-12 h-12 rounded-xl bg-indigo-100 text-ticket-main flex items-center justify-center text-xl">
<i class="fa-solid fa-music"></i>
</div>
<div>
<h3 class="font-extrabold text-sm text-ticket-dark">Concerts</h3>
<p class="text-[11px] font-semibold text-slate-400">124 Événements</p>
</div>
</a>
<!-- Catégorie 2 -->
<a href="#" class="flex items-center gap-4 p-4 bg-slate-50 rounded-2xl border border-slate-100 hover:border-ticket-main/30 transition">
<div class="w-12 h-12 rounded-xl bg-rose-100 text-ticket-accent flex items-center justify-center text-xl">
<i class="fa-solid fa-masks-theater"></i>
</div>
<div>
<h3 class="font-extrabold text-sm text-ticket-dark">Humour & Théâtre</h3>
<p class="text-[11px] font-semibold text-slate-400">58 Événements</p>
</div>
</a>
<!-- Catégorie 3 -->
<a href="#" class="flex items-center gap-4 p-4 bg-slate-50 rounded-2xl border border-slate-100 hover:border-ticket-main/30 transition">
<div class="w-12 h-12 rounded-xl bg-emerald-100 text-emerald-600 flex items-center justify-center text-xl">
<i class="fa-solid fa-trophy"></i>
</div>
<div>
<h3 class="font-extrabold text-sm text-ticket-dark">Sports & Matchs</h3>
<p class="text-[11px] font-semibold text-slate-400">32 Événements</p>
</div>
</a>
<!-- Catégorie 4 -->
<a href="#" class="flex items-center gap-4 p-4 bg-slate-50 rounded-2xl border border-slate-100 hover:border-ticket-main/30 transition">
<div class="w-12 h-12 rounded-xl bg-amber-100 text-amber-600 flex items-center justify-center text-xl">
<i class="fa-solid fa-champagne-glasses"></i>
</div>
<div>
<h3 class="font-extrabold text-sm text-ticket-dark">Festivals & Gala</h3>
<p class="text-[11px] font-semibold text-slate-400">19 Événements</p>
</div>
</a>
</div>
</section>
<!-- ÉVÉNEMENTS POPULAIRES / BILLETTERIE (AFFICHAGE FIXE SANS SURVOL IMPOSÉ) -->
<section id="populaires" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mb-24">
<div class="flex items-center justify-between mb-8">
<div class="space-y-1">
<h2 class="text-2xl md:text-3xl font-black text-ticket-dark">Les Événements les plus demandés</h2>
<p class="text-xs text-slate-500 font-semibold">Réservez avant la fermeture complète des guichets.</p>
</div>
<a href="#" class="text-xs font-bold text-ticket-main hover:underline hidden sm:block">Voir tout le catalogue <i class="fa-solid fa-arrow-right text-[10px] ml-1"></i></a>
</div>
<!-- Grille des Tickets de manière native -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Événement 1 -->
<div class="bg-white rounded-2xl overflow-hidden border border-ticket-soft shadow-sm flex flex-col justify-between h-full">
<div>
<div class="relative overflow-hidden aspect-[16/10] bg-slate-100">
<img src="https://images.unsplash.com/photo-1470225620780-dba8ba36b745?auto=format&fit=crop&q=80&w=600" class="w-full h-full object-cover" alt="Electro Night">
<span class="absolute top-4 right-4 bg-white/90 backdrop-blur text-ticket-dark text-xs font-black px-3 py-1 rounded-full shadow-sm">À partir de <span class="text-ticket-accent">25 €</span></span>
</div>
<div class="p-5 space-y-3">
<div class="flex items-center gap-2 text-[11px] font-extrabold text-ticket-main uppercase tracking-wider"><i class="fa-solid fa-calendar-day"></i> Samedi 18 Juillet 2026</div>
<h3 class="text-base font-black text-slate-900 leading-snug">Electro Wave Festival - Édition Limitée</h3>
<div class="flex items-center gap-2 text-xs font-medium text-slate-500"><i class="fa-solid fa-location-dot text-slate-400"></i> Esplanade du Palais, Abidjan</div>
</div>
</div>
<div class="p-5 pt-0 border-t border-slate-50 mt-4 flex items-center justify-between">
<span class="inline-flex items-center gap-1.5 text-xs font-bold text-amber-600 bg-amber-50 px-2.5 py-1 rounded-md"><i class="fa-solid fa-fire-flame-curved text-[10px]"></i> Places limitées</span>
<a href="#" class="bg-ticket-main text-white px-4 py-2 rounded-xl text-xs font-bold hover:bg-ticket-dark transition">Acheter <i class="fa-solid fa-circle-arrow-right ml-1"></i></a>
</div>
</div>
<!-- Événement 2 -->
<div class="bg-white rounded-2xl overflow-hidden border border-ticket-soft shadow-sm flex flex-col justify-between h-full">
<div>
<div class="relative overflow-hidden aspect-[16/10] bg-slate-100">
<img src="https://images.unsplash.com/photo-1508700115892-45ecd05ae2ad?auto=format&fit=crop&q=80&w=600" class="w-full h-full object-cover" alt="Concert Acoustique">
<span class="absolute top-4 right-4 bg-white/90 backdrop-blur text-ticket-dark text-xs font-black px-3 py-1 rounded-full shadow-sm">À partir de <span class="text-ticket-accent">15 €</span></span>
</div>
<div class="p-5 space-y-3">
<div class="flex items-center gap-2 text-[11px] font-extrabold text-ticket-main uppercase tracking-wider"><i class="fa-solid fa-calendar-day"></i> Vendredi 04 Septembre 2026</div>
<h3 class="text-base font-black text-slate-900 leading-snug">Session Acoustique avec les Étoiles du Jazz</h3>
<div class="flex items-center gap-2 text-xs font-medium text-slate-500"><i class="fa-solid fa-location-dot text-slate-400"></i> L'Institut Culturel</div>
</div>
</div>
<div class="p-5 pt-0 border-t border-slate-50 mt-4 flex items-center justify-between">
<span class="inline-flex items-center gap-1.5 text-xs font-bold text-emerald-600 bg-emerald-50 px-2.5 py-1 rounded-md"><i class="fa-solid fa-circle-check text-[10px]"></i> Disponible</span>
<a href="#" class="bg-ticket-main text-white px-4 py-2 rounded-xl text-xs font-bold hover:bg-ticket-dark transition">Acheter <i class="fa-solid fa-circle-arrow-right ml-1"></i></a>
</div>
</div>
<!-- Événement 3 -->
<div class="bg-white rounded-2xl overflow-hidden border border-ticket-soft shadow-sm flex flex-col justify-between h-full">
<div>
<div class="relative overflow-hidden aspect-[16/10] bg-slate-100">
<img src="https://images.unsplash.com/photo-1518063319789-7217e6706b04?auto=format&fit=crop&q=80&w=600" class="w-full h-full object-cover" alt="Match Foot">
<span class="absolute top-4 right-4 bg-white/90 backdrop-blur text-ticket-dark text-xs font-black px-3 py-1 rounded-full shadow-sm">À partir de <span class="text-ticket-accent">10 €</span></span>
</div>
<div class="p-5 space-y-3">
<div class="flex items-center gap-2 text-[11px] font-extrabold text-ticket-main uppercase tracking-wider"><i class="fa-solid fa-calendar-day"></i> Dimanche 11 Octobre 2026</div>
<h3 class="text-base font-black text-slate-900 leading-snug">Finale du Tournoi Inter-Communal de Football</h3>
<div class="flex items-center gap-2 text-xs font-medium text-slate-500"><i class="fa-solid fa-location-dot text-slate-400"></i> Stade Olympique National</div>
</div>
</div>
<div class="p-5 pt-0 border-t border-slate-50 mt-4 flex items-center justify-between">
<span class="inline-flex items-center gap-1.5 text-xs font-bold text-rose-600 bg-rose-50 px-2.5 py-1 rounded-md"><i class="fa-solid fa-triangle-exclamation text-[10px]"></i> Guichet fermé bientôt</span>
<a href="#" class="bg-ticket-main text-white px-4 py-2 rounded-xl text-xs font-bold hover:bg-ticket-dark transition">Acheter <i class="fa-solid fa-circle-arrow-right ml-1"></i></a>
</div>
</div>
</div>
</section>
<!-- FOOTER -->
<footer class="bg-ticket-dark text-slate-400 pt-12 pb-6 border-t border-white/5">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center text-xs space-y-2 text-slate-500">
<p>© 2026 TicketPass. Plateforme sécurisée de revente et distribution de billets.</p>
</div>
</footer>
<!-- INTERACTION LOGIC (SLIDER & MENU MOBILE) -->
<script>
function toggleMobileMenu() {
const menu = document.getElementById('mobile-menu');
menu.classList.toggle('translate-x-full');
}
// --- GESTION DU SLIDER HERO BACKGROUND ---
let currentSlide = 0;
const slides = document.querySelectorAll('.slider-slide');
function showSlide(index) {
slides.forEach(s => s.classList.remove('active'));
if (index >= slides.length) currentSlide = 0;
if (index < 0) currentSlide = slides.length - 1;
slides[currentSlide].classList.add('active');
}
function changeSlide(n) {
currentSlide += n;
showSlide(currentSlide);
}
setInterval(() => {
changeSlide(1);
}, 7000);
</script>
</body>
</html>
🔒
CONTENU RÉSERVÉ A MES APPRENANTS
Accédez à la suite de ce TP
La suite de ce TP ainsi que les contenus Premium sont accessibles exclusivement à mes étudiants.
FAITES-VOUS DEJA PARTIE DE MES APPRENANTS ?
Connectez-vous à votre compte
Utilisez vos identifiants pour accéder immédiatement à l'intégralité de cet article et à vos contenus Premium.
PAS ENCORE INSCRIT ?
Rejoignez-nous
+225 01 61 01 71 96
💬
Je m'inscris
AVANTAGES POUR LES APPRENANTS
Tout ce que vous obtenez
L'offre est conçue pour vous permettre d'apprendre, de pratiquer et de progresser en informatique grâce à des ressources concrètes et accessibles.
Suivi et accompagnement
Vous êtes ajouté au groupe WhatsApp Premium de mes apprenants
et bénéficiez d'un accompagnement, d'un suivi et d'une assistance
tout au long de votre apprentissage.
Accès illimité aux codes sources
Téléchargez librement les codes sources
disponibles dans l'espace Premium pendant
toute la durée de validité de votre abonnement.
Formations & ressources variées
Accédez à des tutoriels écrits de qualité, vidéos, PDF et échangez
directement avec moi et les autres apprenants via le groupe
WhatsApp Premium.
Plus de 10 ans d'expérience
Profitez de connaissances, de méthodes
et de conseils issus de plus de 10 années
d'expérience dans le domaine informatique.
1 mois d'accès
Votre inscription est valable pendant
un mois à compter de la date à laquelle vous effectuez le paiement.
Renouvellement libre
À l'expiration,
vous êtes libre de le renouveler ou de
ne pas le renouveler. Aucun engagement
obligatoire.
